]> hackdaworld.org Git - physik/posic.git/blob - Makefile
fixed tersoff virial calc
[physik/posic.git] / Makefile
1 CC = gcc
2
3 CFLAGS = -Wall
4 #CFLAGS += -Wextra -pedantic
5 CFLAGS += -O3
6 CFLAGS += -g
7 CFLAGS += -ffloat-store
8
9 CFLAGS += -DALBE
10 #CFLAGS += -DTERSOFF_ORIG
11
12 #CFLAGS += -DSTATIC_LISTS
13
14 #CFLAGS += -DDEBUG
15 #CFLAGS += -DDSTART=19 -DDEND=40 -DDATOM=5832
16 #CFLAGS += -DVDEBUG
17
18 LDFLAGS = -lm
19 #LDFLAGS += -lefence
20
21 DEPS = moldyn.o random/random.o list/list.o
22 DEPS += potentials/lennard_jones.o potentials/harmonic_oscillator.o
23 DEPS += potentials/tersoff.o potentials/albe.o
24
25 ALL = mdrun sic fluctuation_calc postproc pair_correlation_calc diffusion_calc
26 ALL += bond_analyze search_bonds visual_atoms display_atom_data
27
28 all: $(ALL)
29
30 mdrun: $(DEPS)
31
32 sic: $(DEPS) config.h
33
34 postproc: $(DEPS)
35
36 pair_correlation_calc: $(DEPS)
37
38 diffusion_calc: $(DEPS)
39
40 bond_analyze: $(DEPS)
41
42 search_bonds: $(DEPS)
43
44 visual_atoms: $(DEPS)
45
46 display_atom_data: $(DEPS)
47
48 .PHONY:clean
49 clean:
50         rm -vf $(ALL) *.o */*.o