X-Git-Url: http://git.ipfire.org/?a=blobdiff_plain;f=Makefile;h=b7e13fba2e160ae474351f19e10333fcea09b588;hb=53c5797fbde10cb0d133b3b11789fb299411468e;hp=5c6d798fba7cea1be11bf9f29aef6ae797fdad6c;hpb=1ffba6fe82d65f2a87b53a21c7927bca8176038c;p=thirdparty%2Fsystemd.git diff --git a/Makefile b/Makefile index 5c6d798fba7..b7e13fba2e1 100644 --- a/Makefile +++ b/Makefile @@ -1,18 +1,5 @@ -CFLAGS=-Wall -Wextra -O0 -g -pipe -D_GNU_SOURCE -fdiagnostics-show-option -Wno-unused-parameter -LIBS=-lrt +all: + ninja -C build -COMMON=name.o util.o set.o hashmap.o strv.o job.o manager.o conf-parser.o load-fragment.o socket-util.o log.o - -all: systemd test-engine test-job-type - -systemd: main.o $(COMMON) - $(CC) $(CFLAGS) -o $@ $^ $(LIBS) - -test-engine: test-engine.o $(COMMON) - $(CC) $(CFLAGS) -o $@ $^ $(LIBS) - -test-job-type: test-job-type.o $(COMMON) - $(CC) $(CFLAGS) -o $@ $^ $(LIBS) - -clean: - rm -f *.o systemd test-engine +install: + DESTDIR=$(DESTDIR) ninja -C build install