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