]> hackdaworld.org Git - physik/posic.git/blob - Makefile
fbe3f593332468b0732fcb891e77ea6c18382737
[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
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 .PHONY:clean
43 clean:
44         rm -vf $(ALL) *.o */*.o