Source
...
Target
Commits (1)
  • Robert Sprowson's avatar
    Makefile recreated from fragments · 014b93c1
    Robert Sprowson authored
    Use {TRUE} and {FALSE}, Push/Pull, Unix style file names, and $MergedMsgs for the source of the resources when built standalone.
    
    Version 3.40. Tagged as 'PDriver-3_40'
    014b93c1
| 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_machine export
......@@ -13,4 +13,4 @@
| limitations under the License.
|
Dir <Obey$Dir>
amu_machine install INSTDIR=<Install$Dir>.Disc.Printing.!Printers.Modules
amu_machine install INSTDIR=<Install$Dir>.HardDisc4.Printing.!Printers.Modules
| Copyright 1996 Acorn Computers Ltd
| Copyright 2016 Castle Technology Ltd
|
| Licensed under the Apache License, Version 2.0 (the "License");
| you may not use this file except in compliance with the License.
......@@ -13,4 +13,4 @@
| limitations under the License.
|
Dir <Obey$Dir>
amu_machine all
amu_machine standalone
......@@ -14,94 +14,12 @@
#
# Makefile for PDriver (Printer driver)
#
# ***********************************
# *** C h a n g e L i s t ***
# ***********************************
# Date Name Description
# ---- ---- -----------
# 27-May-94 AMcC Created.
# 12-May-04 JWB eliminate aasm
#
#
# Paths
#
EXP_HDR = <export$dir>
#
# Program specific options:
#
COMPONENT = PDriver
EXPORTS = ${EXP_HDR}.PDriver
# MODULE version has extra (standalone) code to install its Messages in Resources:
MODULE = rm.${COMPONENT}
ROM_MODULE = rom.${COMPONENT}
#
# Generic options:
#
MKDIR = do mkdir -p
AS = objasm
LD = link
CP = copy
RM = remove
WIPE = x wipe
CCFLAGS = -c -depend !Depend -IC:
ASFLAGS = -depend !Depend -Stamp -quit -module
CPFLAGS = ~cfr~v
WFLAGS = ~cfr~v
#
# Generic rules:
#
all: ${MODULE}
@echo ${COMPONENT}: all built (disc)
rom: ${ROM_MODULE}
@echo ${COMPONENT}: all built (rom)
export: ${EXPORTS}
@echo ${COMPONENT}: export complete
install: ${MODULE}
${MKDIR} ${INSTDIR}
${CP} ${MODULE} ${INSTDIR}.${COMPONENT} ${CPFLAGS}
Access ${INSTDIR}.${COMPONENT} lr/r
@echo ${COMPONENT}: installed (disc)
install_rom: ${ROM_MODULE}
${MKDIR} ${INSTDIR}
${CP} ${ROM_MODULE} ${INSTDIR}.${COMPONENT} ${CPFLAGS}
@echo ${COMPONENT}: installed (rom)
resources:
${MKDIR} ${RESDIR}.PDrivers
TokenCheck LocalRes:Messages
${CP} LocalRes:Messages ${RESDIR}.PDrivers.Messages ${CPFLAGS}
@echo ${COMPONENT}: resource files will be included in Messages module
clean:
${RM} ${MODULE}
${RM} ${ROM_MODULE}
${WIPE} o ${WFLAGS}
@echo ${COMPONENT}: cleaned
#
# Include 'StandAlone' code to install/de-install Messages
#
${MODULE}: s.StandAlone
${MKDIR} o
${AS} ${ASFLAGS} -From s.StandAlone o.${COMPONENT}
${LD} -rmf -o $@ o.${COMPONENT}
#
# Messages will be included in Messages module
#
${ROM_MODULE}: s.PDriver
${MKDIR} o
${AS} ${ASFLAGS} -From s.PDriver -To $@
ROM_SOURCE = PDriver.s
HEADER1 = PDriver
${EXP_HDR}.PDriver: hdr.PDriver
${CP} hdr.PDriver $@ ${CPFLAGS}
include StdTools
include AAsmModule
# Dynamic dependencies:
;
; This file is automatically maintained by srccommit, do not edit manually.
; Last processed by srccommit version: 1.2.
; Last processed by srccommit version: 1.1.
;
GBLS Module_MajorVersion
GBLA Module_Version
......@@ -11,13 +11,13 @@
GBLS Module_HelpVersion
GBLS Module_ComponentName
GBLS Module_ComponentPath
Module_MajorVersion SETS "3.39"
Module_Version SETA 339
Module_MajorVersion SETS "3.40"
Module_Version SETA 340
Module_MinorVersion SETS ""
Module_Date SETS "19 Oct 2007"
Module_ApplicationDate SETS "19-Oct-07"
Module_Date SETS "08 Apr 2016"
Module_ApplicationDate SETS "08-Apr-16"
Module_ComponentName SETS "PDriver"
Module_ComponentPath SETS "RiscOS/Sources/Printing/Modules/PDriver"
Module_FullVersion SETS "3.39"
Module_HelpVersion SETS "3.39 (19 Oct 2007)"
Module_ComponentPath SETS "castle/RiscOS/Sources/Printing/Modules/PDriver"
Module_FullVersion SETS "3.40"
Module_HelpVersion SETS "3.40 (08 Apr 2016)"
END
/* (3.39)
/* (3.40)
*
* This file is automatically maintained by srccommit, do not edit manually.
* Last processed by srccommit version: 1.2.
* Last processed by srccommit version: 1.1.
*
*/
#define Module_MajorVersion_CMHG 3.39
#define Module_MajorVersion_CMHG 3.40
#define Module_MinorVersion_CMHG
#define Module_Date_CMHG 19 Oct 2007
#define Module_Date_CMHG 08 Apr 2016
#define Module_MajorVersion "3.39"
#define Module_Version 339
#define Module_MajorVersion "3.40"
#define Module_Version 340
#define Module_MinorVersion ""
#define Module_Date "19 Oct 2007"
#define Module_Date "08 Apr 2016"
#define Module_ApplicationDate "19-Oct-07"
#define Module_ApplicationDate "08-Apr-16"
#define Module_ComponentName "PDriver"
#define Module_ComponentPath "RiscOS/Sources/Printing/Modules/PDriver"
#define Module_ComponentPath "castle/RiscOS/Sources/Printing/Modules/PDriver"
#define Module_FullVersion "3.39"
#define Module_HelpVersion "3.39 (19 Oct 2007)"
#define Module_LibraryVersionInfo "3:39"
#define Module_FullVersion "3.40"
#define Module_HelpVersion "3.40 (08 Apr 2016)"
#define Module_LibraryVersionInfo "3:40"
......@@ -83,27 +83,27 @@
standalone SETL {FALSE}
]
debug SETL false
hostvdu SETL false
debug SETL {FALSE}
hostvdu SETL {FALSE}
PrivMessages SETS "" ; no private messages
debug_file SETS "<PDrvDebug>"
ChangeJob SETD false ; job selection/creation.
ClearJob SETD false ; clearing of job handles
CurrentJob SETD false ; returning the current job handle
Enumerate SETD false ; enumerating the current jobs
PassToDriver SETD false ; pass to the specified driver
PassToJobR0 SETD false ; passing to job in r0
Reset SETD false ; reseting the job list
DeclareDriver SETD false ; declaring the printer
RemoveDriver SETD false ; remove printer
SelectDriver SETD false ; selecting a device
ToCurrent SETD true ; redirect to current job
SWI SETD false ; decoding of SWIs within the system
xx SETD false ; misc stuff
fnt SETD true ; FontSWI
calljobR10 SETD false ; call job with handle in R10
calldriverR10 SETD true ; calling driver with handle in R10
ChangeJob SETD {FALSE} ; job selection/creation.
ClearJob SETD {FALSE} ; clearing of job handles
CurrentJob SETD {FALSE} ; returning the current job handle
Enumerate SETD {FALSE} ; enumerating the current jobs
PassToDriver SETD {FALSE} ; pass to the specified driver
PassToJobR0 SETD {FALSE} ; passing to job in r0
Reset SETD {FALSE} ; reseting the job list
DeclareDriver SETD {FALSE} ; declaring the printer
RemoveDriver SETD {FALSE} ; remove printer
SelectDriver SETD {FALSE} ; selecting a device
ToCurrent SETD {TRUE} ; redirect to current job
SWI SETD {FALSE} ; decoding of SWIs within the system
xx SETD {FALSE} ; misc stuff
fnt SETD {TRUE} ; FontSWI
calljobR10 SETD {FALSE} ; call job with handle in R10
calldriverR10 SETD {TRUE} ; calling driver with handle in R10
; +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
......@@ -140,8 +140,7 @@ f_CallBackPending * 1:SHL:0 ; set => callback pending should
;
; Module header.
;
AREA |C$$code|, CODE, READONLY
; LEADR Module_LoadAddr
AREA |PDriver$$code|, CODE, READONLY
module_start & 0
& Initialisation -module_start ; init code
......@@ -161,16 +160,17 @@ module_start & 0
& Flags -module_start
]
[ :LNOT: No32bitCode
Flags DCD ModuleFlag_32bit
]
Help = "Printer sharer", 9, "$Module_HelpVersion"
[ debug
= " Development version"
]
= 0
ALIGN
[ :LNOT: No32bitCode
Flags DCD ModuleFlag_32bit
]
Title
SWITable = "PDriver", 0
= "Info", 0
......@@ -308,7 +308,7 @@ Initialisation ROUT
STRVC r0, flags ; mark as a callback is pending
[ standalone
; NK, 13-10-93 PDriver now installs its messgage file
; NK, 13-10-93 PDriver now installs its messages file
; SB, 25-11-98 Only if V clear - otherwise module disappears and takes registered block with it!
ADRVCL R0,resourcefsfiles
SWIVC XResourceFS_RegisterFiles ; ignore errors
......@@ -430,11 +430,11 @@ Service_FastEntry
; NK resource handling
TEQ R1,#Service_ResourceFSStarting
MOVNE PC,LR
STMFD SP!, {R0, LR}
Push "R0, LR"
ADRL R0, resourcefsfiles ; R0 -> ResourceFS file structure
MOV LR, PC ; LR -> return address
MOV PC, R2 ; call ResourceFS routine
LDMFD SP!, {R0, PC}
Pull "R0, PC"
]
......@@ -1180,7 +1180,7 @@ nocurrentdriver
LTORG
GET s.MsgCode
GET MsgCode.s
[ debug
InsertNDRDebugRoutines
......@@ -1188,7 +1188,7 @@ nocurrentdriver
[ standalone
resourcefsfiles
ResourceFile Resources.<Locale>.Messages, Resources.PDrivers.Messages
ResourceFile $MergedMsgs, Resources.PDrivers.Messages
DCD 0
]
......
; 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.
;
; > StandAlone
; Makes version with messages bound in
GBLL standalone
standalone SETL {TRUE}
LNK s.PDriver