diff options
author | John Mark Bell <jmb@netsurf-browser.org> | 2008-09-07 16:41:49 +0000 |
---|---|---|
committer | John Mark Bell <jmb@netsurf-browser.org> | 2008-09-07 16:41:49 +0000 |
commit | 42da88597339feda94e4efb0f0dc79e008df5ac0 (patch) | |
tree | 9d2f47ec744fd2d42ccf769ef8d513d579215de0 /Makefile-ronative | |
parent | 044d67e7928db27cc20a61ba6ece47b042252e68 (diff) | |
download | libhubbub-42da88597339feda94e4efb0f0dc79e008df5ac0.tar.gz libhubbub-42da88597339feda94e4efb0f0dc79e008df5ac0.tar.bz2 |
Native RO buildsystem. Beware of the NOP.
svn path=/trunk/hubbub/; revision=5275
Diffstat (limited to 'Makefile-ronative')
-rw-r--r-- | Makefile-ronative | 57 |
1 files changed, 57 insertions, 0 deletions
diff --git a/Makefile-ronative b/Makefile-ronative new file mode 100644 index 0000000..9479d90 --- /dev/null +++ b/Makefile-ronative @@ -0,0 +1,57 @@ +# Toolchain definitions for building on RISC OS +GCCSDK_INSTALL_ENV ?= <NSLibs$$Dir> + +CC := gcc +AR := ar +LD := gcc + +CP := cp +RM := rm +MKDIR := mkdir +MV := mv +ECHO := echo +MAKE := make +PERL := perl +# As good a way of doing nothing as we get, really (FX 1 == set user flag, X ignores errors) +PKGCONFIG := X FX 1 +INSTALL := echo +SED := sed +TOUCH := touch +LCOV := echo +GENHTML := echo + +# Toolchain flags +WARNFLAGS := -Wall -Wextra -Wundef -Wpointer-arith -Wcast-align \ + -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes \ + -Wmissing-declarations -Wnested-externs -Werror -pedantic +CFLAGS = -std=c99 -D_BSD_SOURCE -I$(TOP)/include/ $(WARNFLAGS) \ + -mpoke-function-name -I$(GCCSDK_INSTALL_ENV)/include +RELEASECFLAGS = $(CFLAGS) -DNDEBUG -O2 +DEBUGCFLAGS = $(CFLAGS) -O0 -g +ARFLAGS := -cru +LDFLAGS = -L$(GCCSDK_INSTALL_ENV)/libs -L$(TOP)/ + +CPFLAGS := +RMFLAGS := -f +MKDIRFLAGS := -p +MVFLAGS := +ECHOFLAGS := +MAKEFLAGS := +PKGCONFIGFLAGS := +TOUCHFLAGS := + +EXEEXT := + +# Default installation prefix +PREFIX ?= $(GCCSDK_INSTALL_ENV) + +# This is nasty, but needed because $(CURDIR) will +# contain colons, and thus confuse make mightily +$(shell SetMacro Alias$$Hubbubpwd Set %0 <FileSwitch$$CurrentFilingSystem>:|<FileSwitch$$<FileSwitch$$CurrentFilingSystem>$$CSD>|mUnset Alias$$Hubbubpwd) +$(shell Hubbubpwd Hubbub$$Dir) +TOP := <Hubbub$$Dir> + +# Tell everyone that we're building on RISC OS, so they can work around things. +HOST := riscos + +include build/Makefile.common |