2006-01-06 01:01:38 +03:00
|
|
|
GCCSDK_INSTALL_CROSSBIN ?= /home/riscos/cross/bin
|
|
|
|
GCCSDK_INSTALL_ENV ?= /home/riscos/env
|
2004-05-21 00:06:31 +04:00
|
|
|
|
2006-01-06 01:01:38 +03:00
|
|
|
CC = $(GCCSDK_INSTALL_CROSSBIN)/gcc
|
|
|
|
CC_DEBUG = /usr/bin/gcc
|
|
|
|
ASM = $(GCCSDK_INSTALL_CROSSBIN)/gcc
|
|
|
|
|
|
|
|
PLATFORM_CFLAGS_RISCOS = -I$(GCCSDK_INSTALL_ENV)/include \
|
|
|
|
-I$(GCCSDK_INSTALL_ENV)/include/libxml2 \
|
2006-04-10 03:21:13 +04:00
|
|
|
-I$(GCCSDK_INSTALL_ENV)/include/libmng \
|
|
|
|
#-finstrument-functions
|
2004-06-03 01:40:55 +04:00
|
|
|
PLATFORM_CFLAGS_DEBUG = -I/usr/include/libxml2 -I/riscos/src/OSLib \
|
2007-01-30 01:27:15 +03:00
|
|
|
-I/riscos/include/libjpeg -D_POSIX_C_SOURCE=200112
|
2006-01-06 01:01:38 +03:00
|
|
|
PLATFORM_AFLAGS_RISCOS = -I$(GCCSDK_INSTALL_ENV)/include
|
2004-05-21 00:06:31 +04:00
|
|
|
|
2006-01-06 01:01:38 +03:00
|
|
|
LDFLAGS_RISCOS = -L$(GCCSDK_INSTALL_ENV)/lib -lxml2 -lz -lcurl -lssl -lcrypto \
|
2006-04-10 03:21:13 +04:00
|
|
|
-lcares -lmng -lOSLib32 -ljpeg -lrufl -lpencil #-lprof
|
2006-01-06 01:01:38 +03:00
|
|
|
LDFLAGS_SMALL = -L$(GCCSDK_INSTALL_ENV)/lib -lxml2 -lz -lucurl \
|
|
|
|
-lcares -lmng -lOSLib32 -ljpeg -lrufl -lpencil
|
2007-01-30 01:27:15 +03:00
|
|
|
LDFLAGS_DEBUG = -L/usr/lib -lxml2 -lz -lm -lcurl -lssl -lcrypto -lmng \
|
2004-07-26 01:13:45 +04:00
|
|
|
-ljpeg -llcms
|
2004-05-21 00:06:31 +04:00
|
|
|
|
2006-03-23 23:19:03 +03:00
|
|
|
# Hackery for Cygwin - it has no libdl, so remove it from LDFLAGS
|
|
|
|
ifeq ($(shell echo $$OS),Windows_NT)
|
|
|
|
LDFLAGS_DEBUG := $(subst -ldl,,$(LDFLAGS_DEBUG))
|
|
|
|
endif
|
|
|
|
|
2004-06-03 01:40:55 +04:00
|
|
|
RUNIMAGE = !NetSurf/!RunImage,ff8
|
2006-09-11 03:43:06 +04:00
|
|
|
|
|
|
|
# special cases - in here, cos RISC OS can't cope :(
|
|
|
|
css/css_enum.c css/css_enum.h: css/css_enums css/makeenum
|
2007-05-31 02:39:54 +04:00
|
|
|
perl css/makeenum css/css_enum < css/css_enums
|
2006-09-11 03:43:06 +04:00
|
|
|
css/parser.c css/parser.h: css/parser.y
|
|
|
|
-cd css; lemon parser.y
|
|
|
|
css/scanner.c: css/scanner.l
|
|
|
|
cd css; re2c -s scanner.l > scanner.c
|
|
|
|
utils/translit.c: transtab
|
|
|
|
cd utils; perl tt2code < transtab > translit.c
|
|
|
|
|
|
|
|
# remove generated files - again, RISC OS fails it
|
|
|
|
clean:
|
2007-07-22 02:17:07 +04:00
|
|
|
-rm $(OBJDIR_RISCOS)/* $(OBJDIR_RISCOS_SMALL)/* \
|
2006-09-11 03:43:06 +04:00
|
|
|
$(OBJDIR_DEBUG)/* $(OBJDIR_GTK)/* \
|
|
|
|
css/css_enum.c css/css_enum.h \
|
2007-02-07 00:25:20 +03:00
|
|
|
css/parser.c css/parser.h css/scanner.c \
|
|
|
|
nsgtk
|