chiark / gitweb /
implement proper logging for services
[elogind.git] / Makefile
index 9a862207cd58ae7853a7d7b3e8cbe3efff6ede73..d61e14b63a81a8b5be00763d7267037e25549d11 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1,4 +1,4 @@
-CFLAGS=-Wall -Wextra -O0 -g -pipe -D_GNU_SOURCE -fdiagnostics-show-option -Wno-unused-parameter
+CFLAGS=-Wall -Wextra -O0 -g -pipe -D_GNU_SOURCE -fdiagnostics-show-option -Wno-unused-parameter -DUNIT_PATH=\"/tmp/does/not/exist\"
 LIBS=-lrt -lcap
 
 COMMON= \
@@ -25,11 +25,14 @@ COMMON= \
        load-dropin.o \
        execute.o
 
-all: systemd test-engine test-job-type
+all: systemd test-engine test-job-type systemd-logger
 
 systemd: main.o $(COMMON)
        $(CC) $(CFLAGS) -o $@ $^  $(LIBS)
 
+systemd-logger: logger.o $(COMMON)
+       $(CC) $(CFLAGS) -o $@ $^  $(LIBS)
+
 test-engine: test-engine.o $(COMMON)
        $(CC) $(CFLAGS) -o $@ $^  $(LIBS)