regular checkin of logfile
[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 #CFLAGS += -DPTHREADS -lpthread
11 #CFLAGS += -DVISUAL_THREAD -lpthread
12 CFLAGS += -DPTHREADS -DVISUAL_THREAD -lpthread
13
14 CFLAGS += -DALBE
15 CFLAGS += -DALBE_FAST
16 #CFLAGS += -DTERSOFF_ORIG
17
18 #CFLAGS += -DSTATIC_LISTS
19 CFLAGS += -DLOWMEM_LISTS
20
21 #CFLAGS += -DDEBUG
22 #CFLAGS += -DDSTART=-1 -DDEND=40 -DDATOM=0
23 #CFLAGS += -DVDEBUG
24
25 LDFLAGS = -lm
26 #LDFLAGS += -lefence
27
28 DEPS = moldyn.o random/random.o list/list.o
29 DEPS += potentials/lennard_jones.o potentials/harmonic_oscillator.o
30 DEPS += potentials/tersoff.o potentials/albe.o
31 DEPS += potentials/albe_fast.o
32
33 SRC = moldyn.c random/random.c list/list.c
34 SRC += potentials/lennard_jones.c potentials/harmonic_oscillator.c
35 SRC += potentials/tersoff.c potentials/albe.c
36 SRC += potentials/albe_fast.c
37
38 ALL = mdrun sic fluctuation_calc postproc pair_correlation_calc diffusion_calc
39 ALL += bond_analyze search_bonds visual_atoms display_atom_data atom_match
40
41 all: $(ALL)
42
43 # main code. using SRC, much more efficient code is produced!
44 mdrun: $(SRC)
45 #mdrun: $(DEPS)
46
47 sic: $(DEPS) config.h
48
49 postproc: $(DEPS)
50
51 pair_correlation_calc: $(DEPS)
52
53 diffusion_calc: $(DEPS)
54
55 bond_analyze: $(DEPS)
56
57 search_bonds: $(DEPS)
58
59 visual_atoms: $(DEPS)
60
61 display_atom_data: $(DEPS)
62
63 atom_match: $(DEPS)
64
65 .PHONY:clean
66 clean:
67         rm -vf $(ALL) *.o */*.o