X-Git-Url: https://hackdaworld.org/gitweb/?p=physik%2Fposic.git;a=blobdiff_plain;f=Makefile;h=1cc3779f5d42d8ab9a85e812735615937f074d95;hp=dabf04cba67516fdd9171a4bac5b3866bad89e27;hb=1965279af348fbb9b69459d01516bbcd52b6f240;hpb=746278fb5c566b621b70c78b38d8b6c0b4e2677f diff --git a/Makefile b/Makefile index dabf04c..1cc3779 100644 --- a/Makefile +++ b/Makefile @@ -1,14 +1,67 @@ -CC=gcc -CFLAGS=-Wall -O3 #-DSIMPLE_TESTING -LDFLAGS=-lm +CC = gcc-4.3 -OBJS=init/init.o visual/visual.o random/random.o list/list.o -OBJS+=moldyn.o +CFLAGS = -Wall -Winline +#CFLAGS += -Wextra -pedantic +CFLAGS += -O3 -march=native -msse2 -mfpmath=sse +CFLAGS += -g +#CFLAGS += -ffloat-store -all: sic +#CFLAGS += -DPARALLEL -fopenmp +#CFLAGS += -DPTHREADS -lpthread +#CFLAGS += -DVISUAL_THREAD -lpthread +CFLAGS += -DPTHREADS -DVISUAL_THREAD -lpthread -sic: $(OBJS) +CFLAGS += -DALBE +CFLAGS += -DALBE_FAST +#CFLAGS += -DTERSOFF_ORIG + +#CFLAGS += -DSTATIC_LISTS +CFLAGS += -DLOWMEM_LISTS + +#CFLAGS += -DDEBUG +#CFLAGS += -DDSTART=-1 -DDEND=40 -DDATOM=0 +#CFLAGS += -DVDEBUG + +LDFLAGS = -lm +#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 +DEPS += potentials/albe_fast.o + +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 += bond_analyze search_bonds visual_atoms display_atom_data atom_match + +all: $(ALL) + +# main code. using SRC, much more efficient code is produced! +mdrun: $(SRC) +#mdrun: $(DEPS) + +sic: $(DEPS) config.h + +postproc: $(DEPS) + +pair_correlation_calc: $(DEPS) + +diffusion_calc: $(DEPS) + +bond_analyze: $(DEPS) + +search_bonds: $(DEPS) + +visual_atoms: $(DEPS) + +display_atom_data: $(DEPS) + +atom_match: $(DEPS) .PHONY:clean clean: - rm -f *.o sic */*.o + rm -vf $(ALL) *.o */*.o