# Copyright 1998 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 AcornHTTP # # *********************************** # *** C h a n g e L i s t *** # *********************************** # Date Name Description # ---- ---- ----------- # 10-Feb-98 SNB Created # # # Component specific options: # COMPONENT = HTTP ROM_MODULE = aof.${COMPONENT} RAM_MODULE = rm.${COMPONENT} DBG_MODULE = rm.${COMPONENT}-tr RESFSDIR = Resources.URL.${COMPONENT} # # Export Paths for Messages module # RESDIR = .Resources2.URL # # 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 -Wp -ffah -zps1 ${DFLAGS} DFLAGS = -D${SYSTEM} -DCOMPAT_INET4 -DCOOKIE -UTML ROMFLAGS = -DROM INCLUDES = -ITCPIPLibs:,C: DEBFLAGS = -DTRACE -DUSE_SYSLOG # # Libraries # ANSILIB = CLib:o.ansilib CLIB = CLIB:o.stubs DEBLIBS = .c-veneer.o.syslog RLIB = RISCOSLIB:o.risc_oslib ROMCSTUBS = RISCOSLIB:o.romcstubs ABSSYM = RISC_OSLib:o.abssym TCPIPLIBS = TCPIPLibs:o.inetlibzm TCPIPLIBS:o.socklibzm OBJS =\ o.config\ o.connect\ o.connpool\ o.cookie\ o.dates\ o.dns\ o.generic\ o.header\ o.hosttrack\ o.module\ o.protocol\ o.readdata\ o.security\ o.ses_ctrl\ o.start\ o.status\ o.stop\ o.URLclient\ o.utils\ o.writedata\ o.HTTPHdr RAM_OBJS =\ o.config\ o.connect\ o.connpool\ o.cookie\ o.dates\ o.dns\ o.generic\ o.header\ o.hosttrack\ o.moduleRAM\ o.protocol\ o.readdata\ o.security\ o.ses_ctrl\ o.start\ o.status\ o.stop\ o.URLclient\ o.utils\ o.writedata\ o.HTTPHdr DBG_OBJS =\ od.config\ od.connect\ od.connpool\ od.cookie\ od.dates\ od.dns\ od.generic\ od.header\ od.hosttrack\ od.moduleRAM\ od.protocol\ od.readdata\ od.security\ od.ses_ctrl\ od.start\ od.status\ od.stop\ od.URLclient\ od.utils\ od.writedata\ o.HTTPHdr MSGSF=o.msgs # # Rule patterns # .SUFFIXES: .o .od .c .c.o:; ${CC} ${CFLAGS} ${ROMFLAGS} -o $@ $< .c.od:; ${CC} ${CFLAGS} ${ROMFLAGS} ${DEBFLAGS} -o $@ $< .cmhg.o:; ${CMHG} -o $@ $< -d $*.h HTTPHdr.h: HTTPHdr.o @| # # Main rules: # # all: ${RAM_MODULE} @echo ${COMPONENT}: Module built (RAM) ramtrace: ${DBG_MODULE} @echo ${COMPONENT}: Module built (TRACE) rom: ${ROM_MODULE} @echo ${COMPONENT}: Module built (ROM) install_rom: ${ROM_MODULE} ${CP} ${ROM_MODULE} ${INSTDIR}.${COMPONENT} ${CPFLAGS} @echo ${COMPONENT}: Module installed (ROM) resources: Resources.${LOCALE}.Messages ${MKDIR} ${RESDIR} ${MKDIR} ${RESDIR}.${COMPONENT} ${CP} Resources.${LOCALE}.* ${RESDIR}.${COMPONENT}.* ${CPFLAGS} @echo ${COMPONENT}: resource files copied to Messages module clean: ${WIPE} o.* ${WFLAGS} ${WIPE} aof ${WFLAGS} ${WIPE} rm ${WFLAGS} ${WIPE} h.${COMPONENT}Hdr ${WFLAGS} ${WIPE} linked ${WFLAGS} ${WIPE} map ${WFLAGS} @echo ${COMPONENT}: cleaned ${ROM_MODULE}: ${OBJS} ${ROMCSTUBS} ${MKDIR} aof ${LD} -o $@ -aof ${OBJS} ${TCPIPLIBS} ${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 ${MSGSF}: @.Resources.${LOCALE}.Messages resgen messages_file ${MSGSF} Resources.${LOCALE}.Messages ${RESFSDIR}.Messages ${RAM_MODULE}: ${RAM_OBJS} ${MSGSF} ${TCPIPLIBS} ${CLIB} ${mkdir} rm ${LD} -o $@ -module ${RAM_OBJS} ${MSGSF} ${TCPIPLIBS} ${CLIB} Access $@ RW/R ${DBG_MODULE}: ${DBG_OBJS} ${MSGSF} ${TCPIPLIBS} ${CLIB} ${DEBLIBS} ${mkdir} rm ${LD} -o $@ -module ${DBG_OBJS} ${MSGSF} ${TCPIPLIBS} ${CLIB} ${DEBLIBS} Access $@ RW/R o.moduleRAM: module.c $(CC) ${CFLAGS} -o $@ module.c od.moduleRAM: module.c $(CC) ${CFLAGS} ${DEBFLAGS} -o $@ module.c #--------------------------------------------------------------------------- # Dynamic dependencies: