summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorJohn Mark Bell <jmb@netsurf-browser.org>2009-05-13 01:17:25 +0000
committerJohn Mark Bell <jmb@netsurf-browser.org>2009-05-13 01:17:25 +0000
commit42b6d78069fba7b44326114ded9e5c3232503fce (patch)
tree4975ad7ea2ebe5f3382b3fd802e2f0a8bacf9748 /Makefile
parentbc5c97ffa4396988cc21bb6685f4f0453353cc0a (diff)
downloadttf2f-42b6d78069fba7b44326114ded9e5c3232503fce.tar.gz
ttf2f-42b6d78069fba7b44326114ded9e5c3232503fce.tar.bz2
Port toolbox frontend to OSLib/OSLibSupport.
svn path=/trunk/tools/ttf2f/; revision=7491
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile10
1 files changed, 9 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 1a3a387..4017938 100644
--- a/Makefile
+++ b/Makefile
@@ -13,7 +13,7 @@ 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
+ -Wmissing-declarations -Wnested-externs -Werror #-pedantic
CFLAGS := $(CFLAGS) -std=c99 -D_BSD_SOURCE -I$(CURDIR)/include/ \
-I$(CURDIR)/src $(WARNFLAGS) -Dasm="__asm"
@@ -28,6 +28,14 @@ ifneq ($(findstring clean,$(MAKECMDGOALS)),clean)
endif
endif
+# OSLib (RISC OS target only)
+ifneq ($(findstring clean,$(MAKECMDGOALS)),clean)
+ ifeq ($(TARGET),riscos)
+ CFLAGS := $(CFLAGS) -I$(PREFIX)/include
+ LDFLAGS := $(LDFLAGS) -lOSLib32 -lOSLibSupport32
+ endif
+endif
+
include build/makefiles/Makefile.top
# Extra installation rules