diff --git a/!MkClean,fd7 b/!MkClean,fd7 new file mode 100644 index 0000000000000000000000000000000000000000..a81450e4cad25125bb74ab118d471c4b716f9531 --- /dev/null +++ b/!MkClean,fd7 @@ -0,0 +1,16 @@ +| Copyright 1996 Acorn Computers 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> +amu clean diff --git a/!MkRam,fd7 b/!MkRam,fd7 new file mode 100644 index 0000000000000000000000000000000000000000..ec421471478074b69d452478c9e8ed883f2209ed --- /dev/null +++ b/!MkRam,fd7 @@ -0,0 +1,16 @@ +| Copyright 1996 Acorn Computers 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> +amu -f makerel diff --git a/!MkRom,fd7 b/!MkRom,fd7 new file mode 100644 index 0000000000000000000000000000000000000000..1e2b475dce8bae40c47126e8d3d1c50043f27e1d --- /dev/null +++ b/!MkRom,fd7 @@ -0,0 +1,16 @@ +| Copyright 1996 Acorn Computers 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> +amu rom diff --git a/MakeROM b/MakeROM new file mode 100644 index 0000000000000000000000000000000000000000..7b494210b44b4faff53ad466fdac4511ae1f2fb1 --- /dev/null +++ b/MakeROM @@ -0,0 +1,108 @@ +# Makefile for Menu +# +# *********************************** +# *** C h a n g e L i s t *** +# *********************************** +# Date Name Description +# ---- ---- ----------- +# 06-Jan-94 AMcC Created +# + +# +# Component specific options: +# +COMPONENT = Menu +ROM_MODULE = aof.${COMPONENT} + +# +# Export Paths for Messages module +# +RESDIR = <resource$dir>.Resources2.${COMPONENT} + +# +# Generic options: +# +MKDIR = cdir +CC = cc +CMHG = cmhg +CP = copy +LD = link +RM = remove +WIPE = -wipe + +CPFLAGS = ~cfr~v +WFLAGS = ~c~v + +CFLAGS = -c -depend !Depend ${INCLUDES} -zM -ffah -zps1 ${DFLAGS} +DFLAGS = -DROM +INCLUDES = -Itbox:,C: + +# +# Libraries +# +ANSILIB = CLib:o.ansilib +CLIB = CLIB:o.stubs +RLIB = RISCOSLIB:o.risc_oslib +ROMCSTUBS = RISCOSLIB:o.romcstubs +ABSSYM = RISC_OSLib:o.abssym +TBOXLIB = tbox:tboxlib + +OBJS =\ + o.Modhdr_NoD\ + o.Menu\ + o.auxiliary\ + o.copy\ + o.create\ + o.delete\ + o.events\ + o.getstate\ + o.hide\ + o.miscop\ + o.show\ + o.task + +# +# Rule patterns +# +.c.o:; ${CC} ${CFLAGS} -o $@ $< +.cmhg.o:; ${CMHG} -O $@ $< + +# +# Main rules: +# +# +rom: ${ROM_MODULE} + @echo ${COMPONENT}: Module built (ROM) + +install_rom: ${ROM_MODULE} + ${CP} ${ROM_MODULE} ${INSTDIR}.${COMPONENT} ${CPFLAGS} + @echo ${COMPONENT}: Module installed (ROM) + +resources: Messages + ${MKDIR} ${RESDIR} + ${CP} Messages ${RESDIR}.Messages ${CPFLAGS} + @echo ${COMPONENT}: resource files copied to Messages module + +clean: + ${WIPE} o.* ${WFLAGS} + ${WIPE} aof ${WFLAGS} + ${WIPE} linked ${WFLAGS} + ${WIPE} map ${WFLAGS} + @echo ${COMPONENT}: cleaned + +${ROM_MODULE}: ${OBJS} ${TBOXLIB} ${ROMCSTUBS} + ${MKDIR} aof + ${LD} -o $@ -aof ${OBJS} ${TBOXLIB} ${ROMCSTUBS} + +# final link for ROM Image (using given base address) +rom_link: + ${MKDIR} linked + ${MKDIR} map + ${LD} -o linked.${COMPONENT} -bin -base ${ADDRESS} ${ROM_MODULE} ${ABSSYM} \ + -map > map.${COMPONENT} + truncate map.${COMPONENT} linked.${COMPONENT} + ${CP} linked.${COMPONENT} ${LINKDIR}.${COMPONENT} ${CPFLAGS} + @echo ${COMPONENT}: rom_link complete + +#--------------------------------------------------------------------------- +# Dynamic dependencies: diff --git a/MakeRel b/MakeRel new file mode 100644 index 0000000000000000000000000000000000000000..b7c3ba62d14187ffcf5bf00e2a3da792c159eec2 --- /dev/null +++ b/MakeRel @@ -0,0 +1,60 @@ +# Project: Menu + + +# Toolflags: +CCflags = -c -depend !Depend -I^.common,C: -throwback -zM -ffah -zps1 +C++flags = -c -depend !Depend -throwback -IC: +Pascalflags = -c -depend !Depend -throwback -IP: +Linkflags = -m -o $@ +ObjAsmflags = -depend !Depend -ThrowBack -Stamp -quit -CloseExec +CMHGflags = +LibFileflags = -c -o $@ +Squeezeflags = -o $@ +AAsmflags = -depend !Depend -quit -CloseExec -To $@ -From + + +# Final targets: +@.Menu: @.o.auxiliary @.o.copy @.o.create @.o.delete @.o.events \ + @.o.getstate @.o.hide @.o.Menu @.o.miscop @.o.show @.o.task @.o.Modhdr_NoD @.o.messages \ + @.^.common.tboxlib + tlink $(linkflags) @.o.auxiliary @.o.copy @.o.create \ + @.o.delete @.o.events @.o.getstate @.o.hide @.o.Menu @.o.miscop @.o.show @.o.task \ + @.o.Modhdr_NoD @.o.messages @.^.common.tboxlib + + +# User-editable dependencies: +@.MenuM: @.messages + modgen @.MenuM MenuM "Menu Messages" 1.00 @.messages Resources.Menu.Messages + +@.o.messages: @.Messages + resgen messages_file @.o.messages @.Messages Resources.Menu.Messages + + +# Static dependencies: +@.o.auxiliary: @.c.auxiliary + cc $(ccflags) -o @.o.auxiliary @.c.auxiliary +@.o.copy: @.c.copy + cc $(ccflags) -o @.o.copy @.c.copy +@.o.create: @.c.create + cc $(ccflags) -o @.o.create @.c.create +@.o.delete: @.c.delete + cc $(ccflags) -o @.o.delete @.c.delete +@.o.events: @.c.events + cc $(ccflags) -o @.o.events @.c.events +@.o.getstate: @.c.getstate + cc $(ccflags) -o @.o.getstate @.c.getstate +@.o.hide: @.c.hide + cc $(ccflags) -o @.o.hide @.c.hide +@.o.Menu: @.c.Menu + cc $(ccflags) -o @.o.Menu @.c.Menu +@.o.miscop: @.c.miscop + cc $(ccflags) -o @.o.miscop @.c.miscop +@.o.show: @.c.show + cc $(ccflags) -o @.o.show @.c.show +@.o.task: @.c.task + cc $(ccflags) -o @.o.task @.c.task +@.o.Modhdr_NoD: @.cmhg.Modhdr_NoD + cmhg @.cmhg.Modhdr_NoD -o @.o.Modhdr_NoD + + +# Dynamic dependencies: diff --git a/Makefile b/Makefile new file mode 100644 index 0000000000000000000000000000000000000000..66f21cd5691ecd932b1297ac3713a4e3c5a8d20c --- /dev/null +++ b/Makefile @@ -0,0 +1,122 @@ +# Copyright 1996 Acorn Computers 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 for Menu +# +# *********************************** +# *** C h a n g e L i s t *** +# *********************************** +# Date Name Description +# ---- ---- ----------- +# 06-Jan-94 AMcC Created +# + +# +# Component specific options: +# +COMPONENT = Menu +ROM_MODULE = aof.${COMPONENT} + +# +# Export Paths for Messages module +# +RESDIR = <resource$dir>.Resources2.${COMPONENT} + +# +# Generic options: +# +MKDIR = cdir +CC = cc +CMHG = cmhg +CP = copy +LD = link +RM = remove +WIPE = -wipe + +CPFLAGS = ~cfr~v +WFLAGS = ~c~v + +CFLAGS = -c -depend !Depend ${INCLUDES} -zM -ffah -zps1 ${DFLAGS} +DFLAGS = -DROM +INCLUDES = -Itbox:,C: + +# +# Libraries +# +ANSILIB = CLib:o.ansilib +CLIB = CLIB:o.stubs +RLIB = RISCOSLIB:o.risc_oslib +ROMCSTUBS = RISCOSLIB:o.romcstubs +ABSSYM = RISC_OSLib:o.abssym +TBOXLIB = tbox:tboxlib + +OBJS =\ + o.Modhdr_NoD\ + o.Menu\ + o.auxiliary\ + o.copy\ + o.create\ + o.delete\ + o.events\ + o.getstate\ + o.hide\ + o.miscop\ + o.show\ + o.task + +# +# Rule patterns +# +.c.o:; ${CC} ${CFLAGS} -o $@ $< +.cmhg.o:; ${CMHG} -O $@ $< + +# +# Main rules: +# +# +rom: ${ROM_MODULE} + @echo ${COMPONENT}: Module built (ROM) + +install_rom: ${ROM_MODULE} + ${CP} ${ROM_MODULE} ${INSTDIR}.${COMPONENT} ${CPFLAGS} + @echo ${COMPONENT}: Module installed (ROM) + +resources: Messages + ${MKDIR} ${RESDIR} + ${CP} Messages ${RESDIR}.Messages ${CPFLAGS} + @echo ${COMPONENT}: resource files copied to Messages module + +clean: + ${WIPE} o.* ${WFLAGS} + ${WIPE} aof ${WFLAGS} + ${WIPE} linked ${WFLAGS} + ${WIPE} map ${WFLAGS} + @echo ${COMPONENT}: cleaned + +${ROM_MODULE}: ${OBJS} ${TBOXLIB} ${ROMCSTUBS} + ${MKDIR} aof + ${LD} -o $@ -aof ${OBJS} ${TBOXLIB} ${ROMCSTUBS} + +# final link for ROM Image (using given base address) +rom_link: + ${MKDIR} linked + ${MKDIR} map + ${LD} -o linked.${COMPONENT} -bin -base ${ADDRESS} ${ROM_MODULE} ${ABSSYM} \ + -map > map.${COMPONENT} + truncate map.${COMPONENT} linked.${COMPONENT} + ${CP} linked.${COMPONENT} ${LINKDIR}.${COMPONENT} ${CPFLAGS} + @echo ${COMPONENT}: rom_link complete + +#--------------------------------------------------------------------------- +# Dynamic dependencies: