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:
parent
ce93fc9d4c
commit
d7bc286801
11
css/Makefile
11
css/Makefile
|
@ -10,14 +10,19 @@ LDFLAGS := -lxml2 -lz -lcurl
|
||||||
LIBOBJS := css.o css_enum.o parser.o ruleset.o scanner.o \
|
LIBOBJS := css.o css_enum.o parser.o ruleset.o scanner.o \
|
||||||
messages.o hashtable.o talloc.o url.o utils.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
|
test: lib testcss.o
|
||||||
$(LD) -o $@ testcss.o $(LDFLAGS) -L. -lcss
|
$(LD) -o $@ testcss.o $(LDFLAGS) -L. -lnscss
|
||||||
|
|
||||||
lib: $(LIBOBJS)
|
lib: $(LIBOBJS)
|
||||||
$(AR) -cru libcss.a $^
|
$(AR) -cru libnscss.a $^
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
$(RM) $(LIBOBJS) testcss.o test libcss.a
|
$(RM) $(LIBOBJS) testcss.o test libnscss.a
|
||||||
|
|
||||||
messages.o: ../utils/messages.c
|
messages.o: ../utils/messages.c
|
||||||
$(CC) $(CFLAGS) -c -o $@ $<
|
$(CC) $(CFLAGS) -c -o $@ $<
|
||||||
|
|
Loading…
Reference in New Issue