1
0
mirror of https://github.com/agdsn/ancient-weatherstation.git synced 2026-06-19 23:07:59 +00:00
Files
ancient-weatherstation/seriell/Makefile
T
losinshi 43b5dfd977 working on Makefile
git-svn-id: file:///home/jan/tmp/wetterstation/trunk@8 dd492736-c11a-0410-ad51-8c26713eaf7f
2006-08-12 17:06:33 +00:00

36 lines
873 B
Makefile

CC = gcc
LD = gcc
RM = rm
DEBUG = -DDEBUG
CFLAGS = -c
LDFLAS = -o
BIN_NAME = weatherdeamon
# Die postgres-pfade bekommt man mit pg_config raus!
# Neue Version nach Make-Buch:
$(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
main.o: main.c main.h definitions.h config.h input.h
$(CC) $(DEBUG) -c main.c
config.o: config.c config.h definitions.h
$(CC) $(DEBUG) -c config.c
input.o: input.c input.h main.h config.h definitions.h process.h
$(CC) $(DEBUG) -c input.c
process.o: process.c process.h main.h config.h definitions.h write.h
$(CC) $(DEBUG) -c process.c
write.o: write.c write.h main.h definitions.h
$(CC) $(DEBUG) -I/usr/include/postgresql -o write.o -c write.c
cleanup:
echo "Räume auf...entferne:"
echo " " *.o
$(RM) -f *.o