diff options
author | James Bursa <james@netsurf-browser.org> | 2008-02-02 17:47:18 +0000 |
---|---|---|
committer | James Bursa <james@netsurf-browser.org> | 2008-02-02 17:47:18 +0000 |
commit | 476717e96cd6012ad725474b45aadaf8bf11d2ba (patch) | |
tree | 3916e46f054ed40bf85dec712a3310ad7e68a528 /makefile | |
download | libsvgtiny-476717e96cd6012ad725474b45aadaf8bf11d2ba.tar.gz libsvgtiny-476717e96cd6012ad725474b45aadaf8bf11d2ba.tar.bz2 |
SVG code extracted from NetSurf into a standalone library.
svn path=/trunk/libsvgtiny/; revision=3824
Diffstat (limited to 'makefile')
-rw-r--r-- | makefile | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/makefile b/makefile new file mode 100644 index 0000000..ef3d27c --- /dev/null +++ b/makefile @@ -0,0 +1,38 @@ +# +# This file is part of Libsvgtiny +# Licensed under the MIT License, +# http://opensource.org/licenses/mit-license.php +# Copyright 2008 James Bursa <james@semichrome.net> +# + +SOURCE = svgtiny.c colors.c +HDRS = svgtiny.h + +.PHONY: all install clean + +CFLAGS = -std=c99 -g -W -Wall -Wundef -Wpointer-arith -Wcast-qual \ + -Wcast-align -Wwrite-strings -Wstrict-prototypes \ + -Wmissing-prototypes -Wmissing-declarations \ + -Wnested-externs -Winline -Wno-cast-align \ + `xml2-config --cflags` +LIBS = `xml2-config --libs` +ARFLAGS = cr + +OBJS = $(SOURCE:.c=.o) + +all: libsvgtiny.a svgtiny_test$(EXEEXT) + +libsvgtiny.a: $(OBJS) + $(AR) $(ARFLAGS) $@ $(OBJS) + +svgtiny_test$(EXEEXT): svgtiny_test.c libsvgtiny.a + $(CC) $(CFLAGS) $(LIBS) -o $@ $^ + +clean: + -rm *.o libsvgtiny.a svgtiny_test$(EXEEXT) + +colors.c: colors.gperf + gperf --output-file=$@ $< + +.c.o: $(HDRS) + $(CC) $(CFLAGS) -c -o $@ $< |