Merge branch 'leadoff'
[physik/posic.git] / Makefile
1 CC = gcc-4.3
2 #CC = gcc-3.4
3
4 CFLAGS = -Wall -Winline
5 #CFLAGS += -Wextra -pedantic
6
7 CFLAGS += -O3 -march=native -msse2 -mfpmath=sse
8 #CFLAGS += -O3 -march=athlon64
9
10 CFLAGS += -g
11 #CFLAGS += -pg
12 #CFLAGS += -ffloat-store
13
14 #CFLAGS += -DPARALLEL -fopenmp
15 #CFLAGS += -DPTHREADS -lpthread
16 #CFLAGS += -DVISUAL_THREAD -lpthread
17 #CFLAGS += -DPTHREADS -DVISUAL_THREAD -lpthread
18
19 #CFLAGS += -DALBE
20 CFLAGS += -DALBE_FAST
21 #CFLAGS += -DTERSOFF_ORIG
22
23 #CFLAGS += -DSTATIC_LISTS
24 CFLAGS += -DLOWMEM_LISTS
25
26 #CFLAGS += -DPDEBUG
27 #CFLAGS += -DDEBUG
28 #CFLAGS += -DDSTART=50 -DDEND=60 -DDATOM=0
29 #CFLAGS += -DVDEBUG
30
31 #CFLAGS += -DQUENCH
32
33 LDFLAGS = -lm
34
35 #LDFLAGS += -lc_p
36 #LDFLAGS += -lefence
37
38 DEPS = moldyn.o random/random.o list/list.o
39 DEPS += potentials/lennard_jones.o potentials/harmonic_oscillator.o
40 DEPS += potentials/tersoff.o potentials/albe.o
41 DEPS += potentials/albe_fast.o
42
43 SRC = moldyn.c random/random.c list/list.c
44 SRC += potentials/lennard_jones.c potentials/harmonic_oscillator.c
45 SRC += potentials/tersoff.c potentials/albe.c
46 SRC += potentials/albe_fast.c
47
48 #ALL = mdrun sic fluctuation_calc postproc pair_correlation_calc diffusion_calc
49 ALL = mdrun fluctuation_calc postproc pair_correlation_calc diffusion_calc
50 ALL += diffusion_calc_ver2 bond_analyze search_bonds visual_atoms
51 ALL += display_atom_data atom_match msd_calc s2xyz
52
53 all: $(ALL)
54
55 # main code. using SRC, much more efficient code is produced!
56 mdrun: $(SRC)
57 #mdrun: $(DEPS)
58
59 sic: $(DEPS) config.h
60
61 postproc: $(DEPS)
62
63 pair_correlation_calc: $(DEPS)
64
65 diffusion_calc: $(DEPS)
66
67 diffusion_calc_ver2: $(DEPS)
68
69 bond_analyze: $(DEPS)
70
71 search_bonds: $(DEPS)
72
73 visual_atoms: $(DEPS)
74
75 display_atom_data: $(DEPS)
76
77 atom_match: $(DEPS)
78
79 msd_calc: $(DEPS)
80
81 s2xyz: $(DEPS)
82
83 .PHONY:clean
84 clean:
85         rm -vf $(ALL) *.o */*.o