# 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 # 04-Feb-98 SNB Updated to allow RAM builds # # # Component specific options: # COMPONENT = Menu ROM_MODULE = aof.${COMPONENT} RAM_MODULE = rm.${COMPONENT} # # Export Paths for Messages module # RESDIR = .Resources2.${COMPONENT} # # Generic options: # MKDIR = cdir CC = cc CMHG = cmhg CP = copy LD = link TLD = tlink RM = remove WIPE = -wipe CPFLAGS = ~cfr~v WFLAGS = ~c~v CFLAGS = -c -depend !Depend ${INCLUDES} -zM -ffah -zps1 ${DFLAGS} DFLAGS = -D${SYSTEM} ROMFLAGS = -DROM INCLUDES = -I.tboxlibint.,.tboxlibs:,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 = .tboxlibint.o.tboxlibm OBJS =\ o.Modhdr_NoD\ o.Menu\ o.auxiliary\ o.create\ o.delete\ o.events\ o.getstate\ o.hide\ o.miscop\ o.show\ o.task RAM_OBJS =\ o.Modhdr_NoD\ o.MenuRAM\ o.auxiliary\ o.create\ o.delete\ o.events\ o.getstate\ o.hide\ o.miscop\ o.show\ o.task RESF=o.msgs # # Rule patterns # .c.o:; ${CC} ${CFLAGS} ${ROMFLAGS} -o $@ $< .cmhg.o:; ${CMHG} -p -o $@ $< # # Main rules: # # all: ${RAM_MODULE} @echo ${COMPONENT}: Module built (RAM) rom: ${ROM_MODULE} @echo ${COMPONENT}: Module built (ROM) install_rom: ${ROM_MODULE} ${CP} ${ROM_MODULE} ${INSTDIR}.${COMPONENT} ${CPFLAGS} @echo ${COMPONENT}: Module installed (ROM) resources: LocalRes:Messages ${MKDIR} ${RESDIR} TokenCheck LocalRes:Messages ${CP} LocalRes:Messages ${RESDIR}.Messages ${CPFLAGS} @echo ${COMPONENT}: resource files copied to Messages module clean: ${WIPE} o.* ${WFLAGS} ${WIPE} aof ${WFLAGS} ${WIPE} rm ${WFLAGS} ${WIPE} linked ${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 ${LD} -o linked.${COMPONENT} -rmf -base ${ADDRESS} ${ROM_MODULE} ${ABSSYM} ${CP} linked.${COMPONENT} ${LINKDIR}.${COMPONENT} ${CPFLAGS} @echo ${COMPONENT}: rom_link complete ${RESF}: LocalRes:Messages resgen messages_file ${RESF} LocalRes:Messages Resources.${COMPONENT}.Messages ${RAM_MODULE}: ${RAM_OBJS} ${TBOXLIB} ${RESF} ${CLIB} ${mkdir} rm ${LD} -o $@ -module ${RAM_OBJS} ${TBOXLIB} ${RESF} ${CLIB} Access $@ RW/R o.MenuRAM: Menu.c $(CC) ${CFLAGS} -o $@ Menu.c #--------------------------------------------------------------------------- # Dynamic dependencies: