Commits (1)
  • Ben Avison's avatar
    Cross-compilable · 0f9aa3bb
    Ben Avison authored
    Detail:
    * Rewrite Makefile to use shared makefiles
    * Fix #includes for case-sensitive filesystems
    
    
    Version 0.10. Not tagged
    0f9aa3bb
......@@ -22,105 +22,25 @@
# 15-Jul-94 AMcC Created.
# 11-Oct-94 WT Changed constituent files.
#
# Paths
#
EXP_HDR = <export$dir>
#
# Include files
#
CFLAGS = -zm -zps1
#
# Generic options:
#
include Makefiles:StdTools
#
# Libraries
#
include Makefiles:ModuleLibs
#
# Program specific options:
#
COMPONENT = PCCardFS
RELOC_MOD = rm.PCCardFS
TARGET = aof.PCCardFS
EXPORTS = ${EXP_HDR}.PCCardFS
RDIR = Resources
LDIR = ${RDIR}.${LOCALE}
#
# Export Paths for Messages module
#
RESDIR = <resource$dir>.Resources2.${COMPONENT}
OBJS =\
Debug.o\
DefaultCIS.o\
DiscOp.o\
Error.o\
FS_Veneer.o\
Header.o\
Init.o\
Misc.o\
MiscOp.o\
Resources.o\
Services.o\
StarCmd.o\
Swi.o\
Variables.o
#
# Rule patterns
#
include Makefiles:ModStdRule
#
# Build rules:
#
all: ${RELOC_MOD}
@echo ${COMPONENT}: all built
rom: ${TARGET}
@echo ${COMPONENT}: all built (rom version)
export: ${EXPORTS}
@echo ${COMPONENT}: export complete
install_rom: ${TARGET}
${CP} ${TARGET} ${INSTDIR}.${COMPONENT} ${CPFLAGS}
@echo ${COMPONENT}: rom module installed
clean:
${WIPE} o.* ${WFLAGS}
${RM} ${RELOC_MOD}
${RM} ${TARGET}
@echo ${COMPONENT}: cleaned
resources:
${MKDIR} ${RESDIR}
${CP} LocalRes:Messages ${RESDIR}.Messages ${CPFLAGS}
@echo ${COMPONENT}: resource files copied
# ROM target (re-linked at ROM Image build time)
#
${TARGET}: ${OBJS} ${ROMCSTUBS}
${LD} -o $@ -aof ${OBJS} ${ROMCSTUBS}
rom_link:
${MKDIR} linked
${LD} -o linked.${COMPONENT} -rmf -base ${ADDRESS} ${TARGET} ${ABSSYM}
${CP} linked.${COMPONENT} ${LINKDIR}.${COMPONENT} ${CPFLAGS}
@echo ${COMPONENT}: rom_link complete
${RELOC_MOD}: ${OBJS} ${CLIB}
${LD} -o $@ -Module ${OBJS} ${CLIB}
${EXP_HDR}.PCCardFS: hdr.PCCardFS
${CP} hdr.PCCardFS $@ ${CPFLAGS}
COMPONENT = PCCardFS
HDRS =
ASMHDRS = PCCardFS
CMHGFILE = Header
OBJS = \
Debug \
DefaultCIS \
DiscOp \
Error \
FS_Veneer \
Init \
Misc \
MiscOp \
Resources \
Services \
StarCmd \
Swi \
Variables \
include CModule
# Dynamic dependencies:
......@@ -5,18 +5,17 @@
*/
#define Module_MajorVersion_CMHG 0.10
#define Module_MinorVersion_CMHG
#define Module_Date_CMHG 17 Jan 2001
#define Module_Date_CMHG 18 Jun 2019
#define Module_MajorVersion "0.10"
#define Module_Version 10
#define Module_MinorVersion ""
#define Module_Date "17 Jan 2001"
#define Module_Date "18 Jun 2019"
#define Module_ApplicationDate2 "17-Jan-01"
#define Module_ApplicationDate4 "17-Jan-2001"
#define Module_ApplicationDate "18-Jun-19"
#define Module_ComponentName "PCCardFS"
#define Module_ComponentPath "RiscOS/Sources/FileSys/PCCardFS/PCCardFS"
#define Module_FullVersion "0.10"
#define Module_HelpVersion "0.10 (17 Jan 2001)"
#define Module_HelpVersion "0.10 (18 Jun 2019)"
#define Module_LibraryVersionInfo "0:10"
......@@ -42,8 +42,8 @@
#include "Defs.h"
#include "Structs.h"
#include "Resources.h"
#include "error.h"
#include "variables.h"
#include "Error.h"
#include "Variables.h"
#include "Debug.h"
......