3 CFLAGS = -Wall -Winline
4 #CFLAGS += -Wextra -pedantic
5 CFLAGS += -O3 -march=native -msse2 -mfpmath=sse
8 #CFLAGS += -ffloat-store
10 #CFLAGS += -DPARALLEL -fopenmp
11 #CFLAGS += -DPTHREADS -lpthread
12 CFLAGS += -DVISUAL_THREAD -lpthread
13 #CFLAGS += -DPTHREADS -DVISUAL_THREAD -lpthread
17 #CFLAGS += -DTERSOFF_ORIG
19 #CFLAGS += -DSTATIC_LISTS
20 CFLAGS += -DLOWMEM_LISTS
23 #CFLAGS += -DDSTART=-1 -DDEND=40 -DDATOM=0
30 DEPS = moldyn.o random/random.o list/list.o
31 DEPS += potentials/lennard_jones.o potentials/harmonic_oscillator.o
32 DEPS += potentials/tersoff.o potentials/albe.o
33 DEPS += potentials/albe_fast.o
35 SRC = moldyn.c random/random.c list/list.c
36 SRC += potentials/lennard_jones.c potentials/harmonic_oscillator.c
37 SRC += potentials/tersoff.c potentials/albe.c
38 SRC += potentials/albe_fast.c
40 ALL = mdrun sic fluctuation_calc postproc pair_correlation_calc diffusion_calc
41 ALL += diffusion_calc_ver2 bond_analyze search_bonds visual_atoms
42 ALL += display_atom_data atom_match
46 # main code. using SRC, much more efficient code is produced!
54 pair_correlation_calc: $(DEPS)
56 diffusion_calc: $(DEPS)
58 diffusion_calc_ver2: $(DEPS)
66 display_atom_data: $(DEPS)
72 rm -vf $(ALL) *.o */*.o