2010-10-27 22:39:24 +04:00
|
|
|
# RISC OS Target makefile
|
|
|
|
|
|
|
|
# ----------------------------------------------------------------------------
|
|
|
|
# RISC OS target setup
|
|
|
|
# ----------------------------------------------------------------------------
|
|
|
|
|
2010-11-08 14:28:58 +03:00
|
|
|
ifeq ($(HOST),riscos)
|
|
|
|
LDFLAGS += -Xlinker -symbols=$(OBJROOT)/sym -lxml2 -lz -lm -lcurl -lcares
|
|
|
|
LDFLAGS += -lssl -lcrypto -lhubbub -lcss -lparserutils -lwapcaplet
|
|
|
|
else
|
|
|
|
LDFLAGS += $(shell $(PKG_CONFIG) --libs libxml-2.0 libcares libcurl openssl)
|
|
|
|
LDFLAGS += $(shell $(PKG_CONFIG) --libs libhubbub libcss)
|
|
|
|
endif
|
2010-10-27 22:39:24 +04:00
|
|
|
|
2010-11-08 14:28:58 +03:00
|
|
|
$(eval $(call feature_enabled,NSSVG,-DWITH_NS_SVG,-lsvgtiny,SVG (libsvgtiny)))
|
|
|
|
$(eval $(call feature_enabled,DRAW,-DWITH_DRAW,,Drawfile rendering))
|
|
|
|
$(eval $(call feature_enabled,SPRITE,-DWITH_SPRITE,,Sprite rendering))
|
|
|
|
$(eval $(call feature_enabled,ARTWORKS,-DWITH_ARTWORKS,,ArtWorks rendering))
|
|
|
|
$(eval $(call feature_enabled,PLUGINS,-DWITH_PLUGIN,,Plugin protocol))
|
|
|
|
$(eval $(call feature_enabled,DRAW_EXPORT,-DWITH_DRAW_EXPORT,-lpencil,Drawfile export))
|
|
|
|
ifeq ($(HOST),riscos)
|
|
|
|
$(eval $(call feature_enabled,BMP,-DWITH_BMP,-lnsbmp,BMP (libnsbmp)))
|
|
|
|
$(eval $(call feature_enabled,GIF,-DWITH_GIF,-lnsgif,GIF (libnsgif)))
|
|
|
|
$(eval $(call feature_enabled,PNG,-DWITH_PNG,-lpng,PNG (libpng) ))
|
|
|
|
else
|
|
|
|
NETSURF_FEATURE_BMP_CFLAGS := -DWITH_BMP
|
|
|
|
NETSURF_FEATURE_GIF_CFLAGS := -DWITH_GIF
|
|
|
|
NETSURF_FEATURE_PNG_CFLAGS := -DWITH_PNG
|
|
|
|
$(eval $(call pkg_config_find_and_add,BMP,libnsbmp,BMP))
|
|
|
|
$(eval $(call pkg_config_find_and_add,GIF,libnsgif,GIF))
|
|
|
|
$(eval $(call pkg_config_find_and_add,PNG,libpng,PNG ))
|
|
|
|
endif
|
2010-10-27 22:39:24 +04:00
|
|
|
|
2010-11-08 14:28:58 +03:00
|
|
|
TPD_RISCOS = $(foreach TPL,$(notdir $(TPL_RISCOS)), \
|
2010-10-27 22:39:24 +04:00
|
|
|
!NetSurf/Resources/$(TPL)/Templates$(TPLEXT))
|
|
|
|
|
2010-11-08 14:28:58 +03:00
|
|
|
RESOURCES = $(TPD_RISCOS)
|
2010-10-27 22:39:24 +04:00
|
|
|
|
2010-11-08 14:28:58 +03:00
|
|
|
CFLAGS += -I. $(WARNFLAGS) -Driscos \
|
2010-10-27 22:39:24 +04:00
|
|
|
-std=c99 -D_BSD_SOURCE -D_POSIX_C_SOURCE \
|
|
|
|
-mpoke-function-name -fno-strict-aliasing
|
|
|
|
|
2010-11-08 14:28:58 +03:00
|
|
|
CFLAGS += -I$(GCCSDK_INSTALL_ENV)/include \
|
2010-10-27 22:39:24 +04:00
|
|
|
-I$(GCCSDK_INSTALL_ENV)/include/libxml2 \
|
|
|
|
-I$(GCCSDK_INSTALL_ENV)/include/libmng
|
2010-11-08 14:28:58 +03:00
|
|
|
ifeq ($(HOST),riscos)
|
|
|
|
CFLAGS += -I<OSLib$$Dir> -mthrowback
|
|
|
|
endif
|
|
|
|
ASFLAGS += -xassembler-with-cpp -I. -I$(GCCSDK_INSTALL_ENV)/include
|
|
|
|
LDFLAGS += -L$(GCCSDK_INSTALL_ENV)/lib -lrufl
|
|
|
|
ifeq ($(HOST),riscos)
|
|
|
|
LDFLAGS += -LOSLib: -lOSLib32
|
|
|
|
else
|
|
|
|
LDFLAGS += -lOSLib32
|
|
|
|
ifeq ($(SUBTARGET),-elf)
|
|
|
|
# Go for static builds & AIF binary at the moment:
|
|
|
|
CFLAGS += -static
|
|
|
|
LDFLAGS += -static
|
|
|
|
EXEEXT := ,ff8
|
2010-10-27 22:39:24 +04:00
|
|
|
endif
|
2010-11-08 14:28:58 +03:00
|
|
|
endif
|
2010-10-29 04:54:27 +04:00
|
|
|
|
|
|
|
# ----------------------------------------------------------------------------
|
|
|
|
# Source file setup
|
|
|
|
# ----------------------------------------------------------------------------
|
|
|
|
|
|
|
|
# S_RISCOS are sources purely for the RISC OS build
|
|
|
|
S_RISCOS := 401login.c artworks.c assert.c awrender.s bitmap.c buffer.c \
|
|
|
|
cookies.c configure.c debugwin.c dialog.c download.c draw.c \
|
|
|
|
filetype.c font.c global_history.c gui.c help.c history.c \
|
|
|
|
hotlist.c image.c menus.c message.c palettes.c plotters.c \
|
|
|
|
plugin.c print.c query.c save.c save_draw.c save_pdf.c \
|
|
|
|
schedule.c search.c searchweb.c sprite.c sslcert.c \
|
|
|
|
textarea.c textselection.c theme.c theme_install.c thumbnail.c \
|
|
|
|
treeview.c ucstables.c uri.c url_complete.c url_protocol.c \
|
2011-01-30 16:40:47 +03:00
|
|
|
url_suggest.c wimp.c wimp_event.c window.c system_colour.c \
|
|
|
|
gui/progress_bar.c gui/status_bar.c \
|
2010-10-29 04:54:27 +04:00
|
|
|
$(addprefix configure/,con_cache.c con_connect.c con_content.c \
|
|
|
|
con_fonts.c con_home.c con_image.c con_inter.c con_language.c \
|
|
|
|
con_memory.c con_secure.c con_theme.c)
|
|
|
|
S_RISCOS := $(addprefix riscos/,$(S_RISCOS))
|
|
|
|
TPL_RISCOS := de en fr nl # TODO: It'd be nice to auto-detect these
|
|
|
|
TPL_RISCOS := $(addprefix riscos/templates/,$(TPL_RISCOS))
|
|
|
|
|
|
|
|
|
|
|
|
# complete source file list
|
|
|
|
SOURCES := $(S_COMMON) $(S_IMAGE) $(S_BROWSER) $(S_PDF) $(S_RISCOS)
|
|
|
|
EXETARGET := !NetSurf/!RunImage$(EXEEXT)
|
|
|
|
|
|
|
|
!NetSurf/!Run$(RUNEXT): riscos/scripts/Run $(EXETARGET)
|
|
|
|
$(VQ)echo " MAKERUN: $@"
|
|
|
|
$(Q)$(MAKERUN) $(EXETARGET) $< $@
|
|
|
|
POSTEXES += !NetSurf/!Run$(RUNEXT)
|
|
|
|
|
|
|
|
clean-run:
|
|
|
|
$(VQ)echo " CLEAN: !NetSurf/!Run$(RUNEXT)"
|
|
|
|
$(Q) $(RM) !NetSurf/!Run$(RUNEXT)
|
|
|
|
CLEANS += clean-run
|