X-Git-Url: https://www.hackdaworld.org/gitweb/?a=blobdiff_plain;f=Makefile;h=c839759237846919adfef7fb51afa4ff51c9f2f4;hb=2346d076f3d0955fb3a7bfb47f2b17b9eae6dd5b;hp=b6e31c03eb7477b32b27a9a476ea703c7240fd3e;hpb=b040d775deb32173e6536464a3e2ad95a6a5bd55;p=physik%2Fposic.git diff --git a/Makefile b/Makefile index b6e31c0..c839759 100644 --- a/Makefile +++ b/Makefile @@ -1,12 +1,44 @@ -CC=gcc -CFLAGS=-Wall +CC = gcc -OBJS=init/init.o visual/visual.o math/math.o moldyn.o +CFLAGS = -Wall +#CFLAGS += -Wextra -pedantic +CFLAGS += -O3 +CFLAGS += -g +CFLAGS += -ffloat-store -all: moldyn.o posic +CFLAGS += -DALBE +#CFLAGS += -DTERSOFF_ORIG -posic: moldyn.o $(OBJS) - $(CC) $(CFLAGS) -o $@ $(OBJS) $(LIBS) posic.c +#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 = posic sic fluctuation_calc postproc pair_correlation_calc diffusion_calc +ALL += bond_analyze + +all: $(ALL) + +posic: $(DEPS) + +sic: $(DEPS) config.h + +postproc: $(DEPS) + +pair_correlation_calc: $(DEPS) + +diffusion_calc: $(DEPS) + +bond_analyze: $(DEPS) + +.PHONY:clean clean: - rm -f *.o posic + rm -vf $(ALL) *.o */*.o