chiark / gitweb /
add basic (and not very useful) D-Bus support
[elogind.git] / Makefile
index 9a86220..2f739ce 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1,5 +1,5 @@
-CFLAGS=-Wall -Wextra -O0 -g -pipe -D_GNU_SOURCE -fdiagnostics-show-option -Wno-unused-parameter
-LIBS=-lrt -lcap
+CFLAGS=-Wall -Wextra -O0 -g -pipe -D_GNU_SOURCE -fdiagnostics-show-option -Wno-unused-parameter -DUNIT_PATH=\"/tmp/does/not/exist\" `pkg-config --cflags libudev dbus-1`
+LIBS=-lrt -lcap `pkg-config --libs libudev dbus-1`
 
 COMMON= \
        unit.o \
@@ -21,15 +21,22 @@ COMMON= \
        snapshot.o \
        socket.o \
        timer.o \
-       load-fstab.o \
        load-dropin.o \
-       execute.o
+       execute.o \
+       ratelimit.o \
+       dbus.o \
+       dbus-manager.o \
+       dbus-unit.o \
+       dbus-job.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)