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
18 #CFLAGS += -DDSTART=-1 -DDEND=40 -DDATOM=0
24 DEPS = moldyn.o random/random.o list/list.o
25 DEPS += potentials/lennard_jones.o potentials/harmonic_oscillator.o
26 DEPS += potentials/tersoff.o potentials/albe.o
27 DEPS += potentials/albe_fast.o
29 SRC = moldyn.c random/random.c list/list.c
30 SRC += potentials/lennard_jones.c potentials/harmonic_oscillator.c
31 SRC += potentials/tersoff.c potentials/albe.c
32 SRC += potentials/albe_fast.c
34 ALL = mdrun sic fluctuation_calc postproc pair_correlation_calc diffusion_calc
35 ALL += bond_analyze search_bonds visual_atoms display_atom_data
39 # main code. using SRC, much more efficient code is produced!
47 pair_correlation_calc: $(DEPS)
49 diffusion_calc: $(DEPS)
57 display_atom_data: $(DEPS)
61 rm -vf $(ALL) *.o */*.o