Working on Makefile
git-svn-id: file:///home/jan/tmp/wetterstation/trunk@9 dd492736-c11a-0410-ad51-8c26713eaf7f
This commit is contained in:
parent
43b5dfd977
commit
3427ef07ec
|
|
@ -1,7 +1,7 @@
|
||||||
CC = gcc
|
CC = gcc
|
||||||
LD = gcc
|
LD = gcc
|
||||||
RM = rm
|
RM = rm
|
||||||
DEBUG = -DDEBUG
|
#DEBUG =
|
||||||
CFLAGS = -c
|
CFLAGS = -c
|
||||||
LDFLAS = -o
|
LDFLAS = -o
|
||||||
|
|
||||||
|
|
@ -11,6 +11,10 @@ BIN_NAME = weatherdeamon
|
||||||
|
|
||||||
# Neue Version nach Make-Buch:
|
# Neue Version nach Make-Buch:
|
||||||
|
|
||||||
|
all: $(BIN_NAME)
|
||||||
|
# $(MAKE) cleanup
|
||||||
|
|
||||||
|
|
||||||
$(BIN_NAME): main.o config.o input.o process.o write.o
|
$(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
|
$(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
|
write.o: write.c write.h main.h definitions.h
|
||||||
$(CC) $(DEBUG) -I/usr/include/postgresql -o write.o -c write.c
|
$(CC) $(DEBUG) -I/usr/include/postgresql -o write.o -c write.c
|
||||||
|
|
||||||
|
debug:
|
||||||
|
$(MAKE) all DEBUG=-DDEBUG
|
||||||
|
|
||||||
cleanup:
|
cleanup:
|
||||||
echo "Räume auf...entferne:"
|
echo "Räume auf...entferne:"
|
||||||
echo " " *.o
|
echo " " *.o
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue