X-Git-Url: https://hackdaworld.org/gitweb/?a=blobdiff_plain;f=Makefile;h=83a14b6cf11f135ee76cccba52921c99745ba3da;hb=e1080fc0dd66b0cf5b7715c5e99e7a34ac04a8cf;hp=7096b48dd563331d868dbaf47ced35742f0eb065;hpb=c38fe34069adb9697683235f8b1e2311a3122e8f;p=physik%2Fposic.git diff --git a/Makefile b/Makefile index 7096b48..83a14b6 100644 --- a/Makefile +++ b/Makefile @@ -1,14 +1,35 @@ -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 += -DSTATIC_LISTS +#CFLAGS += -DDEBUG +CFLAGS += -DDSTART=400 -DDEND=600 +#CFLAGS += -DVDEBUG +#CFLAGS += -DTERSOFF_ORIG -posic: $(OBJS) +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: posic sic fluctuation_calc postproc pair_correlation_calc + +posic: $(DEPS) + +sic: $(DEPS) config.h + +postproc: $(DEPS) + +pair_correlation_calc: $(DEPS) .PHONY:clean clean: - rm -f *.o posic */*.o + rm -vf sic postproc fluctuation_calc pair_correlation_calc *.o */*.o