diff options
-rw-r--r-- | css/Makefile | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/css/Makefile b/css/Makefile index 7e4727daa..6be322a6f 100644 --- a/css/Makefile +++ b/css/Makefile @@ -10,14 +10,19 @@ 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 +.PHONY: default lib clean + +default: + $(error "You probably wanted 'make test'") + test: lib testcss.o - $(LD) -o $@ testcss.o $(LDFLAGS) -L. -lcss + $(LD) -o $@ testcss.o $(LDFLAGS) -L. -lnscss lib: $(LIBOBJS) - $(AR) -cru libcss.a $^ + $(AR) -cru libnscss.a $^ clean: - $(RM) $(LIBOBJS) testcss.o test libcss.a + $(RM) $(LIBOBJS) testcss.o test libnscss.a messages.o: ../utils/messages.c $(CC) $(CFLAGS) -c -o $@ $< |