X-Git-Url: https://hackdaworld.org/gitweb/?p=physik%2Fposic.git;a=blobdiff_plain;f=Makefile;fp=Makefile;h=fa40909e3aaf95b872c7137be0b9dd9bc393f3e3;hp=1b19d50171120e788d68e0af830d6d2f00eceb9c;hb=6e6d7126ea9a845f11637d8e1b8eb2b570ac4dc9;hpb=97dc63eb6a519b8e1f4fbfaa9760dd94539436b0 diff --git a/Makefile b/Makefile index 1b19d50..fa40909 100644 --- a/Makefile +++ b/Makefile @@ -1,34 +1,60 @@ -CC = gcc +CC = gcc-4.3 +#CC = gcc-3.4 -CFLAGS = -Wall +CFLAGS = -Wall -Winline #CFLAGS += -Wextra -pedantic -CFLAGS += -O3 + +CFLAGS += -O3 -march=native -msse2 -mfpmath=sse +#CFLAGS += -O3 -march=athlon64 + CFLAGS += -g -CFLAGS += -ffloat-store +#CFLAGS += -pg +#CFLAGS += -ffloat-store + +#CFLAGS += -DPARALLEL -fopenmp +#CFLAGS += -DPTHREADS -lpthread +#CFLAGS += -DVISUAL_THREAD -lpthread +#CFLAGS += -DPTHREADS -DVISUAL_THREAD -lpthread -CFLAGS += -DALBE +#CFLAGS += -DALBE +CFLAGS += -DALBE_FAST #CFLAGS += -DTERSOFF_ORIG #CFLAGS += -DSTATIC_LISTS +CFLAGS += -DLOWMEM_LISTS -#CFLAGS += -DNDEBUG +#CFLAGS += -DPDEBUG #CFLAGS += -DDEBUG -#CFLAGS += -DDSTART=-1 -DDEND=3 -DDATOM=0 +#CFLAGS += -DDSTART=50 -DDEND=60 -DDATOM=0 #CFLAGS += -DVDEBUG +#CFLAGS += -DQUENCH + LDFLAGS = -lm + +#LDFLAGS += -lc_p #LDFLAGS += -lefence DEPS = moldyn.o random/random.o list/list.o DEPS += potentials/lennard_jones.o potentials/harmonic_oscillator.o -DEPS += potentials/tersoff.o potentials/albe.o potentials/albe_orig.o +DEPS += potentials/tersoff.o potentials/albe.o +DEPS += potentials/albe_fast.o -ALL = mdrun sic fluctuation_calc postproc pair_correlation_calc diffusion_calc -ALL += bond_analyze search_bonds visual_atoms display_atom_data +SRC = moldyn.c random/random.c list/list.c +SRC += potentials/lennard_jones.c potentials/harmonic_oscillator.c +SRC += potentials/tersoff.c potentials/albe.c +SRC += potentials/albe_fast.c + +#ALL = mdrun sic fluctuation_calc postproc pair_correlation_calc diffusion_calc +ALL = mdrun fluctuation_calc postproc pair_correlation_calc diffusion_calc +ALL += diffusion_calc_ver2 bond_analyze search_bonds visual_atoms +ALL += display_atom_data atom_match msd_calc s2xyz all: $(ALL) -mdrun: $(DEPS) +# main code. using SRC, much more efficient code is produced! +mdrun: $(SRC) +#mdrun: $(DEPS) sic: $(DEPS) config.h @@ -38,6 +64,8 @@ pair_correlation_calc: $(DEPS) diffusion_calc: $(DEPS) +diffusion_calc_ver2: $(DEPS) + bond_analyze: $(DEPS) search_bonds: $(DEPS) @@ -46,6 +74,12 @@ visual_atoms: $(DEPS) display_atom_data: $(DEPS) +atom_match: $(DEPS) + +msd_calc: $(DEPS) + +s2xyz: $(DEPS) + .PHONY:clean clean: rm -vf $(ALL) *.o */*.o