diff options
Diffstat (limited to 'css/Makefile')
-rw-r--r-- | css/Makefile | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/css/Makefile b/css/Makefile new file mode 100644 index 000000000..7e4727daa --- /dev/null +++ b/css/Makefile @@ -0,0 +1,39 @@ +# Makefile for CSS test code + +AR := ar +CC := gcc +LD := gcc + +CFLAGS := -O2 -I.. -I/usr/include/libxml2 -std=c99 +LDFLAGS := -lxml2 -lz -lcurl + +LIBOBJS := css.o css_enum.o parser.o ruleset.o scanner.o \ + messages.o hashtable.o talloc.o url.o utils.o + +test: lib testcss.o + $(LD) -o $@ testcss.o $(LDFLAGS) -L. -lcss + +lib: $(LIBOBJS) + $(AR) -cru libcss.a $^ + +clean: + $(RM) $(LIBOBJS) testcss.o test libcss.a + +messages.o: ../utils/messages.c + $(CC) $(CFLAGS) -c -o $@ $< + +hashtable.o: ../utils/hashtable.c + $(CC) $(CFLAGS) -c -o $@ $< + +talloc.o: ../utils/talloc.c + $(CC) $(CFLAGS) -c -o $@ $< + +url.o: ../utils/url.c + $(CC) $(CFLAGS) -c -o $@ $< + +utils.o: ../utils/utils.c + $(CC) $(CFLAGS) -c -o $@ $< + +%.o : %.c + $(CC) $(CFLAGS) -c -o $@ $< + |