From 3427ef07ecd51f4fa9be72f777c256312b89af9f Mon Sep 17 00:00:00 2001 From: losinshi Date: Sun, 13 Aug 2006 00:17:49 +0000 Subject: [PATCH] Working on Makefile git-svn-id: file:///home/jan/tmp/wetterstation/trunk@9 dd492736-c11a-0410-ad51-8c26713eaf7f --- seriell/Makefile | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/seriell/Makefile b/seriell/Makefile index e6f917a..4a0e201 100644 --- a/seriell/Makefile +++ b/seriell/Makefile @@ -1,7 +1,7 @@ CC = gcc LD = gcc RM = rm -DEBUG = -DDEBUG +#DEBUG = CFLAGS = -c LDFLAS = -o @@ -11,6 +11,10 @@ BIN_NAME = weatherdeamon # Neue Version nach Make-Buch: +all: $(BIN_NAME) +# $(MAKE) cleanup + + $(BIN_NAME): main.o config.o input.o process.o write.o $(LD) $(DEBUG) -L/usr/lib/pgsql -lpq $(LDFLAS) $(BIN_NAME) main.o input.o process.o write.o config.o @@ -29,6 +33,9 @@ process.o: process.c process.h main.h config.h definitions.h write.h write.o: write.c write.h main.h definitions.h $(CC) $(DEBUG) -I/usr/include/postgresql -o write.o -c write.c +debug: + $(MAKE) all DEBUG=-DDEBUG + cleanup: echo "Räume auf...entferne:" echo " " *.o