X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=elogind.git;a=blobdiff_plain;f=Makefile;h=f4bbb2aef59188d7de1b017bc2a77c9b5cd3f042;hp=6f41e8878cc9c5039c607f9fc4d05a0afeb0919e;hb=5899f3b7f62151dade30010370fb5d2bcdb93d3a;hpb=ed5bcfbe3c3b68e59242c03649eea03a9707d318 diff --git a/Makefile b/Makefile index 6f41e8878..f4bbb2aef 100644 --- 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 +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 + +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