Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
ROOL
BuildSys
Commits
6de1e14c
Commit
6de1e14c
authored
11 years ago
by
Robert Sprowson
Browse files
Options
Download
Email Patches
Plain Diff
Merge of trunk BuildSys-6_34 to branch RPiFreeze
Version 6.00, 1.142.2.4. Tagged as 'BuildSys-6_00-1_142_2_4'
parent
773ab6e8
Changes
25
Hide whitespace changes
Inline
Side-by-side
Showing
20 changed files
with
211 additions
and
148 deletions
+211
-148
Components/ROOL/BuildHost
Components/ROOL/BuildHost
+1
-1
Components/ROOL/CTools
Components/ROOL/CTools
+1
-1
Components/ROOL/Disc
Components/ROOL/Disc
+10
-1
Components/ROOL/IOMD32
Components/ROOL/IOMD32
+2
-1
Components/ROOL/OMAP3
Components/ROOL/OMAP3
+2
-1
Components/ROOL/OMAP4
Components/ROOL/OMAP4
+2
-1
Components/ROOL/PlingSystem
Components/ROOL/PlingSystem
+4
-2
Components/ROOL/S3C2440
Components/ROOL/S3C2440
+2
-1
Components/ROOL/S3C6410
Components/ROOL/S3C6410
+2
-1
Components/ROOL/Tungsten
Components/ROOL/Tungsten
+2
-1
GNUmakefiles/AppLibs
GNUmakefiles/AppLibs
+3
-0
GNUmakefiles/CApp
GNUmakefiles/CApp
+55
-40
GNUmakefiles/CLibrary
GNUmakefiles/CLibrary
+36
-24
GNUmakefiles/StdTools
GNUmakefiles/StdTools
+9
-6
Makefiles/AAsmModule
Makefiles/AAsmModule
+16
-15
Makefiles/AppLibs
Makefiles/AppLibs
+1
-0
Makefiles/CApp
Makefiles/CApp
+41
-33
Makefiles/CLibrary
Makefiles/CLibrary
+20
-16
Makefiles/CModule
Makefiles/CModule
+0
-1
Makefiles/CUtil
Makefiles/CUtil
+2
-2
No files found.
Components/ROOL/BuildHost
View file @
6de1e14c
...
...
@@ -43,7 +43,7 @@ Common -type EXP
DDTLib -type EXP
DeskLib -type EXP
inetlib -type EXP
libgnu
-type EXP
libgnu
4
-type EXP
ModMallocLib -type EXP
NBLib -type EXP
PDebug -type EXP
...
...
This diff is collapsed.
Click to expand it.
Components/ROOL/CTools
View file @
6de1e14c
...
...
@@ -22,7 +22,7 @@ Kernel -type EXP
MessageTrans -type EXP
PDriver -type EXP
ResourceFS -type EXP
Squash
Closed
-type EXP
Squash
-type EXP
TaskManager -type EXP
TerritoryManager -type EXP
WindowManager -type EXP
...
...
This diff is collapsed.
Click to expand it.
Components/ROOL/Disc
View file @
6de1e14c
...
...
@@ -22,6 +22,7 @@ FileCore -type EXP # FileSys.FileCore
ADFS -type EXP # FileSys.ADFS.ADFS
ATAPI -type EXP # HWSupport.CD.ATAPI
BASICTrans -type EXP # Programmer.BASICTrans
BlendTable -type EXP # Video.Render.BlendTable
BufferManager -type EXP # HWSupport.Buffers
CDFS -type EXP # FileSys.CDFS.CDFS
CDFSDriver -type EXP # HWSupport.CD.CDFSDriver
...
...
@@ -48,6 +49,7 @@ FSLock -type EXP # FileSys.FSLock
HostFS -type EXP # Programmer.HostFS
Hourglass -type EXP # Video.Render.Hourglass
IIC -type EXP # HWSupport.IIC
ITable -type EXP # Video.Render.Fonts.ITable
PortManager -type EXP # HWSupport.PortMan
Joystick -type EXP # HWSupport.Joystick
MakePSFont -type EXP # Printing.Modules.MakePSFont <- also included as installed component
...
...
@@ -134,6 +136,7 @@ KeyWatch -type EXP # Programmer.KeyWatch
MemLib -type EXP # Lib.MemLib
RMVersion -type EXP # Programmer.RMVersion
SCInterface -type EXP # HWSupport.SmartCard.SCInter
SoundControl -type EXP # Audio.SoundCtrl
SpriteExtend -type EXP # Video.Render.SprExtend <- also included as installed component
USBDriver -type EXP # HWSupport.USB.NetBSD
...
...
@@ -159,6 +162,11 @@ Fonts -options INSTDIR=<Install$Dir>.HardDisc4.!Boot.Resources
ThemeDefs -options INSTDIR=<Install$Dir>.HardDisc4.!Boot.Resources
Paint -options INSTDIR=<Install$Dir>.HardDisc4.!Boot.Resources.!ThemeDefs.Themes TARGET=ThemeDefs USERIF=Iyonix
Draw -options INSTDIR=<Install$Dir>.HardDisc4.!Boot.Resources.!ThemeDefs.Themes TARGET=ThemeDefs USERIF=Iyonix
ADFSFiler -options INSTDIR=<Install$Dir>.HardDisc4.!Boot.Resources.!ThemeDefs.Themes TARGET=ThemeDefs USERIF=Iyonix
ADFSFiler -options INSTDIR=<Install$Dir>.HardDisc4.!Boot.Resources.!ThemeDefs.Themes TARGET=ThemeDefs USERIF=Sovereign
ADFSFiler -options INSTDIR=<Install$Dir>.HardDisc4.!Boot.Resources.!ThemeDefs.Themes TARGET=ThemeDefs USERIF=Morris4
ADFSFiler -options INSTDIR=<Install$Dir>.HardDisc4.!Boot.Resources.!ThemeDefs.Themes TARGET=ThemeDefs USERIF=Ursula
ADFSFiler -options INSTDIR=<Install$Dir>.HardDisc4.!Boot.Resources.!ThemeDefs.Themes TARGET=ThemeDefs USERIF=Raspberry
Desktop -options INSTDIR=<Install$Dir>.HardDisc4.!Boot.Resources.!ThemeDefs.Themes TARGET=ThemeDefs USERIF=Iyonix
Desktop -options INSTDIR=<Install$Dir>.HardDisc4.!Boot.Resources.!ThemeDefs.Themes TARGET=ThemeDefs USERIF=Sovereign
Desktop -options INSTDIR=<Install$Dir>.HardDisc4.!Boot.Resources.!ThemeDefs.Themes TARGET=ThemeDefs USERIF=Morris4
...
...
@@ -224,7 +232,7 @@ Config2PluginMousSetup -options INSTDIR=<Install$Dir>.HardDisc4.!Boot.RO500Hook
Config2PluginPinSetup -options INSTDIR=<Install$Dir>.HardDisc4.!Boot.RO500Hook.Res.Configure
Config2PluginScrnSetup -options INSTDIR=<Install$Dir>.HardDisc4.!Boot.RO500Hook.Res.Configure
Config2PluginSndSetup -options INSTDIR=<Install$Dir>.HardDisc4.!Boot.RO500Hook.Res.Configure
Config2Plugin
Snd
Setup
VIDC
-options INSTDIR=<Install$Dir>.HardDisc4.!Boot.RO500Hook.Res.Configure
.!SndSetup.VIDC
Config2Plugin
Theme
Setup -options INSTDIR=<Install$Dir>.HardDisc4.!Boot.RO500Hook.Res.Configure
Config2PluginTimeSetup -options INSTDIR=<Install$Dir>.HardDisc4.!Boot.RO500Hook.Res.Configure
Config2PluginWindSetup -options INSTDIR=<Install$Dir>.HardDisc4.!Boot.RO500Hook.Res.Configure
Config2PluginxxxxMerge -options INSTDIR=<Install$Dir>.HardDisc4.!Boot.RO500Hook.Res.Configure.!BootSetup COMPONENT=BootMerge
...
...
@@ -246,6 +254,7 @@ SCSIFiler -options INSTDIR=<Install$Dir>.HardDisc4.!Boot.RO510Hook
# AutoSense files for InetSetup
EtherK -options INSTDIR=<Install$Dir>.HardDisc4.!Boot.Resources.Configure.!InetSetup.AutoSense TARGET=AutoSense
EtherUSB -options INSTDIR=<Install$Dir>.HardDisc4.!Boot.Resources.Configure.!InetSetup.AutoSense TARGET=AutoSense
EtherY -options INSTDIR=<Install$Dir>.HardDisc4.!Boot.Resources.Configure.!InetSetup.AutoSense TARGET=AutoSense
# Apps
Alarm -options INSTDIR=<Install$Dir>.HardDisc4.!Boot.RO350Hook.Apps
...
...
This diff is collapsed.
Click to expand it.
Components/ROOL/IOMD32
View file @
6de1e14c
...
...
@@ -93,7 +93,7 @@ PipeFS
RAMFSFiler
ResourceFiler
ROMFonts
RTC
Adjust
RTC
ScreenBlanker
ScrSaver -options SCRSAVERAPP=No
SerialDeviceDriver
...
...
@@ -170,6 +170,7 @@ CDFS
CDFSFiler
UnSqzAIF
BlendTable
InetRes -options TYPE=EmergencyUtils
HeroNames
...
...
This diff is collapsed.
Click to expand it.
Components/ROOL/OMAP3
View file @
6de1e14c
...
...
@@ -96,7 +96,7 @@ PipeFS
RAMFSFiler
ResourceFiler
ROMFonts
#
RTC
Adjust
RTC
ScreenBlanker
ScrSaver -options SCRSAVERAPP=No
DualSerial
...
...
@@ -185,6 +185,7 @@ CDFSFiler
UnSqzAIF
PandoraKey
BatMgrHAL
BlendTable
InetRes -options TYPE=EmergencyUtils
# some libraries and bits
...
...
This diff is collapsed.
Click to expand it.
Components/ROOL/OMAP4
View file @
6de1e14c
...
...
@@ -95,7 +95,7 @@ PipeFS
RAMFSFiler
ResourceFiler
ROMFonts
#
RTC
Adjust
RTC
ScreenBlanker
ScrSaver -options SCRSAVERAPP=No
DualSerial
...
...
@@ -182,6 +182,7 @@ CDFS
CDFSFiler
UnSqzAIF
BlendTable
InetRes -options TYPE=EmergencyUtils
# some libraries and bits
...
...
This diff is collapsed.
Click to expand it.
Components/ROOL/PlingSystem
View file @
6de1e14c
...
...
@@ -35,7 +35,8 @@ DOSFS -type EXP
DragAnObj -type EXP
DragASprite -type EXP
DrawMod -type EXP
FileCore -type EXP
Econet -type EXP
FileCore -type EXP
Filer_Action -type EXP
FileSwitch -type EXP
FilterManager -type EXP
...
...
@@ -112,7 +113,8 @@ TinyStubs -options INSTDIR=<Install$Dir>.System.!System.310.Module
FilterManager -options INSTDIR=<Install$Dir>.System.!System.310.Modules CMDHELP=None
FrontEnd -options INSTDIR=<Install$Dir>.System.!System.310.Modules
ColourPicker -options INSTDIR=<Install$Dir>.System.!System.310.Modules OPTIONS="-DNO_INTERNATIONAL_HELP"
DrawFile -options INSTDIR=<Install$Dir>.System.!System.310.Modules INTERNATIONAL_HELP=NO
DrawFile -options INSTDIR=<Install$Dir>.System.!System.310.Modules CMDHELP=None
Internet -options INSTDIR=<Install$Dir>.System.!System.310.Modules.Network CMDHELP=None
ITable -options INSTDIR=<Install$Dir>.System.!System.350.Modules
UnSqzAIF -options INSTDIR=<Install$Dir>.System.!System.370.Modules
PatchApp -options INSTDIR=<Install$Dir>.System.!System.370.Modules
...
...
This diff is collapsed.
Click to expand it.
Components/ROOL/S3C2440
View file @
6de1e14c
...
...
@@ -92,7 +92,7 @@ PipeFS
RAMFSFiler
ResourceFiler
ROMFonts
#RTC
Adjust
#RTC
ScreenBlanker
ScrSaver -options SCRSAVERAPP=No
#DualSerial
...
...
@@ -174,6 +174,7 @@ Gadgets
#CDFSFiler
UnSqzAIF
BlendTable
#InetRes -options TYPE=EmergencyUtils
# some libraries and bits
...
...
This diff is collapsed.
Click to expand it.
Components/ROOL/S3C6410
View file @
6de1e14c
...
...
@@ -92,7 +92,7 @@ PipeFS
RAMFSFiler
ResourceFiler
ROMFonts
#RTC
Adjust
#RTC
ScreenBlanker
ScrSaver -options SCRSAVERAPP=No
#DualSerial
...
...
@@ -174,6 +174,7 @@ Gadgets
#CDFSFiler
UnSqzAIF
BlendTable
#InetRes -options TYPE=EmergencyUtils
# some libraries and bits
...
...
This diff is collapsed.
Click to expand it.
Components/ROOL/Tungsten
View file @
6de1e14c
...
...
@@ -95,7 +95,7 @@ PipeFS
RAMFSFiler
ResourceFiler
ROMFonts
RTC
Adjust
RTC
ScreenBlanker
ScrSaver -options SCRSAVERAPP=No
DualSerial
...
...
@@ -180,6 +180,7 @@ CDFS
CDFSFiler
UnSqzAIF
BlendTable
InetRes -options TYPE=EmergencyUtils
# some libraries and bits
...
...
This diff is collapsed.
Click to expand it.
GNUmakefiles/AppLibs
View file @
6de1e14c
...
...
@@ -45,6 +45,7 @@ NET5LIBS = ${UNIXLIB} ${INETLIB} ${SOCK5LIB}
ABCLIB = ${LIBDIR}/ABCLib/ABCLib.a
CALLXLIB = ${LIBDIR}/callx/callx.a
CONLIB = ${LIBDIR}/ConfigLib/ConfigLib.a
DDTLIB = ${LIBDIR}/DDTLib/DDTLib.a
DESKLIB = ${LIBDIR}/Desk/Desk.a
FETCHLIB = ${LIBDIR}/Fetchers/FetchLibZM.a
...
...
@@ -54,6 +55,8 @@ MODMALLOCLIB = ${LIBDIR}/ModMalloc/Lib.a
NCMALIB = ${LIBDIR}/NCMALib/NCMALib.a
NSPRLIB = ${LIBDIR}/NSPRLib/NSPRLib.a
OSLIB = ${LIBDIR}/OSLib/OSLib.a
RMVSN = ${LIBDIR}/RMVersion/RMVersion.a
SYNCLIB = ${LIBDIR}/SyncLib/SyncLib.a
TGRLIB = ${LIBDIR}/TGRLib/tgrlib.a
WILDLIB = ${LIBDIR}/Wild/Wild.a
...
...
This diff is collapsed.
Click to expand it.
GNUmakefiles/CApp
View file @
6de1e14c
...
...
@@ -11,24 +11,23 @@ INCLUDED_CAPP = YES
# This fragment uses the following macros set by the master makefile.
#
#
# COMPONENT (the name of the component)
# TARGET (opt) (the leafname of the application - otherwise ${COMPONENT})
# DBG_TARGET (opt) (debug application leafname - otherwise ${TARGET}-D)
# INSTDIR (opt) (the target directory - otherwise ${INSTALLDIR}/${TARGET})
# DIRS (opt) (stamp object for directory creation - otherwise _dirs)
# OBJS (opt) (object files, no o. prefixes - otherwise ${TARGET})
# DBG_OBJS (opt) (debug build object files, no prefixes - otherwise ${OBJS})
# LIBS (opt) (extra libraries; CLib is always used)
# DBG_LIBS (opt) (extra debug libraries - otherwsie ${LIBS};
# CLib and DEBUGLIBS always used)
# APP_OBJS (opt) (object files for application version - otherwise derived
# from ${OBJS})
# APP_DBG_OBJS (opt) (object files for debug app version - otherwise derived
# from ${DBG_OBJS})
# LINK_TYPE (opt) (variant of linking command, eg C++ - defaults to C)
# INSTTYPE (opt) (use "tool" or "app" to install executable vs application - defaults to "tool")
# INSTALLAPPFILES (opt) (list of files to be installed in application directory - use InstRes specification rules)
# INSTALLAPP_DEPEND (opt) (list of dependencies to be satisfied before doing application install - ${TARGET} assumed if in INSTALLAPPFILES)
# COMPONENT (the name of the component)
# TARGET (opt) (the leafname of the application - otherwise ${COMPONENT})
# DBG_TARGET (opt) (debug application leafname - otherwise ${TARGET}-D)
# INSTAPP (opt) (the application target directory - otherwise ${INSTDIR}/!${COMPONENT})
# INSTDIR (opt) (the target directory - otherwise ${INSTALLDIR}/${TARGET})
# DIRS (opt) (stamp object for directory creation - otherwise _dirs)
# OBJS (opt) (object files, no o. prefixes - otherwise ${TARGET})
# APP_OBJS (opt) (release build object files, no prefixes - otherwise ${OBJS})
# DBG_OBJS (opt) (debug build object files, no prefixes - otherwise ${OBJS})
# LIBS (opt) (extra libraries; ${CLIB} is always used)
# APP_LIBS (opt) (extra release libraries - otherwise ${LIBS}; ${CLIB} is always used)
# DBG_LIBS (opt) (extra debug libraries - otherwise ${LIBS}; ${CLIB} and ${DEBUGLIBS} always used)
# LINK_TYPE (opt) (variant of linking command, eg C++ - defaults to C)
# INSTTYPE (opt) (use "tool" or "app" to install executable vs application - defaults to "tool")
# INSTAPP_FILES (opt) (list of files to be installed in application directory - use InstRes specification rules)
# INSTAPP_DEPENDS (opt) (list of dependencies to be satisfied before doing application install - ${TARGET} assumed if in INSTAPP_FILES)
# INSTAPP_VERSION (opt) (list of Messages/!Run/Desc files to insert app version from VersionNum - include in INSTAPP_FILES as well)
# CUSTOMLINK (opt) (set to "custom" to override the link rule)
# CUSTOMINSTALLAPP (opt) (set to "custom" to override the install rule for resource files)
# CUSTOMINSTALLTOOL (opt) (set to "custom" to override the install rule for target binary)
...
...
@@ -48,6 +47,7 @@ INCLUDED_CAPP = YES
# MKDIR (cdir/mkdir -p)
# ECHO
# TOUCH (create/touch)
# INSERTVERSION (awk script to substitute from VersionNum)
#
#
# It relies on the following from the StdRules makefile
...
...
@@ -67,8 +67,10 @@ INCLUDED_CAPP = YES
TARGET ?= ${COMPONENT}
DBG_TARGET ?= ${TARGET}-D
INSTDIR ?= ${INSTALLDIR}/${TARGET}
INSTAPP ?= ${INSTDIR}/!${COMPONENT}
DIRS ?= _dirs
OBJS ?= ${TARGET}
APP_OBJS ?= ${OBJS}
DBG_OBJS ?= ${OBJS}
APP_LIBS ?= ${LIBS}
DBG_LIBS ?= ${LIBS}
...
...
@@ -79,8 +81,9 @@ DBG_LIBS += ${C++LIB}
endif
APP_LIBS += ${CLIB}
DBG_LIBS += ${CLIB}
APP_OBJS ?= $(addsuffix .o,${OBJS})
APP_DBG_OBJS ?= $(addsuffix .od,${DBG_OBJS})
APP_OBJS_ = $(addsuffix .o,${APP_OBJS})
DBG_OBJS_ = $(addsuffix .od,${DBG_OBJS})
SOURCES_TO_SYMLINK += $(wildcard c/*) $(wildcard c++/*) $(wildcard h/*) $(wildcard s/*) VersionNum VersionASM
...
...
@@ -89,8 +92,21 @@ ifneq (objs,$(notdir ${CURDIR}))
# Makefile invoked from same directory
# Create link farm, then execute the makefile from within it
all install debug clean links: ${SYMLINK_DEPEND}
ifneq (clean,${MAKECMDGOALS})
ifeq (clean,${MAKECMDGOALS})
# With a double-colon rule which can have additional actions assigned from the
# master makefile, we'd normally need the master makefile to include the
# ${CURDIR} check to ensure that it's performed on the same invocation as us.
# However, there's no real benefit to performing clean from within the objs
# directory, and it adds an ordering problem between the different double-colon
# rules (the one that deletes the objs directory has to be last otherwise the
# cwd is invalid for the others) so to simplify things, we only ever do cleans
# from the same directory as the Makefile.
clean::
@echo Cleaning...
@rm -rf objs
@echo ${COMPONENT}: cleaned
else
all install debug links: ${SYMLINK_DEPEND}
$(foreach linksource,${SOURCES_TO_SYMLINK}, \
$(shell \
linkdest=`echo ${linksource} | sed -e 's,\([^/]*\)/\([^/]*\)$$,\2.\1,' -e 's,^,objs/,'`; \
...
...
@@ -101,11 +117,11 @@ ifneq (clean,${MAKECMDGOALS})
) \
)
@[ -L objs/Resources ] || ln -s ../Resources objs/Resources
endif
@mkdir -p objs
ifneq (links,${MAKECMDGOALS})
@${MAKE} -C objs -f ../$(firstword ${MAKEFILE_LIST}) ${MAKECMDGOALS}
endif
endif
else
...
...
@@ -130,27 +146,26 @@ endif
all: ${TARGET}${SUFFIX_ABSOLUTE}
@${ECHO} ${COMPONENT}: application built
${DIRS}
::
${DIRS}::
${TOUCH} $@
clean ::
@${ECHO} Cleaning...
@cd .. && ${WIPE} objs ${WFLAGS}
@${ECHO} ${COMPONENT}: cleaned
install: install_${INSTTYPE}
install_: install_tool
INSTA
LLA
PP_DEPEND += $(addsuffix ${SUFFIX_ABSOLUTE},$(filter ${TARGET},${INSTA
LLA
PPFILES}))
INSTAPP_DEPEND
S
+= $(addsuffix ${SUFFIX_ABSOLUTE},$(filter ${TARGET},${INSTAPP
_
FILES}))
install_app${CUSTOMINSTALLAPP}: ${INSTA
LLA
PP_DEPEND}
install_app${CUSTOMINSTALLAPP}: ${INSTAPP_DEPEND
S
}
${MKDIR} ${INSTAPP}
${INSTRES} -I Resources.${USERIF}.${LOCALE},Resources.${USERIF}.UK,Resources.${LOCALE},Resources.UK,Resources ${INSTAPP} ${INSTALLAPPFILES}
ifneq (,$(filter Desc,${INSTALLAPPFILES}))
${CPREPRO} -I. ${INSTAPP}/Desc > ${INSTAPP}/DescTmp
${TIDYDESC} ${INSTAPP}/Desc ${INSTAPP}/DescTmp
${RM} ${INSTAPP}/DescTmp
${INSTRES} -I Resources.${USERIF}.${LOCALE},Resources.${USERIF}.UK,Resources.${LOCALE},Resources.UK,Resources ${INSTAPP} ${INSTAPP_FILES}
ifneq (,$(filter Messages,${INSTAPP_VERSION}))
TMP=`mktemp`; ${INSERTVERSION} ${INSTAPP}/Messages > $$TMP; mv $$TMP ${INSTAPP}/Messages
endif
ifneq (,$(filter Desc,${INSTAPP_VERSION}))
TMP=`mktemp`; ${INSERTVERSION} descmode=1 ${INSTAPP}/Desc ${INSTAPP}/Desc > $$TMP; mv $$TMP ${INSTAPP}/Desc
endif
ifneq (,$(filter !Run,${INSTAPP_VERSION}))
TMP=`mktemp`; ${INSERTVERSION} obeymode=1 ${INSTAPP}/!Run${SUFFIX_OBEY} > $$TMP; mv $$TMP ${INSTAPP}/!Run${SUFFIX_OBEY}
endif
@${ECHO} ${COMPONENT}: application installation complete
...
...
@@ -162,13 +177,13 @@ install_tool${CUSTOMINSTALLTOOL}: ${TARGET}${SUFFIX_ABSOLUTE}
debug: ${DBG_TARGET}${SUFFIX_DEBIMAGE}
@${ECHO} ${COMPONENT}: debug application built
${TARGET}${SUFFIX_ABSOLUTE}${CUSTOMLINK}: ${DIRS} ${APP_OBJS} ${APP_LIBS}
${LD} ${LDFLAGS} -o $@ ${APP_OBJS} ${APP_LIBS}
${TARGET}${SUFFIX_ABSOLUTE}${CUSTOMLINK}: ${DIRS} ${APP_OBJS
_
} ${APP_LIBS}
${LD} ${LDFLAGS} -o $@ ${APP_OBJS
_
} ${APP_LIBS}
${STRIP} $@
${SQZ} ${SQZFLAGS} $@
${DBG_TARGET}${SUFFIX_DEBIMAGE}${CUSTOMLINK}: ${DIRS} ${
APP_
DBG_OBJS} ${DBG_LIBS}
${LD} ${LDFLAGS} ${LDDFLAGS} -o $@ ${
APP_
DBG_OBJS} ${DBG_LIBS}
${DBG_TARGET}${SUFFIX_DEBIMAGE}${CUSTOMLINK}: ${DIRS} ${DBG_OBJS
_
} ${DBG_LIBS}
${LD} ${LDFLAGS} ${LDDFLAGS} -o $@ ${DBG_OBJS
_
} ${DBG_LIBS}
include $(wildcard *.d)
include $(wildcard *.dd)
...
...
This diff is collapsed.
Click to expand it.
GNUmakefiles/CLibrary
View file @
6de1e14c
...
...
@@ -25,10 +25,10 @@ INCLUDED_CLIBRARY = YES
# ASMHDRS (opt) (assembly header files to export, no Hdr. prefix - otherwise none)
# OBJS (object files, no o. or oz. prefixes)
# DBG_OBJS (opt) (debug build object files, no o. or oz. prefixes - otherwise ${OBJS})
# APP_OBJS (opt) (
object files for application version - otherwise derived from
${OBJS})
# APP_DBG_OBJS (opt) (
object files for debug app version - otherwise derived from
${DBG_OBJS})
# MOD_OBJS (opt) (
object files for module version - otherwise derived from
${OBJS})
# MOD_DBG_OBJS (opt) (
object files for debug module version - otherwise derived from
${DBG_OBJS})
# APP_OBJS (opt) (
release application object files, no o. or oz. prefixes - otherwise
${OBJS})
# APP_DBG_OBJS (opt) (
debug application object files, no o. or oz. prefixes - otherwise
${DBG_OBJS})
# MOD_OBJS (opt) (
release module object files, no o. or oz. prefixes - otherwise
${OBJS})
# MOD_DBG_OBJS (opt) (
debug module object files, no o. or oz. prefixes - otherwise
${DBG_OBJS})
# CUSTOMLIB (opt) (set to "custom" to override the application library rule)
# CUSTOMLIBZM (opt) (set to "custom" to override the module library rule)
# CUSTOMLIBD (opt) (set to "custom" to override the debug application library rule)
...
...
@@ -84,10 +84,14 @@ DIRS ?= _dirs
HDRS ?= ${TARGET}
ASMHDRS ?=
DBG_OBJS ?= ${OBJS}
APP_OBJS ?= $(addsuffix .o,${OBJS})
APP_DBG_OBJS ?= $(addsuffix .od,${DBG_OBJS})
MOD_OBJS ?= $(addsuffix .oz,${OBJS})
MOD_DBG_OBJS ?= $(addsuffix .odz,${DBG_OBJS})
APP_OBJS ?= ${OBJS}
APP_DBG_OBJS ?= ${DBG_OBJS}
MOD_OBJS ?= ${OBJS}
MOD_DBG_OBJS ?= ${DBG_OBJS}
APP_OBJS_ = $(addsuffix .o,${APP_OBJS})
APP_DBG_OBJS_ = $(addsuffix .od,${APP_DBG_OBJS})
MOD_OBJS_ = $(addsuffix .oz,${MOD_OBJS})
MOD_DBG_OBJS_ = $(addsuffix .odz,${MOD_DBG_OBJS})
EXPORTING_HDRS = $(addsuffix .exphdr,${HDRS})
EXPORTING_ASMHDRS = $(addsuffix .expasm,${ASMHDRS})
...
...
@@ -101,8 +105,21 @@ ifneq (objs,$(notdir ${CURDIR}))
# Makefile invoked from same directory
# Create link farm, then execute the makefile from within it
all_libs export_hdrs export_libs clean links: ${SYMLINK_DEPEND}
ifneq (clean,${MAKECMDGOALS})
ifeq (clean,${MAKECMDGOALS})
# With a double-colon rule which can have additional actions assigned from the
# master makefile, we'd normally need the master makefile to include the
# ${CURDIR} check to ensure that it's performed on the same invocation as us.
# However, there's no real benefit to performing clean from within the objs
# directory, and it adds an ordering problem between the different double-colon
# rules (the one that deletes the objs directory has to be last otherwise the
# cwd is invalid for the others) so to simplify things, we only ever do cleans
# from the same directory as the Makefile.
clean::
@echo Cleaning...
@rm -rf objs
@echo ${COMPONENT}: cleaned
else
all_libs export_hdrs export_libs links: ${SYMLINK_DEPEND}
$(foreach linksource,${SOURCES_TO_SYMLINK}, \
$(shell \
linkdest=`echo ${linksource} | sed -e 's,\([^/]*\)/\([^/]*\)$$,\2.\1,' -e 's,^,objs/,'`; \
...
...
@@ -112,11 +129,11 @@ ifneq (clean,${MAKECMDGOALS})
[ -d ${linksource} ] || [ -L $$linkdest ] || ln -s $$linkbackpath/${linksource} $$linkdest; \
) \
)
endif
@mkdir -p objs
ifneq (links,${MAKECMDGOALS})
@${MAKE} -C objs -f ../$(firstword ${MAKEFILE_LIST}) ${MAKECMDGOALS}
endif
endif
else
...
...
@@ -139,11 +156,6 @@ all_libs: ${TARGET_LIBS}
${DIRS} ::
${TOUCH} $@
clean ::
@${ECHO} Cleaning...
@cd .. && ${WIPE} objs ${WFLAGS}
@${ECHO} ${COMPONENT}: cleaned
export: export_${PHASE}
${NOP}
...
...
@@ -169,17 +181,17 @@ export_libs: create_exp_lib_dir ${DIRS} ${EXPORTING_LIBS} ${TARGET_LIBS}
[ ! -f ../VersionNum ] || ${CP} ../VersionNum ${EXPDIR}/LibVersion ${CPFLAGS}
@${ECHO} ${COMPONENT}: library export complete
${LIBRARY}${CUSTOMLIB}.${LIBEXT}: ${DIRS} ${APP_OBJS}
${AR} ${ARFLAGS} ${LIBRARY}.${LIBEXT} ${APP_OBJS}
${LIBRARY}${CUSTOMLIB}.${LIBEXT}: ${DIRS} ${APP_OBJS
_
}
${AR} ${ARFLAGS} ${LIBRARY}.${LIBEXT} ${APP_OBJS
_
}
${LIBRARYZM}${CUSTOMLIBZM}.${LIBEXT}: ${DIRS} ${MOD_OBJS}
${AR} ${ARFLAGS} ${LIBRARYZM}.${LIBEXT} ${MOD_OBJS}
${LIBRARYZM}${CUSTOMLIBZM}.${LIBEXT}: ${DIRS} ${MOD_OBJS
_
}
${AR} ${ARFLAGS} ${LIBRARYZM}.${LIBEXT} ${MOD_OBJS
_
}
${LIBRARYD}${CUSTOMLIBD}.${LIBEXT}: ${DIRS} ${APP_DBG_OBJS}
${AR} ${ARFLAGS} ${LIBRARYD}.${LIBEXT} ${APP_DBG_OBJS}
${LIBRARYD}${CUSTOMLIBD}.${LIBEXT}: ${DIRS} ${APP_DBG_OBJS
_
}
${AR} ${ARFLAGS} ${LIBRARYD}.${LIBEXT} ${APP_DBG_OBJS
_
}
${LIBRARYDZM}${CUSTOMLIBDZM}.${LIBEXT}: ${DIRS} ${MOD_DBG_OBJS}
${AR} ${ARFLAGS} ${LIBRARYDZM}.${LIBEXT} ${MOD_DBG_OBJS}
${LIBRARYDZM}${CUSTOMLIBDZM}.${LIBEXT}: ${DIRS} ${MOD_DBG_OBJS
_
}
${AR} ${ARFLAGS} ${LIBRARYDZM}.${LIBEXT} ${MOD_DBG_OBJS
_
}
include $(wildcard *.d)
include $(wildcard *.dz)
...
...
This diff is collapsed.
Click to expand it.
GNUmakefiles/StdTools
View file @
6de1e14c
...
...
@@ -9,6 +9,7 @@ INCLUDED_STDTOOLS = YES
ifneq (Host,${APCS})
GNUTOOLPREFIX = arm-unknown-riscos-
SUFFIX_ABSOLUTE = ,ff8
SUFFIX_OBEY = ,feb
SUFFIX_DEBIMAGE = ,fd3
endif
...
...
@@ -57,11 +58,12 @@ CAT = cat
#DEFMOD = defmod
DO =
ECHO = echo
FILTERCOMP = FilterComp,102
FILTERCOMP2 = FilterComp2,102
GETVERSION = GetVersion,102
HDR2H = Hdr2H,102
INSTRES = InstRes,102
FILTERCOMP = perl ${TOOLSDIR}/Misc/FilterComp,102
FILTERCOMP2 = perl ${TOOLSDIR}/Misc/FilterComp2,102
GETVERSION = perl ${TOOLSDIR}/Misc/GetVersion,102
HDR2H = perl ${TOOLSDIR}/Build/Hdr2H,102
INSERTVERSION = awk -f ${TOOLSDIR}/Build/AwkVers
INSTRES = perl ${TOOLSDIR}/Build/InstRes,102
MAKE = make
MODGEN = modgen
MODSQZ = modsqz
...
...
@@ -77,7 +79,6 @@ else
SQZ = @echo > /dev/null
endif
#STRIPDEPEND = stripdepnd
TIDYDESC = TidyDesc,102
#TLINK = tlink
#TOGPA = ToGPA
#TOKENCHECK = tokencheck
...
...
@@ -113,6 +114,8 @@ UNZIP = unzip
STDTOOLOPTIONS = ${THROWBACK}
ASFLAGS += ${STDTOOLOPTIONS} ${ASMDEFINES} ${ASMINCLUDES}
ASFLAGS += -I${GLOBALHDRDIR} -I${EXPORTDIR}
ASFLAGS += -PD "APCS SETS \"${APCS}\"" -PD "Machine SETS \"${MACHINE}\"" -PD "UserIF SETS \"${USERIF}\""
ifeq (GNU,${TOOLCHAIN})
ifeq (Host,${APCS})
CINCLUDES += -I${LIBDIR}/CLib
...
...
This diff is collapsed.
Click to expand it.
Makefiles/AAsmModule
View file @
6de1e14c
...
...
@@ -30,16 +30,19 @@ INCLUDED_AASMMODULE = YES
# This fragment uses the following macros set by the master makefile.
#
#
# COMPONENT (the name of the component)
#
# RESFSDIR (opt) (actual directory to export resources to)
# ROM_MODULE(opt) (output filename - otherwise rm.${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)
# HEADER1 (opt) (leafname of file in hdr to copy to <export$dir> on export_hdrs)
# HEADER2 (opt) (leafname of file in hdr to copy to <export$dir> on export_hdrs)
# EXP_HDR (opt) (directory for exported assembler interface headers)
# COMPONENT (the name of the component)
# TARGET (opt) (the leafname of the module - otherwise ${COMPONENT})
# RESFSDIR (opt) (actual directory to export resources to)
# ROM_MODULE (opt) (output filename - otherwise rm.${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)
# HEADER[1-3] (opt) (leafname of file in hdr to copy to <export$dir> on export_hdrs)
# ASMCHEADER[1-3] (opt) (C-from-assembly auto-generated header files to export, no Hdr. prefix - otherwise none)
# C_EXP_HDR (opt) (C header target directory - otherwise <cexport$dir>.Interface.h)
# EXP_HDR (opt) (directory for exported assembler interface headers)
# ROM_DEPEND (opt) (any extra dependency to assert on ROM_TARGET)
# SA_DEPEND (opt) (any extra dependency to assert on SA_TARGET and DBG_TARGET)
#
#
# It relies on the following from the build system:
...
...
@@ -125,13 +128,12 @@ install_rom${CUSTOMROM}: ${ROM_MODULE}
#
# Actually make the linked ROM target
#
${ROM_MODULE}: ${ROM_OBJECT} ${ROM_LIBS} ${DIRS}
${ROM_MODULE}: ${ROM_OBJECT} ${ROM_LIBS} ${DIRS}
${ROM_DEPEND}
${MKDIR} rm.${MACHINE}
${LD} -rmf -o $@ ${ROM_OBJECT} ${ROM_LIBS}
${LD} -aif -bin -d -Entry 0 -o ${ROM_MODULE}_aif ${ROM_OBJECT} ${ROM_LIBS}
${TOGPA} -s ${ROM_MODULE}_aif ${ROM_MODULE}_gpa
${ROM_OBJECT}: ${ROM_SOURCE} ${TOKHELPSRC} ${DIRS}
${MKDIR} o.${MACHINE}
${AS} ${ASFLAGS} -g -o $@ ${ROM_SOURCE}
...
...
@@ -142,13 +144,12 @@ ${ROM_OBJECT}: ${ROM_SOURCE} ${TOKHELPSRC} ${DIRS}
standalone${CUSTOMSA}: ${SA_MODULE}
@${ECHO} ${COMPONENT}: standalone module built
${SA_MODULE}: ${SA_OBJECT} ${SA_LIBS} ${DIRS}
${SA_MODULE}: ${SA_OBJECT} ${SA_LIBS} ${DIRS}
${SA_DEPEND}
${MKDIR} rm.${MACHINE}
${LD} -rmf -o $@ ${SA_OBJECT} ${SA_LIBS}
${MODSQZ} -f ${MODSQZFLAGS} $@
${CHMOD} -R a+rx rm
${SA_OBJECT}: ${ROM_SOURCE} ${MERGEDMSGS} ${TOKHELPSRC} ${DIRS}
${MKDIR} o.${MACHINE}
${AS} ${ASFLAGS} -o $@ ${ROM_SOURCE} ${SA_FLAGS}
...
...
@@ -169,7 +170,7 @@ install${CUSTOMSA}: ${SA_MODULE}
debug${CUSTOMDBG}: ${DBG_MODULE}
@${ECHO} ${COMPONENT}: standalone debug module built
${DBG_MODULE}: ${DBG_OBJECT} ${DBG_LIBS} ${DIRS}
${DBG_MODULE}: ${DBG_OBJECT} ${DBG_LIBS} ${DIRS}
${SA_DEPEND}
${MKDIR} rm.${MACHINE}
${LD} -rmf -o $@ ${DBG_OBJECT} ${DBG_LIBS}
...
...
This diff is collapsed.
Click to expand it.
Makefiles/AppLibs
View file @
6de1e14c
...
...
@@ -63,6 +63,7 @@ MODMALLOCLIB = C:ModMalloc.o.Lib
NCMALIB = C:NCMALib.o.NCMALib
NSPRLIB = C:NSPRLib.o.NSPRLib
OSLIB = C:OSLib.o.OSLib
RMVSN = C:RMVersion.o.RMVersion
SYNCLIB = C:SyncLib.o.SyncLib
TGRLIB = C:TGRLib.o.tgrlib
WILDLIB = C:Wild.o.Wild
...
...
This diff is collapsed.
Click to expand it.
Makefiles/CApp
View file @
6de1e14c
...
...
@@ -27,24 +27,23 @@ INCLUDED_CAPP = YES
# This fragment uses the following macros set by the master makefile.
#
#
# COMPONENT (the name of the component)
# TARGET (opt) (the leafname of the application - otherwise ${COMPONENT})
# DBG_TARGET (opt) (debug application leafname - otherwise ${TARGET}-D)
# INSTDIR (opt) (the target directory - otherwise <Install$Dir>.${TARGET})
# DIRS (opt) (stamp object for directory creation - otherwise o._dirs)
# OBJS (opt) (object files, no o. prefixes - otherwise ${TARGET})
# DBG_OBJS (opt) (debug build object files, no prefixes - otherwise ${OBJS})
# LIBS (opt) (extra libraries; CLib is always used)
# DBG_LIBS (opt) (extra debug libraries - otherwsie ${LIBS};
# CLib and DEBUGLIBS always used)
# APP_OBJS (opt) (object files for application version - otherwise derived
# from ${OBJS})
# APP_DBG_OBJS (opt) (object files for debug app version - otherwise derived
# from ${DBG_OBJS})
# LINK_TYPE (opt) (variant of linking command, eg C++ - defaults to C)
# INSTTYPE (opt) (use "tool" or "app" to install executable vs application - defaults to "tool")
# INSTALLAPPFILES (opt) (list of files to be installed in application directory - use InstRes specification rules)
# INSTALLAPP_DEPEND (opt) (list of dependencies to be satisfied before doing application install - ${TARGET} assumed if in INSTALLAPPFILES)
# COMPONENT (the name of the component)
# TARGET (opt) (the leafname of the application - otherwise ${COMPONENT})
# DBG_TARGET (opt) (debug application leafname - otherwise ${TARGET}-D)
# INSTAPP (opt) (the application target directory - otherwise ${INSTDIR}.!${COMPONENT})
# INSTDIR (opt) (the target directory - otherwise <Install$Dir>.${TARGET})
# DIRS (opt) (stamp object for directory creation - otherwise o._dirs)
# OBJS (opt) (object files, no o. prefixes - otherwise ${TARGET})
# APP_OBJS (opt) (release build object files, no prefixes - otherwise ${OBJS})
# DBG_OBJS (opt) (debug build object files, no prefixes - otherwise ${OBJS})
# LIBS (opt) (extra libraries; ${CLIB} is always used)
# APP_LIBS (opt) (extra release libraries - otherwise ${LIBS}; ${CLIB} is always used)
# DBG_LIBS (opt) (extra debug libraries - otherwise ${LIBS}; ${CLIB} and ${DEBUGLIBS} always used)
# LINK_TYPE (opt) (variant of linking command, eg C++ - defaults to C)
# INSTTYPE (opt) (use "tool" or "app" to install executable vs application - defaults to "tool")
# INSTAPP_FILES (opt) (list of files to be installed in application directory - use InstRes specification rules)
# INSTAPP_DEPENDS (opt) (list of dependencies to be satisfied before doing application install - ${TARGET} assumed if in INSTAPP_FILES)
# INSTAPP_VERSION (opt) (list of Messages/!Run/Desc files to insert app version from VersionNum - include in INSTAPP_FILES as well)
# CUSTOMLINK (opt) (set to "custom" to override the link rule)
# CUSTOMINSTALLAPP (opt) (set to "custom" to override the install rule for resource files)
# CUSTOMINSTALLTOOL (opt) (set to "custom" to override the install rule for target binary)
...
...
@@ -63,6 +62,7 @@ INCLUDED_CAPP = YES
# MKDIR (cdir/mkdir -p)
# ECHO
# TOUCH (create/touch)
# INSERTVERSION (awk script to substitute from VersionNum)
#
#
# It relies on the following from the StdRules makefile
...
...
@@ -84,8 +84,10 @@ INSTALLDIR = <Install$Dir>
TARGET ?= ${COMPONENT}
DBG_TARGET ?= ${TARGET}-D
INSTDIR ?= ${INSTALLDIR}.${TARGET}
INSTAPP ?= ${INSTDIR}.!${COMPONENT}
DIRS ?= o._dirs
OBJS ?= ${TARGET}
APP_OBJS ?= ${OBJS}
DBG_OBJS ?= ${OBJS}
APP_LIBS ?= ${LIBS}
DBG_LIBS ?= ${LIBS}
...
...
@@ -95,8 +97,9 @@ DBG_LIBS += ${C++LIB}
endif
APP_LIBS += ${CLIB}
DBG_LIBS += ${DEBUGLIBS} ${CLIB}
APP_OBJS ?= $(addprefix o.,${OBJS})
APP_DBG_OBJS ?= $(addprefix od.,${DBG_OBJS})
APP_OBJS_ = $(addprefix o.,${APP_OBJS})
DBG_OBJS_ = $(addprefix od.,${DBG_OBJS})
ifeq ("${INCLUDED_STDTOOLS}","")
ifeq ("${INCLUDED_HOSTTOOLS}","")
...
...
@@ -134,18 +137,23 @@ clean ::
install: install_${INSTTYPE}
install_: install_tool
${NOP}
${NOP}
INSTA
LLA
PP_DEPEND += $(filter ${TARGET},${INSTA
LLA
PPFILES})
INSTAPP_DEPEND
S
+= $(filter ${TARGET},${INSTAPP
_
FILES})
install_app${CUSTOMINSTALLAPP}: ${INSTA
LLA
PP_DEPEND}
install_app${CUSTOMINSTALLAPP}: ${INSTAPP_DEPEND
S
}
${MKDIR} ${INSTAPP}
${INSTRES} -I Resources.${USERIF}.${LOCALE},Resources.${USERIF}.UK,Resources.${LOCALE},Resources.UK,Resources ${INSTAPP} ${INSTALLAPPFILES}
ifneq (,$(filter Desc,${INSTALLAPPFILES}))
${CPREPRO} -I. ${INSTAPP}.Desc > ${INSTAPP}.DescTmp
${TIDYDESC} ${INSTAPP}.Desc ${INSTAPP}.DescTmp
${RM} ${INSTAPP}.DescTmp
endif
${INSTRES} -I Resources.${USERIF}.${LOCALE},Resources.${USERIF}.UK,Resources.${LOCALE},Resources.UK,Resources ${INSTAPP} ${INSTAPP_FILES}
ifneq (,$(filter Messages,${INSTAPP_VERSION}))
${INSERTVERSION} LocalRes:Messages > ${INSTAPP}.Messages
endif
ifneq (,$(filter Desc,${INSTAPP_VERSION}))
${INSERTVERSION} descmode=1 LocalRes:Desc > ${INSTAPP}.Desc
endif
ifneq (,$(filter !Run,${INSTAPP_VERSION}))
${INSERTVERSION} obeymode=1 LocalRes:!Run > ${INSTAPP}.!Run
${SETTYPE} ${INSTAPP}.!Run Obey
endif
@${ECHO} ${COMPONENT}: application installation complete
install_tool${CUSTOMINSTALLTOOL}: ${TARGET}
...
...
@@ -156,11 +164,11 @@ install_tool${CUSTOMINSTALLTOOL}: ${TARGET}
debug: ${DBG_TARGET}
@${ECHO} ${COMPONENT}: debug application built
${TARGET}${CUSTOMLINK}: ${APP_OBJS} ${APP_LIBS} ${DIRS}
${LD} ${LDFLAGS} -o ${TARGET} ${APP_OBJS} ${APP_LIBS}
${TARGET}${CUSTOMLINK}: ${APP_OBJS
_
} ${APP_LIBS} ${DIRS}
${LD} ${LDFLAGS} -o ${TARGET} ${APP_OBJS
_
} ${APP_LIBS}
${SQZ} ${SQZFLAGS} $@
${DBG_TARGET}${CUSTOMLINK}: ${
APP_
DBG_OBJS} ${DBG_LIBS} ${DIRS}
${LD} ${LDFLAGS} ${LDDFLAGS} -o ${DBG_TARGET} ${
APP_
DBG_OBJS} ${DBG_LIBS}
${DBG_TARGET}${CUSTOMLINK}: ${DBG_OBJS
_
} ${DBG_LIBS} ${DIRS}
${LD} ${LDFLAGS} ${LDDFLAGS} -o ${DBG_TARGET} ${DBG_OBJS
_
} ${DBG_LIBS}
# EOF
This diff is collapsed.
Click to expand it.
Makefiles/CLibrary
View file @
6de1e14c
...
...
@@ -41,10 +41,10 @@ INCLUDED_CLIBRARY = YES
# ASMHDRS (opt) (assembly header files to export, no Hdr. prefix - otherwise none)
# OBJS (object files, no o. or oz. prefixes)
# DBG_OBJS (opt) (debug build object files, no o. or oz. prefixes - otherwise ${OBJS})
# APP_OBJS (opt) (
object files for application version - otherwise derived from
${OBJS})
# APP_DBG_OBJS (opt) (
object files for debug app version - otherwise derived from
${DBG_OBJS})
# MOD_OBJS (opt) (
object files for module version - otherwise derived from
${OBJS})
# MOD_DBG_OBJS (opt) (
object files for debug module version - otherwise derived from
${DBG_OBJS})
# APP_OBJS (opt) (
release application object files, no o. or oz. prefixes - otherwise
${OBJS})
# APP_DBG_OBJS (opt) (
debug application object files, no o. or oz. prefixes - otherwise
${DBG_OBJS})
# MOD_OBJS (opt) (
release module object files, no o. or oz. prefixes - otherwise
${OBJS})
# MOD_DBG_OBJS (opt) (
debug module object files, no o. or oz. prefixes - otherwise
${DBG_OBJS})
# CUSTOMLIB (opt) (set to "custom" to override the application library rule)
# CUSTOMLIBZM (opt) (set to "custom" to override the module library rule)
# CUSTOMLIBD (opt) (set to "custom" to override the debug application library rule)
...
...
@@ -99,10 +99,14 @@ DIRS ?= o._dirs
HDRS ?= ${TARGET}
ASMHDRS ?=
DBG_OBJS ?= ${OBJS}
APP_OBJS ?= $(addprefix o.,${OBJS})
APP_DBG_OBJS ?= $(addprefix od.,${DBG_OBJS})
MOD_OBJS ?= $(addprefix oz.,${OBJS})
MOD_DBG_OBJS ?= $(addprefix odz.,${DBG_OBJS})
APP_OBJS ?= ${OBJS}
APP_DBG_OBJS ?= ${DBG_OBJS}
MOD_OBJS ?= ${OBJS}
MOD_DBG_OBJS ?= ${DBG_OBJS}
APP_OBJS_ = $(addprefix o.,${APP_OBJS})
APP_DBG_OBJS_ = $(addprefix od.,${APP_DBG_OBJS})
MOD_OBJS_ = $(addprefix oz.,${MOD_OBJS})
MOD_DBG_OBJS_ = $(addprefix odz.,${MOD_DBG_OBJS})
EXPORTING_HDRS = $(addprefix exphdr.,${HDRS})
EXPORTING_ASMHDRS = $(addprefix expasm.,${ASMHDRS})
...
...
@@ -175,16 +179,16 @@ export_libs: ${EXPORTING_LIBS} ${TARGET_LIBS} ${DIRS} create_exp_lib_dir
@IfThere ${EXPDIR}.${LIBEXT}.* then else ${RM} ${EXPDIR}.${LIBEXT}
@${ECHO} ${COMPONENT}: library export complete
${LIBEXT}.${LIBRARY}${CUSTOMLIB}: ${APP_OBJS} ${DIRS}
${AR} ${ARFLAGS} ${LIBEXT}.${LIBRARY} ${APP_OBJS}
${LIBEXT}.${LIBRARY}${CUSTOMLIB}: ${APP_OBJS
_
} ${DIRS}
${AR} ${ARFLAGS} ${LIBEXT}.${LIBRARY} ${APP_OBJS
_
}
${LIBEXT}.${LIBRARYZM}${CUSTOMLIBZM}: ${MOD_OBJS} ${DIRS}
${AR} ${ARFLAGS} ${LIBEXT}.${LIBRARYZM} ${MOD_OBJS}
${LIBEXT}.${LIBRARYZM}${CUSTOMLIBZM}: ${MOD_OBJS
_
} ${DIRS}
${AR} ${ARFLAGS} ${LIBEXT}.${LIBRARYZM} ${MOD_OBJS
_
}
${LIBEXT}.${LIBRARYD}${CUSTOMLIBD}: ${APP_DBG_OBJS} ${DIRS}
${AR} ${ARFLAGS} ${LIBEXT}.${LIBRARYD} ${APP_DBG_OBJS}
${LIBEXT}.${LIBRARYD}${CUSTOMLIBD}: ${APP_DBG_OBJS
_
} ${DIRS}
${AR} ${ARFLAGS} ${LIBEXT}.${LIBRARYD} ${APP_DBG_OBJS
_
}
${LIBEXT}.${LIBRARYDZM}${CUSTOMLIBDZM}: ${MOD_DBG_OBJS} ${DIRS}
${AR} ${ARFLAGS} ${LIBEXT}.${LIBRARYDZM} ${MOD_DBG_OBJS}
${LIBEXT}.${LIBRARYDZM}${CUSTOMLIBDZM}: ${MOD_DBG_OBJS
_
} ${DIRS}
${AR} ${ARFLAGS} ${LIBEXT}.${LIBRARYDZM} ${MOD_DBG_OBJS
_
}
# EOF
This diff is collapsed.
Click to expand it.
Makefiles/CModule
View file @
6de1e14c
...
...
@@ -171,7 +171,6 @@ ROM_LIBS ?= ${LIBS}
SA_LIBS ?= ${LIBS}
DBG_LIBS += ${DEBUGLIBS}
OBJS_ = $(addprefix o.,${OBJS})
ROM_OBJS_ = $(addprefix o.,${ROM_OBJS})
SA_OBJS_ = $(addprefix o.,${SA_OBJS})
DBG_OBJS_ = $(addprefix od.,${DBG_OBJS})
...
...
This diff is collapsed.
Click to expand it.
Makefiles/CUtil
View file @
6de1e14c
...
...
@@ -16,8 +16,8 @@ UTIL_LIBS := $(filter-out ${CLIB},${APP_LIBS}) ${ANSILIB}
CFLAGS += ${C_NO_ZI} ${C_NO_STKCHK}
LDFLAGS += -bin
${TARGET}: ${APP_OBJS} ${UTIL_LIBS} ${DIRS}
${LD} ${LDFLAGS} -o ${TARGET} ${APP_OBJS} ${UTIL_LIBS}
${TARGET}: ${APP_OBJS
_
} ${UTIL_LIBS} ${DIRS}
${LD} ${LDFLAGS} -o ${TARGET} ${APP_OBJS
_
} ${UTIL_LIBS}
${SETTYPE} ${TARGET} Utility
# EOF
This diff is collapsed.
Click to expand it.
Prev
1
2
Next
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment