X-Git-Url: https://hackdaworld.org/gitweb/?a=blobdiff_plain;f=Makefile;h=47670a825c9f5cf3af48675999688c6945ebc9e4;hb=67df6b3a722a44e36fd56f3f040c3c9726b3fc3f;hp=bba7d4e9c2109b4043487d292f3a8301364f52d8;hpb=fd4ecbff76b2e4fc70ca88e64fb76c85fa953888;p=physik%2Fposic.git diff --git a/Makefile b/Makefile index bba7d4e..47670a8 100644 --- a/Makefile +++ b/Makefile @@ -1,29 +1,50 @@ CC = gcc CFLAGS = -Wall +#CFLAGS += -Wextra -pedantic CFLAGS += -O3 CFLAGS += -g -#CFLAGS += -ffloat-store +CFLAGS += -ffloat-store CFLAGS += -DALBE +#CFLAGS += -DTERSOFF_ORIG + +#CFLAGS += -DSTATIC_LISTS + #CFLAGS += -DDEBUG +#CFLAGS += -DDSTART=19 -DDEND=40 -DDATOM=5832 #CFLAGS += -DVDEBUG -#CFLAGS += -DTERSOFF_ORIG -LDFLAGS=-lm +LDFLAGS = -lm +#LDFLAGS += -lefence -DEPS = moldyn.o visual/visual.o random/random.o list/list.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 +ALL = mdrun sic fluctuation_calc postproc pair_correlation_calc diffusion_calc +ALL += bond_analyze search_bonds visual_atoms display_atom_data + +all: $(ALL) -posic: $(DEPS) +mdrun: $(DEPS) -sic: $(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 -vf sic postproc fluctuation_calc *.o */*.o + rm -vf $(ALL) *.o */*.o