summaryrefslogtreecommitdiffstats
path: root/worker/Makefile
diff options
context:
space:
mode:
authorSumit Bose <sbose@nb.localdomain>2008-11-05 11:50:45 +0100
committerSumit Bose <sbose@nb.localdomain>2008-11-05 11:50:45 +0100
commit7337fc891d0b38e35f9b0db5bf2989b819f7412b (patch)
tree86686f60597fd75e004d68a453e2acf486858641 /worker/Makefile
parent7b7ee7e9899c7aa8a616bdbc5a83d0c11b75632a (diff)
downloadipa_policy-7337fc891d0b38e35f9b0db5bf2989b819f7412b.tar.gz
ipa_policy-7337fc891d0b38e35f9b0db5bf2989b819f7412b.tar.xz
ipa_policy-7337fc891d0b38e35f9b0db5bf2989b819f7412b.zip
some refactoring
Diffstat (limited to 'worker/Makefile')
-rw-r--r--worker/Makefile14
1 files changed, 11 insertions, 3 deletions
diff --git a/worker/Makefile b/worker/Makefile
index 1e7c6cf..36fbde7 100644
--- a/worker/Makefile
+++ b/worker/Makefile
@@ -1,5 +1,13 @@
-CFLAGS=-Wall `xml2-config --cflags` `xslt-config --cflags`
+CFLAGS=-Wall -Werror `xml2-config --cflags` `xslt-config --cflags`
LDFLAGS=`xml2-config --libs` `xslt-config --libs`
-worker: worker.c
- $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $+
+
+SRCS = worker.c debug.c
+OBJS = worker.o debug.o
+
+all: worker
+
+$(OBJS): util.h
+
+worker: worker.o debug.o
+ $(CC) $(LDFLAGS) -o $@ $+