]> www.hackdaworld.org Git - physik/posic.git/blob - Makefile
fixed attrr region + ifdef'ed constraints along 110 + write final save and visual...
[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 += -pg
8 #CFLAGS += -ffloat-store
9
10 #CFLAGS += -DPARALLEL -fopenmp
11 #CFLAGS += -DPTHREADS -lpthread
12 CFLAGS += -DVISUAL_THREAD -lpthread
13 #CFLAGS += -DPTHREADS -DVISUAL_THREAD -lpthread
14
15 CFLAGS += -DALBE
16 CFLAGS += -DALBE_FAST
17 #CFLAGS += -DTERSOFF_ORIG
18
19 #CFLAGS += -DSTATIC_LISTS
20 CFLAGS += -DLOWMEM_LISTS
21
22 #CFLAGS += -DDEBUG
23 #CFLAGS += -DDSTART=-1 -DDEND=40 -DDATOM=0
24 #CFLAGS += -DVDEBUG
25
26 LDFLAGS = -lm
27 #LDFLAGS += -lc_p
28 #LDFLAGS += -lefence
29
30 DEPS = moldyn.o random/random.o list/list.o
31 DEPS += potentials/lennard_jones.o potentials/harmonic_oscillator.o
32 DEPS += potentials/tersoff.o potentials/albe.o
33 DEPS += potentials/albe_fast.o
34
35 SRC = moldyn.c random/random.c list/list.c
36 SRC += potentials/lennard_jones.c potentials/harmonic_oscillator.c
37 SRC += potentials/tersoff.c potentials/albe.c
38 SRC += potentials/albe_fast.c
39
40 ALL = mdrun sic fluctuation_calc postproc pair_correlation_calc diffusion_calc
41 ALL += diffusion_calc_ver2 bond_analyze search_bonds visual_atoms
42 ALL += display_atom_data atom_match
43
44 all: $(ALL)
45
46 # main code. using SRC, much more efficient code is produced!
47 mdrun: $(SRC)
48 #mdrun: $(DEPS)
49
50 sic: $(DEPS) config.h
51
52 postproc: $(DEPS)
53
54 pair_correlation_calc: $(DEPS)
55
56 diffusion_calc: $(DEPS)
57
58 diffusion_calc_ver2: $(DEPS)
59
60 bond_analyze: $(DEPS)
61
62 search_bonds: $(DEPS)
63
64 visual_atoms: $(DEPS)
65
66 display_atom_data: $(DEPS)
67
68 atom_match: $(DEPS)
69
70 .PHONY:clean
71 clean:
72         rm -vf $(ALL) *.o */*.o