chiark / gitweb /
start implementing a test suite for the engine
[elogind.git] / Makefile
index ae82e8ce889e059db57a1bb14d8b4cdd7ee52d82..cc55d4d149067cf06e7ecee5a42250323fd0e4e2 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1,8 +1,15 @@
 CFLAGS=-Wall -Wextra -O0 -g -pipe -D_GNU_SOURCE -fdiagnostics-show-option -Wno-unused-parameter
 LIBS=-lrt
 
-systemd: main.o name.o util.o set.o hashmap.o strv.o job.o manager.o conf-parser.o load-fragment.o socket-util.c
+COMMON=name.o util.o set.o hashmap.o strv.o job.o manager.o conf-parser.o load-fragment.o socket-util.c
+
+all: systemd test-engine
+
+systemd: main.o $(COMMON)
+       $(CC) $(CFLAGS) -o $@ $^  $(LIBS)
+
+test-engine: test-engine.o $(COMMON)
        $(CC) $(CFLAGS) -o $@ $^  $(LIBS)
 
 clean:
-       rm -f *.o systemd
+       rm -f *.o systemd test-engine