X-Git-Url: https://www.hackdaworld.org/gitweb/?a=blobdiff_plain;f=Makefile;h=0e7b1228cd17cacbffb916c17c6d36613190942a;hb=b5b47daaa3718c4dec2056fe5147668023575b8e;hp=7096b48dd563331d868dbaf47ced35742f0eb065;hpb=c38fe34069adb9697683235f8b1e2311a3122e8f;p=physik%2Fposic.git diff --git a/Makefile b/Makefile index 7096b48..0e7b122 100644 --- a/Makefile +++ b/Makefile @@ -1,14 +1,30 @@ -CC=gcc -CFLAGS=-Wall -DSIMPLE_TESTING +CC = gcc + +CFLAGS = -Wall +CFLAGS += -O3 +CFLAGS += -g +#CFLAGS += -ffloat-store + +CFLAGS += -DALBE +#CFLAGS += -DDEBUG +CFLAGS += -DDSTART=400 -DDEND=600 +#CFLAGS += -DVDEBUG +#CFLAGS += -DTERSOFF_ORIG + LDFLAGS=-lm -OBJS=init/init.o visual/visual.o math/math.o random/random.o list/list.o -OBJS+=moldyn.o +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 + +posic: $(DEPS) -all: posic +sic: $(DEPS) -posic: $(OBJS) +postproc: $(DEPS) .PHONY:clean clean: - rm -f *.o posic */*.o + rm -vf sic postproc fluctuation_calc *.o */*.o