4 CFLAGS = -Wall -Winline
5 #CFLAGS += -Wextra -pedantic
7 CFLAGS += -O3 -march=native -msse2 -mfpmath=sse
8 #CFLAGS += -O3 -march=athlon64
12 #CFLAGS += -ffloat-store
14 #CFLAGS += -DPARALLEL -fopenmp
15 #CFLAGS += -DPTHREADS -lpthread
16 #CFLAGS += -DVISUAL_THREAD -lpthread
17 #CFLAGS += -DPTHREADS -DVISUAL_THREAD -lpthread
21 #CFLAGS += -DTERSOFF_ORIG
23 #CFLAGS += -DSTATIC_LISTS
24 CFLAGS += -DLOWMEM_LISTS
28 #CFLAGS += -DDSTART=50 -DDEND=60 -DDATOM=0
38 DEPS = moldyn.o random/random.o list/list.o
39 DEPS += potentials/lennard_jones.o potentials/harmonic_oscillator.o
40 DEPS += potentials/tersoff.o potentials/albe.o
41 DEPS += potentials/albe_fast.o
43 SRC = moldyn.c random/random.c list/list.c
44 SRC += potentials/lennard_jones.c potentials/harmonic_oscillator.c
45 SRC += potentials/tersoff.c potentials/albe.c
46 SRC += potentials/albe_fast.c
48 #ALL = mdrun sic fluctuation_calc postproc pair_correlation_calc diffusion_calc
49 ALL = mdrun fluctuation_calc postproc pair_correlation_calc diffusion_calc
50 ALL += diffusion_calc_ver2 bond_analyze search_bonds visual_atoms
51 ALL += display_atom_data atom_match msd_calc s2xyz
55 # main code. using SRC, much more efficient code is produced!
63 pair_correlation_calc: $(DEPS)
65 diffusion_calc: $(DEPS)
67 diffusion_calc_ver2: $(DEPS)
75 display_atom_data: $(DEPS)
85 rm -vf $(ALL) *.o */*.o