Commit 86a2d8e9 authored by Robert Sprowson's avatar Robert Sprowson
Browse files

Retire R[O|A]M[C]Module shared makefiles.

So long, and thanks for all the fish.

Version 5.40. Tagged as 'BuildSys-5_40'
parent 940518eb
# Copyright 2008 Castle Technology Ltd
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
# Makefile fragment for C and C++ modules targetted at RAM.
INCLUDED_RAMCMODULE = YES
#
# $Id$
#
# This makefile provides the following phony targets:
#
# all install
#
#
# This fragment uses the following macros set by the master makefile.
#
#
# COMPONENT (the name of the component)
# TARGET (opt) (the leafname of the component - otherwise ${COMPONENT})
# RAM_OBJS (opt) (component's object files for romming - otherwise ${OBJS})
# RAM_LIBS (opt) (libraries to link to generate RAM_MODULE - otherwise ${LIBS})
# RAM_MODULE (opt) (output filename for module - otherwise rm.${TARGET}
# DIRS (opt) (magic target to ensure object directories are present)
# CLIB (C library)
# RAM_DEPEND (opt) (any extra dependency to assert on ${RAM_MODULE}
#
#
# It relies on the following from the build system:
#
#
# INSTDIR (installation directory for ROM_MODULE)
# PHASE (export phase discriminator)
#
#
# It relies on the following generic tool macros from the Tools makefile
#
# CP + CPFLAGS (copy, cp etc.)
# AS + ASFLAGS (assembler)
# MKDIR (cdir/mkdir -p)
# ECHO
# LD + LDFLAGS (linker)
# LDRAMFLAGS (more linker flags)
# MODSQZ +
# MODSQZFLAGS (module squeezer)
#
TARGET ?= ${COMPONENT}
RAM_MODULE ?= rm.${TARGET}
RAM_OBJS ?= ${OBJS}
RAM_LIBS ?= ${LIBS}
#
# RISC OS ROM build rules:
#
all: ${RAM_MODULE}
@${ECHO} ${COMPONENT}: ram module built
install: ${RAM_MODULE}
${MKDIR} ${INSTDIR}
${CP} ${RAM_MODULE} ${INSTDIR}.${TARGET} ${CPFLAGS}
@${ECHO} ${COMPONENT}: ram module installed
#
# Actually make the linked RAM target
#
${RAM_MODULE}: ${RAM_OBJS} ${RAM_LIBS} ${CLIB} ${DIRS} ${RAM_DEPEND}
${MKDIR} rm
${LD} ${LDFLAGS} ${LDRAMFLAGS} -o $@ -rmf ${RAM_OBJS} ${RAM_LIBS} ${CLIB}
${MODSQZ} ${MODSQZFLAGS} $@
${CHMOD} -R a+rx rm
EOFSTDMAKFILE=$Id$
# EOF
# Copyright 2008 Castle Technology Ltd
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
# Makefile fragment for assembler modules targetted at RAM, built using objasm
INCLUDED_RAMMODULE = YES
#
# $Id$
#
# This makefile provides the following phony targets:
#
# all install_ram
#
#
# This fragment uses the following macros set by the master makefile.
#
#
# COMPONENT (the name of the component)
# TARGET (leafname of component being built)
# RAM_OBJS (component's object files for romming)
# RAM_LIBS (libraries to link again RAM_OBJS to generate RAM_MODULE)
# DIRS (opt) (magic target to ensure object directories are present)
#
#
# It relies on the following from the build system:
#
#
# INSTDIR (installation directory for RAM_MODULE)
#
#
# It relies on the following generic tool macros from the Tools makefile
#
# CP + CPFLAGS (copy, cp etc.)
# MKDIR (cdir/mkdir -p)
# ECHO
# LD + LDFLAGS (linker)
# LDRAMFLAGS (more linker flags)
# MODSQZ +
# MODSQZFLAGS (module squeezer)
#
#
# RISC OS ROM build rules:
#
all: ${RAM_MODULE}
@${ECHO} ${COMPONENT}: ram module built
install_ram: ${RAM_MODULE}
${MKDIR} ${INSTDIR}
${CP} ${RAM_MODULE} ${INSTDIR}.${TARGET} ${CPFLAGS}
@${ECHO} ${COMPONENT}: ram module installed
#
# Actually make the linked RAM target
#
${RAM_MODULE}: ${RAM_OBJS} ${RAM_LIBS} ${DIRS}
${MKDIR} rm
${LD} ${LDFLAGS} ${LDRAMFLAGS} -o $@ -rmf ${RAM_OBJS} ${RAM_LIBS}
${MODSQZ} ${MODSQZFLAGS} $@
EOFSTDMAKEFILE=$Id$
# EOF
# Copyright 2008 Castle Technology Ltd
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
# Makefile fragment for C and C++ modules targetted at ROMming.
INCLUDED_ROMCMODULE = YES
#
# $Id$
#
# This makefile provides the following phony targets:
#
# rom install_rom rom_link
#
#
# This fragment relies on srcbuild to set FORCEROMLINK if it really wants the
# relink of the ROM target to occur. This is used to generate correct commands
# in the BBE phase.
#
#
# This fragment uses the following macros set by the master makefile.
#
#
# COMPONENT (the name of the component)
# TARGET (leafname of component being build)
# ROM_MODULE(opt) (output filename of partially linked module - otherwise aof.${TARGET})
# LNK_MODULE(opt) (output filename of fixed-position module - otherwise linked.${TARGET})
# ROM_OBJS (opt) (component's object files for romming)
# ROM_LIBS (opt) (libraries to link again ROM_OBJS to generate ROM_MODULE)
# DIRS (opt) (magic target to ensure object directories are present)
# ROMCSTUBS (the C library)
# ABSSYM (C library symbols file for position-dependent link)
# ROM_DEPEND (opt) (any extra dependency to assert on ${ROM_MODULE}
#
#
# It relies on the following from the build system:
#
#
# INSTDIR (installation directory for ROM_MODULE - never used!)
# LINKDIR (installation directory for LNK_MODULE)
# ADDRESS (base address for LNK_MODULE)
#
#
# It relies on the following generic tool macros from the Tools makefile
#
# CP + CPFLAGS (copy, cp etc.)
# MKDIR (cdir/mkdir -p)
# ECHO
# LD + LDFLAGS (linker)
# LDROMFLAGS (more linker flags)
# LDLINKFLAGS (flags for the rom_link phase)
ROM_MODULE ?= aof.${TARGET}
LNK_MODULE ?= linked.${TARGET}
ROM_OBJS ?= ${OBJS}
ROM_LIBS ?= ${LIBS}
#
# RISC OS ROM build rules:
#
rom: ${ROM_MODULE}
@${ECHO} ${COMPONENT}: rom module built
install_rom: ${ROM_MODULE}
${CP} ${ROM_MODULE} ${INSTDIR}.${TARGET} ${CPFLAGS}
@${ECHO} ${COMPONENT}: rom module installed
#
# Actually make the partially linked ROM target
#
${ROM_MODULE}: ${ROM_OBJS} ${ROM_LIBS} ${ROMCSTUBS} ${DIRS} ${ROM_DEPEND}
${MKDIR} aof
${LD} -o $@ -aof ${ROM_OBJS} ${ROM_LIBS} ${ROMCSTUBS}
#
# Final link for the ROM Image (using given base address)
#
rom_link: ${ROM_MODULE} ${ABSSYM} ${FORCEROMLINK}
${MKDIR} linked
${LD} ${LDFLAGS} ${LDLINKFLAGS} -o ${LNK_MODULE} -rmf -base ${ADDRESS} ${ROM_MODULE} ${ABSSYM}
${CP} ${LNK_MODULE} ${LINKDIR}.${TARGET} ${CPFLAGS}
@${ECHO} ${COMPONENT}: rom_link complete
${LNK_MODULE}: ${ROM_MODULE} ${ABSSYM} ${FORCEROMLINK}
${MKDIR} linked
${LD} ${LDFLAGS} ${LDLINKFLAGS} -o $@ -rmf -base ${ADDRESS} ${ROM_MODULE} ${ABSSYM}
EOFSTDMKFILE=$Id$
# EOF
# Copyright 2008 Castle Technology Ltd
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
# Makefile fragment for assembler modules targetted at ROMming, built using objasm
INCLUDED_ROMMODULE = YES
#
# $Id$
#
# This makefile provides the following phony targets:
#
# all install_ram
#
#
# This fragment uses the following macros set by the master makefile.
#
#
# COMPONENT (the name of the component)
# TARGET (leafname of component being built)
# ROM_MODULE (output filename of module)
# ROM_OBJS (component's object files for romming)
# ROM_LIBS (libraries to link again ROM_OBJS to generate ROM_MODULE)
# DIRS (opt) (magic target to ensure object directories are present)
#
#
# It relies on the following from the build system:
#
#
# INSTDIR (installation directory for ROM_MODULE)
#
#
# It relies on the following generic tool macros from the Tools makefile
#
# CP + CPFLAGS (copy, cp etc.)
# MKDIR (cdir/mkdir -p)
# ECHO
# LD + LDFLAGS (linker)
# LDROMFLAGS (more linker flags)
#
# RISC OS ROM build rules:
#
rom: ${ROM_MODULE}
@${ECHO} ${COMPONENT}: rom module built
install_rom: ${ROM_MODULE}
${CP} ${ROM_MODULE} ${INSTDIR}.${TARGET} ${CPFLAGS}
@${ECHO} ${COMPONENT}: rom module installed
#
# Actually make the linked ROM target
#
${ROM_MODULE}: ${ROM_OBJS} ${ROM_LIBS} ${DIRS}
${MKDIR} rm
${LD} ${LDFLAGS} ${LDROMFLAGS} -o $@ -rmf ${ROM_OBJS} ${ROM_LIBS}
${CHMOD} -R a+rx rm
EOFSTDMAKEFILE=$Id$
# EOF
/* (5.39)
/* (5.40)
*
* This file is automatically maintained by srccommit, do not edit manually.
* Last processed by srccommit version: 1.1.
*
*/
#define Module_MajorVersion_CMHG 5.39
#define Module_MajorVersion_CMHG 5.40
#define Module_MinorVersion_CMHG
#define Module_Date_CMHG 04 Feb 2012
#define Module_MajorVersion "5.39"
#define Module_Version 539
#define Module_MajorVersion "5.40"
#define Module_Version 540
#define Module_MinorVersion ""
#define Module_Date "04 Feb 2012"
......@@ -18,6 +18,6 @@
#define Module_ComponentName "BuildSys"
#define Module_ComponentPath "castle/RiscOS/BuildSys"
#define Module_FullVersion "5.39"
#define Module_HelpVersion "5.39 (04 Feb 2012)"
#define Module_LibraryVersionInfo "5:39"
#define Module_FullVersion "5.40"
#define Module_HelpVersion "5.40 (04 Feb 2012)"
#define Module_LibraryVersionInfo "5:40"
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment