mirror of
https://github.com/netsurf-browser/netsurf
synced 2024-11-24 07:19:37 +03:00
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 \
|
||||
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 $@ $<
|
||||
|
Loading…
Reference in New Issue
Block a user