X-Git-Url: https://hackdaworld.org/gitweb/?a=blobdiff_plain;f=Makefile;h=47670a825c9f5cf3af48675999688c6945ebc9e4;hb=f4f48069107d9e62db9f355f9c86aad8da17abcc;hp=6539f22a09f5062ce0f09574723c2a74e0c4f1b8;hpb=f518d98d405650ff6f7d45635ec7f1a604bd6d41;p=physik%2Fposic.git diff --git a/Makefile b/Makefile index 6539f22..47670a8 100644 --- a/Makefile +++ b/Makefile @@ -1,14 +1,50 @@ -CC=gcc -CFLAGS=-Wall -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 visual_atoms display_atom_data + +all: $(ALL) + +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) .PHONY:clean clean: - rm -f *.o posic */*.o + rm -vf $(ALL) *.o */*.o