X-Git-Url: http://git.ipfire.org/?p=thirdparty%2Fsystemd.git;a=blobdiff_plain;f=Makefile;h=b7e13fba2e160ae474351f19e10333fcea09b588;hp=9a862207cd58ae7853a7d7b3e8cbe3efff6ede73;hb=71ec74d19332378dca8a6a7eb30411e08978f9a6;hpb=87f0e418cf2c58b3201d06a60e3696ec672d2662 diff --git a/Makefile b/Makefile index 9a862207cd5..b7e13fba2e1 100644 --- a/Makefile +++ b/Makefile @@ -1,40 +1,5 @@ -CFLAGS=-Wall -Wextra -O0 -g -pipe -D_GNU_SOURCE -fdiagnostics-show-option -Wno-unused-parameter -LIBS=-lrt -lcap +all: + ninja -C build -COMMON= \ - unit.o \ - util.o \ - set.o \ - hashmap.o \ - strv.o \ - job.o \ - manager.o \ - conf-parser.o \ - load-fragment.o \ - socket-util.o \ - log.o \ - service.o \ - automount.o \ - mount.o \ - device.o \ - target.o \ - snapshot.o \ - socket.o \ - timer.o \ - load-fstab.o \ - load-dropin.o \ - execute.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