diff options
author | John Mark Bell <jmb@netsurf-browser.org> | 2009-05-07 15:22:02 +0000 |
---|---|---|
committer | John Mark Bell <jmb@netsurf-browser.org> | 2009-05-07 15:22:02 +0000 |
commit | a98d8fb5e49436c6fedea37797225293284b9894 (patch) | |
tree | f140662044f20668b937c9f3b451c56345678108 /Makefile | |
download | ttf2f-a98d8fb5e49436c6fedea37797225293284b9894.tar.gz ttf2f-a98d8fb5e49436c6fedea37797225293284b9894.tar.bz2 |
Import TTF2f. Don't expect this to link; I've prevented it building main.c.
svn path=/trunk/tools/ttf2f/; revision=7427
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..06c9866 --- /dev/null +++ b/Makefile @@ -0,0 +1,31 @@ +# Component settings +COMPONENT := ttf2f +COMPONENT_VERSION := 0.0.3 +# We produce an application binary +COMPONENT_TYPE := binary + +# Setup the tooling +include build/makefiles/Makefile.tools + +# Toolchain flags +WARNFLAGS := -Wall -Wextra -Wundef -Wpointer-arith -Wcast-align \ + -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes \ + -Wmissing-declarations -Wnested-externs -Werror -pedantic +CFLAGS := $(CFLAGS) -std=c99 -D_BSD_SOURCE -I$(CURDIR)/include/ \ + -I$(CURDIR)/src $(WARNFLAGS) -Dasm="__asm" + +# Freetype2 +ifneq ($(findstring clean,$(MAKECMDGOALS)),clean) + ifneq ($(PKGCONFIG),) + CFLAGS := $(CFLAGS) $(shell $(PKGCONFIG) freetype2 --cflags) + LDFLAGS := $(LDFLAGS) $(shell $(PKGCONFIG) freetype2 --libs) + else + CFLAGS := $(CFLAGS) -I$(PREFIX)/include/freetype2 + LDFLAGS := $(LDFLAGS) -lfreetype -lz + endif +endif + +include build/makefiles/Makefile.top + +# Extra installation rules + |