summaryrefslogtreecommitdiffstats
path: root/worker/Makefile
blob: 94d29782c8f38b1e6174ec33d32027fbb25642d9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
SSSD_PATH=../../freeipa/sssd/server
UTIL_OBJ = \
    $(SSSD_PATH)/util/debug.o \
    $(SSSD_PATH)/util/signal.o \
    $(SSSD_PATH)/util/server.o \
    $(SSSD_PATH)/util/memory.o \
    $(SSSD_PATH)/util/btreemap.o \
    $(SSSD_PATH)/util/service_helpers.o \
    $(SSSD_PATH)/confdb/confdb.o \
    $(SSSD_PATH)/sbus/sssd_dbus_common.o \
    $(SSSD_PATH)/sbus/sssd_dbus_connection.o \
    $(SSSD_PATH)/sbus/sssd_dbus_server.o

CFLAGS=-I/tmp/foo/include -Wall -Werror `xml2-config --cflags`  `xslt-config --cflags` `curl-config --cflags` `pkg-config --cflags dbus-1` -g
LDFLAGS=-L/tmp/foo/lib `xml2-config --libs`  `xslt-config --libs` `curl-config --libs` `pkg-config --libs dbus-1`-lpopt -g $(UTIL_OBJ) -ltalloc -lldb -levents
INDENTFLAGS=-kr -nut -l80

SRCS = worker.c debug.c helpers.c ipaaction.c xml_helper.c output_handler.c sbus_client.c
OBJS = worker.o debug.o helpers.o ipaaction.o xml_helper.o output_handler.o sbus_client.o

all: worker

$(OBJS): util.h helpers.h ipaaction.h output_handler.h xml_helper.h

worker: $(OBJS) 
	$(CC) $(LDFLAGS) -o $@ $+


indent:
	indent $(INDENTFLAGS) $(SRCS)

clean:
	rm *.o