3 CFLAGS = -Wall -Winline
4 #CFLAGS += -Wextra -pedantic
5 CFLAGS += -O3 -march=native -msse2 -mfpmath=sse
7 #CFLAGS += -ffloat-store
9 #CFLAGS += -DPARALLEL -fopenmp
10 #CFLAGS += -DPTHREADS -lpthread
11 #CFLAGS += -DVISUAL_THREAD -lpthread
12 CFLAGS += -DPTHREADS -DVISUAL_THREAD -lpthread
16 #CFLAGS += -DTERSOFF_ORIG
18 #CFLAGS += -DSTATIC_LISTS
19 CFLAGS += -DLOWMEM_LISTS
22 #CFLAGS += -DDSTART=-1 -DDEND=40 -DDATOM=0
28 DEPS = moldyn.o random/random.o list/list.o
29 DEPS += potentials/lennard_jones.o potentials/harmonic_oscillator.o
30 DEPS += potentials/tersoff.o potentials/albe.o
31 DEPS += potentials/albe_fast.o
33 SRC = moldyn.c random/random.c list/list.c
34 SRC += potentials/lennard_jones.c potentials/harmonic_oscillator.c
35 SRC += potentials/tersoff.c potentials/albe.c
36 SRC += potentials/albe_fast.c
38 ALL = mdrun sic fluctuation_calc postproc pair_correlation_calc diffusion_calc
39 ALL += bond_analyze search_bonds visual_atoms display_atom_data atom_match
43 # main code. using SRC, much more efficient code is produced!
51 pair_correlation_calc: $(DEPS)
53 diffusion_calc: $(DEPS)
61 display_atom_data: $(DEPS)
67 rm -vf $(ALL) *.o */*.o