visual atoms using moldyn func now, updated TODO, atom_match build by
[physik/posic.git] / Makefile
1 CC = gcc-4.3
2
3 CFLAGS = -Wall -Winline
4 #CFLAGS += -Wextra -pedantic
5 CFLAGS += -O3 -march=native -msse2 -mfpmath=sse
6 CFLAGS += -g
7 #CFLAGS += -ffloat-store
8
9 #CFLAGS+= -DPARALLEL -fopenmp
10
11 CFLAGS += -DALBE
12 CFLAGS += -DALBE_FAST
13 #CFLAGS += -DTERSOFF_ORIG
14
15 #CFLAGS += -DSTATIC_LISTS
16 CFLAGS += -DLOWMEM_LISTS
17
18 #CFLAGS += -DDEBUG
19 #CFLAGS += -DDSTART=-1 -DDEND=40 -DDATOM=0
20 #CFLAGS += -DVDEBUG
21
22 LDFLAGS = -lm
23 #LDFLAGS += -lefence
24
25 DEPS = moldyn.o random/random.o list/list.o
26 DEPS += potentials/lennard_jones.o potentials/harmonic_oscillator.o
27 DEPS += potentials/tersoff.o potentials/albe.o
28 DEPS += potentials/albe_fast.o
29
30 SRC = moldyn.c random/random.c list/list.c
31 SRC += potentials/lennard_jones.c potentials/harmonic_oscillator.c
32 SRC += potentials/tersoff.c potentials/albe.c
33 SRC += potentials/albe_fast.c
34
35 ALL = mdrun sic fluctuation_calc postproc pair_correlation_calc diffusion_calc
36 ALL += bond_analyze search_bonds visual_atoms display_atom_data atom_match
37
38 all: $(ALL)
39
40 # main code. using SRC, much more efficient code is produced!
41 mdrun: $(SRC)
42 #mdrun: $(DEPS)
43
44 sic: $(DEPS) config.h
45
46 postproc: $(DEPS)
47
48 pair_correlation_calc: $(DEPS)
49
50 diffusion_calc: $(DEPS)
51
52 bond_analyze: $(DEPS)
53
54 search_bonds: $(DEPS)
55
56 visual_atoms: $(DEPS)
57
58 display_atom_data: $(DEPS)
59
60 atom_match: $(DEPS)
61
62 .PHONY:clean
63 clean:
64         rm -vf $(ALL) *.o */*.o