Rename library to avoid confusion.

Require make test to actually do anything. Will error out by default.

svn path=/trunk/netsurf/; revision=5814
This commit is contained in:
John Mark Bell 2008-11-28 17:29:35 +00:00
parent ce93fc9d4c
commit d7bc286801
1 changed files with 8 additions and 3 deletions

View File

@ -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 $@ $<