X-Git-Url: https://hackdaworld.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=Makefile;h=62a137e22b1410fb8a33ff173519842112af99d1;hb=4f7a62883e5e47be44856c9767c9255c1d68190d;hp=3c8fcd1157eeaf5184c809ac70b4fd906e2c1c95;hpb=d445878769b7fcc15959d2d10f2eeced803c5487;p=physik%2Fposic.git diff --git a/Makefile b/Makefile index 3c8fcd1..62a137e 100644 --- a/Makefile +++ b/Makefile @@ -1,14 +1,46 @@ -CC=gcc -CFLAGS=-Wall #-DSIMPLE_TESTING -LDFLAGS=-lm +CC = gcc -OBJS=init/init.o visual/visual.o math/math.o random/random.o list/list.o -OBJS+=moldyn.o +CFLAGS = -Wall +#CFLAGS += -Wextra -pedantic +CFLAGS += -O3 +CFLAGS += -g +CFLAGS += -ffloat-store -all: posic +CFLAGS += -DALBE +#CFLAGS += -DTERSOFF_ORIG -posic: $(OBJS) +#CFLAGS += -DSTATIC_LISTS + +#CFLAGS += -DDEBUG +#CFLAGS += -DDSTART=19 -DDEND=40 -DDATOM=5832 +#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 + +ALL = mdrun sic fluctuation_calc postproc pair_correlation_calc diffusion_calc +ALL += bond_analyze search_bonds + +all: $(ALL) + +mdrun: $(DEPS) + +sic: $(DEPS) config.h + +postproc: $(DEPS) + +pair_correlation_calc: $(DEPS) + +diffusion_calc: $(DEPS) + +bond_analyze: $(DEPS) + +search_bonds: $(DEPS) .PHONY:clean clean: - rm -f *.o posic */*.o + rm -vf $(ALL) *.o */*.o