Commit b2d88dec authored by ROOL's avatar ROOL 🤖
Browse files

Makefile recreated from fragments

Detail:
  Also fixes an issue with the version number being stale since 1998.
  Enable CI.
parent d4f1f724
This commit is part of merge request !1. Comments created here will be created in the context of that merge request.
| Copyright 2002 Tematic 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.
|
Dir <Obey$Dir>
Remove Resources.BootApps.!RunImage
Remove Resources.BootBoot.!RunImage
Remove Resources.BootRun.!RunImage
amu_machine
......@@ -13,9 +13,9 @@
| limitations under the License.
|
Dir <Obey$Dir>
Remove Resources.BootApps.!RunImage
Remove Resources.BootBoot.!RunImage
Remove Resources.BootRun.!RunImage
amu_machine install LDFLAGS=-Debug COMPONENT=BootApps INSTDIR=<Install$Dir>.HardDisc4.!Boot.RO500Hook.Res.Configure.!BootSetup
amu_machine install LDFLAGS=-Debug COMPONENT=BootBoot INSTDIR=<Install$Dir>.HardDisc4.!Boot.RO500Hook.Res.Configure.!BootSetup
amu_machine install LDFLAGS=-Debug COMPONENT=BootRun INSTDIR=<Install$Dir>.HardDisc4.!Boot.RO500Hook.Res.Configure.!BootSetup
amu_machine clean
amu_machine debug COMPONENT=BootApps
amu_machine clean
amu_machine debug COMPONENT=BootBoot
amu_machine clean
amu_machine debug COMPONENT=BootRun
......@@ -13,6 +13,9 @@
| limitations under the License.
|
Dir <Obey$Dir>
amu_machine install COMPONENT=BootApps INSTDIR=<Install$Dir>.HardDisc4.!Boot.RO500Hook.Res.Configure.!BootSetup
amu_machine install COMPONENT=BootBoot INSTDIR=<Install$Dir>.HardDisc4.!Boot.RO500Hook.Res.Configure.!BootSetup
amu_machine install COMPONENT=BootRun INSTDIR=<Install$Dir>.HardDisc4.!Boot.RO500Hook.Res.Configure.!BootSetup
amu_machine clean
amu_machine install COMPONENT=BootApps INSTDIR=<Install$Dir>.HardDisc4.!Boot.RO500Hook.Res.Configure.!BootSetup THROWBACK=-throwback
amu_machine clean
amu_machine install COMPONENT=BootBoot INSTDIR=<Install$Dir>.HardDisc4.!Boot.RO500Hook.Res.Configure.!BootSetup THROWBACK=-throwback
amu_machine clean
amu_machine install COMPONENT=BootRun INSTDIR=<Install$Dir>.HardDisc4.!Boot.RO500Hook.Res.Configure.!BootSetup THROWBACK=-throwback
/!RunImage,ff8
/!RunImage-D,fd3
/Resources/UK/
/aof/
/linked/
/o/
/objs/
/od/
/oz/
include:
- project: 'Support/CI'
file: '/Config2PluginBootxxxx.yml'
......@@ -14,126 +14,46 @@
#
# Makefile for BootApps / BootBoot / BootRun
#
# ***********************************
# *** C h a n g e L i s t ***
# ***********************************
# Date Name Description
# ---- ---- -----------
# 29-May-98 BJGA Derived from BootMerge/FontMerge/SysMerge makefile
#
#
# Program specific options:
#
APP = !${COMPONENT}
RDIR = Resources.${COMPONENT}
LDIR = ${RDIR}.${LOCALE}
INSTAPP = ${INSTDIR}.${APP}
#
# Generic options:
#
MKDIR = do mkdir -p
CC = cc
ATTR = -attr
CP = copy
LD = link
RM = remove
SQUEEZE = squeeze
WIPE = x wipe
XWIPE = x wipe
CFLAGS = -c -depend !Depend -ffa -gflv ${INCLUDES} -throwback
PFLAGS = -c -depend !Depend -E -C ${INCLUDES} -throwback
CPFLAGS = ~cfr~v
WFLAGS = ~c~v
include AppLibs
#
# Include files
#
INCLUDES = -ITbox:,C:,<Lib$Dir>.ConfigLib.
FILES=\
${LDIR}.!Help\
${RDIR}.!Boot\
${LDIR}.!Run\
${RDIR}.!RunImage\
${RDIR}.!Sprites\
${RDIR}.!Sprites11\
${RDIR}.!Sprites22\
${RDIR}.CoSprite\
${RDIR}.CoSprite11\
${RDIR}.CoSprite22\
${LDIR}.Messages\
${LDIR}.Res\
ROBJS = oR.List oR.Main oR.ToolboxE oR.WimpE oR.WimpM
BOBJS = oB.List oB.Main oB.ToolboxE oB.WimpE oB.WimpM
AOBJS = oA.List oA.Main oA.ToolboxE oA.WimpE oA.WimpM
#
# Rule patterns
#
.SUFFIXES: .c .oA .oB .oR
.c.oA:; ${CC} ${CFLAGS} -DAPP=1 -o $@ $<
.c.oB:; ${CC} ${CFLAGS} -DAPP=2 -o $@ $<
.c.oR:; ${CC} ${CFLAGS} -DAPP=3 -o $@ $<
#
# Main rules:
#
all: Resources.BootRun.!RunImage \
Resources.BootBoot.!RunImage \
Resources.BootApps.!RunImage
@echo All built (Disc)
install: Resources.BootRun.!RunImage \
Resources.BootBoot.!RunImage \
Resources.BootApps.!RunImage
${MKDIR} ${INSTAPP}
|
${CP} ${RDIR}.!Boot ${INSTAPP}.!Boot ${CPFLAGS}
${CP} ${LDIR}.!Help ${INSTAPP}.!Help ${CPFLAGS}
${CP} ${LDIR}.!Run ${INSTAPP}.!Run ${CPFLAGS}
${CP} ${RDIR}.!RunImage ${INSTAPP}.!RunImage ${CPFLAGS}
${CP} ${RDIR}.!Sprites ${INSTAPP}.!Sprites ${CPFLAGS}
${CP} ${RDIR}.!Sprites11 ${INSTAPP}.!Sprites11 ${CPFLAGS}
${CP} ${RDIR}.!Sprites22 ${INSTAPP}.!Sprites22 ${CPFLAGS}
${CP} ${RDIR}.CoSprite ${INSTAPP}.CoSprite ${CPFLAGS}
${CP} ${RDIR}.CoSprite11 ${INSTAPP}.CoSprite11 ${CPFLAGS}
${CP} ${RDIR}.CoSprite22 ${INSTAPP}.CoSprite22 ${CPFLAGS}
${CP} ${LDIR}.Messages ${INSTAPP}.Messages ${CPFLAGS}
${CP} ${LDIR}.Res ${INSTAPP}.Res ${CPFLAGS}
|
${ATTR} -directories +wr -ww ${INSTAPP}
${ATTR} -files +or +ow +wr -ww ${INSTAPP}
|
@echo ${COMPONENT}: All installed (Disc)
clean:
${XWIPE} oA.* ${WFLAGS}
${XWIPE} oB.* ${WFLAGS}
${XWIPE} oR.* ${WFLAGS}
${RM} Resources.BootApps.!RunImage
${RM} Resources.BootBoot.!RunImage
${RM} Resources.BootRun.!RunImage
@echo All cleaned
#
# Static dependencies:
#
Resources.BootApps.!RunImage: ${AOBJS} ${CONLIB} ${EVENTLIB} ${TBOXLIB} ${WIMPLIB} ${CLIB}
${LD} ${LDFLAGS} -o $@ ${AOBJS} ${CONLIB} ${EVENTLIB} ${TBOXLIB} ${WIMPLIB} ${CLIB}
${SQUEEZE} $@
Resources.BootBoot.!RunImage: ${BOBJS} ${CONLIB} ${EVENTLIB} ${TBOXLIB} ${WIMPLIB} ${CLIB}
${LD} ${LDFLAGS} -o $@ ${BOBJS} ${CONLIB} ${EVENTLIB} ${TBOXLIB} ${WIMPLIB} ${CLIB}
${SQUEEZE} $@
Resources.BootRun.!RunImage: ${ROBJS} ${CONLIB} ${EVENTLIB} ${TBOXLIB} ${WIMPLIB} ${CLIB}
${LD} ${LDFLAGS} -o $@ ${ROBJS} ${CONLIB} ${EVENTLIB} ${TBOXLIB} ${WIMPLIB} ${CLIB}
${SQUEEZE} $@
COMPONENT ?= BootRun
override TARGET = !RunImage
INSTTYPE = app
OBJS = List Main ToolboxE WimpE WimpM
LIBS = ${CONLIB} ${EVENTLIB} ${TBOXLIB} ${WIMPLIB}
CINCLUDES = ${CONINC} ${TBOXINC}
INSTAPP_DEPENDS = localecopy
INSTAPP_FILES = ${COMPONENT}.!Boot !Help !Run !RunImage Messages Res \
${COMPONENT}.!Sprites ${COMPONENT}.!Sprites22 ${COMPONENT}.!Sprites11 \
${COMPONENT}.CoSprite ${COMPONENT}.CoSprite22 ${COMPONENT}.CoSprite11
INSTAPP_VERSION = Messages
ifeq (${COMPONENT},Config2PluginBootxxxx)
# The Continuous Integration system calls the Makefile with the name of the
# top level component, redefine it to one of the three valid xxxxMerge values.
COMPONENT := BootRun
endif
ifeq (${COMPONENT},BootApps)
CDEFINES = -DAPP=1
endif
ifeq (${COMPONENT},BootBoot)
CDEFINES = -DAPP=2
endif
ifeq (${COMPONENT},BootRun)
CDEFINES = -DAPP=3
endif
include CApp
C_WARNINGS = -fa
# Copy the locale specific files up a level to Resources so that the search
# path and uses of LocalRes: in the shared makefiles can find them.
# The non-locale specific files are explicitly referenced by component name
# in the list of files above.
localecopy:
${CP} Resources${SEP}${COMPONENT}${SEP}${LOCALE} Resources${SEP}${LOCALE} ${CPFLAGS}
clean::
${XWIPE} Resources${SEP}${LOCALE} ${WFLAGS}
# Dynamic dependencies:
*
!.gitignore
*
!.gitignore
*
!.gitignore
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