chiark / gitweb /
add mount enumerator
[elogind.git] / Makefile
1 CFLAGS=-Wall -Wextra -O0 -g -pipe -D_GNU_SOURCE -fdiagnostics-show-option -Wno-unused-parameter -DUNIT_PATH=\"/tmp/does/not/exist\" `pkg-config --cflags libudev`
2 LIBS=-lrt -lcap `pkg-config --libs libudev`
3
4 COMMON= \
5         unit.o \
6         util.o \
7         set.o \
8         hashmap.o \
9         strv.o \
10         job.o \
11         manager.o \
12         conf-parser.o \
13         load-fragment.o \
14         socket-util.o \
15         log.o \
16         service.o \
17         automount.o \
18         mount.o \
19         device.o \
20         target.o \
21         snapshot.o \
22         socket.o \
23         timer.o \
24         load-fstab.o \
25         load-dropin.o \
26         execute.o
27
28 all: systemd test-engine test-job-type systemd-logger
29
30 systemd: main.o $(COMMON)
31         $(CC) $(CFLAGS) -o $@ $^  $(LIBS)
32
33 systemd-logger: logger.o $(COMMON)
34         $(CC) $(CFLAGS) -o $@ $^  $(LIBS)
35
36 test-engine: test-engine.o $(COMMON)
37         $(CC) $(CFLAGS) -o $@ $^  $(LIBS)
38
39 test-job-type: test-job-type.o $(COMMON)
40         $(CC) $(CFLAGS) -o $@ $^  $(LIBS)
41
42 clean:
43         rm -f *.o systemd test-engine