2010-01-27 06:15:56 +07:00
|
|
|
CFLAGS=-Wall -Wextra -O0 -g -pipe -D_GNU_SOURCE -fdiagnostics-show-option -Wno-unused-parameter -DUNIT_PATH=\"/tmp/does/not/exist\"
|
2010-01-23 07:52:57 +07:00
|
|
|
LIBS=-lrt -lcap
|
2009-11-18 06:42:52 +07:00
|
|
|
|
2010-01-23 07:52:57 +07:00
|
|
|
COMMON= \
|
2010-01-27 03:39:06 +07:00
|
|
|
unit.o \
|
2010-01-23 07:52:57 +07:00
|
|
|
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 \
|
2010-01-27 01:06:50 +07:00
|
|
|
target.o \
|
2010-01-23 07:52:57 +07:00
|
|
|
snapshot.o \
|
|
|
|
socket.o \
|
|
|
|
timer.o \
|
|
|
|
load-fstab.o \
|
|
|
|
load-dropin.o \
|
|
|
|
execute.o
|
2010-01-20 11:03:52 +07:00
|
|
|
|
2010-01-21 06:51:37 +07:00
|
|
|
all: systemd test-engine test-job-type
|
2010-01-20 11:03:52 +07:00
|
|
|
|
|
|
|
systemd: main.o $(COMMON)
|
|
|
|
$(CC) $(CFLAGS) -o $@ $^ $(LIBS)
|
|
|
|
|
|
|
|
test-engine: test-engine.o $(COMMON)
|
2009-11-18 06:42:52 +07:00
|
|
|
$(CC) $(CFLAGS) -o $@ $^ $(LIBS)
|
|
|
|
|
2010-01-21 06:51:37 +07:00
|
|
|
test-job-type: test-job-type.o $(COMMON)
|
|
|
|
$(CC) $(CFLAGS) -o $@ $^ $(LIBS)
|
|
|
|
|
2009-11-18 06:42:52 +07:00
|
|
|
clean:
|
2010-01-20 11:03:52 +07:00
|
|
|
rm -f *.o systemd test-engine
|