chiark / gitweb /
Create elogind-inhibit.xml
[elogind.git] / Makefile
index cc55d4d149067cf06e7ecee5a42250323fd0e4e2..4de99579acd0640232e511c88fa028dbc6d4b9c1 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1,15 +1,16 @@
-CFLAGS=-Wall -Wextra -O0 -g -pipe -D_GNU_SOURCE -fdiagnostics-show-option -Wno-unused-parameter
-LIBS=-lrt
+.PHONY: all install loginctl test test-login
 
-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:
+       ninja -C build
 
-all: systemd test-engine
+install:
+       DESTDIR=$(DESTDIR) ninja -C build install
 
-systemd: main.o $(COMMON)
-       $(CC) $(CFLAGS) -o $@ $^  $(LIBS)
+loginctl:
+       ninja -C build loginctl
 
-test-engine: test-engine.o $(COMMON)
-       $(CC) $(CFLAGS) -o $@ $^  $(LIBS)
+test:
+       ninja -C build test
 
-clean:
-       rm -f *.o systemd test-engine
+test-login:
+       ninja -C build test-login