3 CFLAGS = -Wall -Winline
4 #CFLAGS += -Wextra -pedantic
5 CFLAGS += -O3 -march=native -msse2 -mfpmath=sse
7 #CFLAGS += -ffloat-store
9 #CFLAGS+= -DPARALLEL -fopenmp
13 #CFLAGS += -DTERSOFF_ORIG
15 #CFLAGS += -DSTATIC_LISTS
16 CFLAGS += -DLOWMEM_LISTS
19 #CFLAGS += -DDSTART=-1 -DDEND=40 -DDATOM=0
25 DEPS = moldyn.o random/random.o list/list.o
26 DEPS += potentials/lennard_jones.o potentials/harmonic_oscillator.o
27 DEPS += potentials/tersoff.o potentials/albe.o
28 DEPS += potentials/albe_fast.o
30 SRC = moldyn.c random/random.c list/list.c
31 SRC += potentials/lennard_jones.c potentials/harmonic_oscillator.c
32 SRC += potentials/tersoff.c potentials/albe.c
33 SRC += potentials/albe_fast.c
35 ALL = mdrun sic fluctuation_calc postproc pair_correlation_calc diffusion_calc
36 ALL += bond_analyze search_bonds visual_atoms display_atom_data
40 # main code. using SRC, much more efficient code is produced!
48 pair_correlation_calc: $(DEPS)
50 diffusion_calc: $(DEPS)
58 display_atom_data: $(DEPS)
62 rm -vf $(ALL) *.o */*.o