]> hackdaworld.org Git - physik/posic.git/commitdiff
new Makefile
authorhackbard <hackbard@sage.physik.uni-augsburg.de>
Mon, 10 Sep 2007 11:51:26 +0000 (13:51 +0200)
committerhackbard <hackbard@sage.physik.uni-augsburg.de>
Mon, 10 Sep 2007 11:51:26 +0000 (13:51 +0200)
Makefile

index 61c137ff19301628edadd79ed4cafd637c936c45..8f0d97c393c26476326d605504f1cc7e12b832e4 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1,29 +1,27 @@
-CC=gcc
-CFLAGS=-Wall
-CFLAGS+=-O3
-#CFLAGS+=-ffloat-store
-CFLAGS+=-g
-#CFLAGS+=-DDEBUG
-#CFLAGS+=-DVDEBUG
-#CFLAGS+=-DTERSOFF_ORIG
-CFLAGS+=-DALBE
-LDFLAGS=-lm
+CC = gcc
+
+CFLAGS = -Wall
+CFLAGS += -O3
+CFLAGS += -g
+#CFLAGS += -ffloat-store
 
-SOURCE=moldyn.c visual/visual.c random/random.c list/list.c
+CFLAGS += -DALBE
+#CFLAGS += -DDEBUG
+#CFLAGS += -DVDEBUG
+#CFLAGS += -DTERSOFF_ORIG
+
+LDFLAGS=-lm
 
-#POT_SRC=potentials/tersoff_orig.c
-POT_SRC=potentials/tersoff.c
-POT_SRC+=potentials/albe.c
-POT_SRC+= potentials/lennard_jones.c potentials/harmonic_oscillator.c
+DEPS = moldyn.o visual/visual.o random/random.o list/list.o
+DEPS += potentials/lennard_jones.o potentials/harmonic_oscillator.o
+DEPS += potentials/tersoff.o potentials/albe.o
 
 all: sic fluctuation_calc postproc
 
-sic: 
-       $(CC) $(CFLAGS) $(LDFLAGS) $(POT_SRC) $(SOURCE) sic.c -o sic
+sic: $(DEPS)
 
-postproc:
-       $(CC) $(CFLAGS) $(LDFLAGS) $(POT_SRC) $(SOURCE) postproc.c -o postproc
+postproc: $(DEPS)
 
 .PHONY:clean
 clean:
-       rm -f sic postproc
+       rm -f sic postproc fluctuation_calc