mirror of
https://github.com/agdsn/ancient-weatherstation.git
synced 2026-06-19 23:07:59 +00:00
Some missing ifndef-tags for no_loging fixed
Added nolog compile-option to Makefile git-svn-id: file:///home/jan/tmp/wetterstation/trunk@10 dd492736-c11a-0410-ad51-8c26713eaf7f
This commit is contained in:
+12
-6
@@ -16,26 +16,32 @@ all: $(BIN_NAME)
|
||||
|
||||
|
||||
$(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) $(NOLOG) -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
|
||||
$(CC) $(DEBUG) $(NOLOG) $(CFLAGS) main.c
|
||||
|
||||
config.o: config.c config.h definitions.h
|
||||
$(CC) $(DEBUG) -c config.c
|
||||
$(CC) $(DEBUG) $(NOLOG) $(CFLAGS) config.c
|
||||
|
||||
input.o: input.c input.h main.h config.h definitions.h process.h
|
||||
$(CC) $(DEBUG) -c input.c
|
||||
$(CC) $(DEBUG) $(NOLOG) $(CFLAGS) input.c
|
||||
|
||||
process.o: process.c process.h main.h config.h definitions.h write.h
|
||||
$(CC) $(DEBUG) -c process.c
|
||||
$(CC) $(DEBUG) $(NOLOG) $(CFLAGS) process.c
|
||||
|
||||
write.o: write.c write.h main.h definitions.h
|
||||
$(CC) $(DEBUG) -I/usr/include/postgresql -o write.o -c write.c
|
||||
$(CC) $(DEBUG) $(NOLOG) -I/usr/include/postgresql $(CFLAGS) write.c
|
||||
|
||||
# Programm mit debug-ausgabe bauen
|
||||
debug:
|
||||
$(MAKE) all DEBUG=-DDEBUG
|
||||
|
||||
# Programm ohne Log-ausgabe bauen
|
||||
nolog:
|
||||
$(MAKE) all NOLOG=-DNO_LOGING
|
||||
|
||||
# Aufräumnen (alle Object-Files löschen)
|
||||
cleanup:
|
||||
echo "Räume auf...entferne:"
|
||||
echo " " *.o
|
||||
|
||||
Reference in New Issue
Block a user