Commit e6e671aa authored by Robert Sprowson's avatar Robert Sprowson
Browse files

Makefile recreated from fragments

Swap
 #if DEBUG
for
 #ifdef DEBUG
since the debug defines get appended to the non debug defines in the shared makefiles, so there's no way to set it to zero conveniently.
Requires BuildSys-6_63 for $LIBDEPENDS support.

Version 0.61. Tagged as 'Unicode-0_61'
parent a4e5d90c
| Copyright 1997 Acorn Computers Ltd | Copyright 2015 Castle Technology Ltd
| |
| Licensed under the Apache License, Version 2.0 (the "License"); | Licensed under the Apache License, Version 2.0 (the "License");
| you may not use this file except in compliance with the License. | you may not use this file except in compliance with the License.
...@@ -15,4 +15,3 @@ ...@@ -15,4 +15,3 @@
Dir <Obey$Dir> Dir <Obey$Dir>
amu_machine clean amu_machine clean
stripdepnd stripdepnd
stripdepnd mkunictype/mk
| Copyright 1997 Acorn Computers Ltd | Copyright 2015 Castle Technology Ltd
| |
| Licensed under the Apache License, Version 2.0 (the "License"); | Licensed under the Apache License, Version 2.0 (the "License");
| you may not use this file except in compliance with the License. | you may not use this file except in compliance with the License.
...@@ -13,4 +13,5 @@ ...@@ -13,4 +13,5 @@
| limitations under the License. | limitations under the License.
| |
Dir <Obey$Dir> Dir <Obey$Dir>
amu_machine all THROWBACK=-throwback amu_machine export_hdrs THROWBACK=-throwback
amu_machine export_libs THROWBACK=-throwback
...@@ -12,244 +12,31 @@ ...@@ -12,244 +12,31 @@
# See the License for the specific language governing permissions and # See the License for the specific language governing permissions and
# limitations under the License. # limitations under the License.
# #
# Makefile for Unicode # Makefile for UnicodeLib
# #
# ***********************************
# *** C h a n g e L i s t ***
# ***********************************
# Date Name Description
# ---- ---- -----------
# 06-Oct-97 SJM Created.
#
#
# Paths
#
EXP_HDR = <export$dir>
LIBDIR = <Lib$Dir>
UNICODELIBDIR = ${LIBDIR}.Unicode
#
# Generic options:
#
MKDIR = do mkdir -p
AS = objasm
CP = copy
CC = cc
CM = cmhg
RM = remove
LD = link
LB = libfile
TOUCH = create
WIPE = x wipe
SQUEEZE = squeeze
STRIP = stripdepnd
CCFLAGS = -c -depend !Depend -fah ${INCLUDES} ${DFLAGS} ${THROWBACK}
ASFLAGS = -depend !Depend -Stamp -quit
CPFLAGS = ~cfr~v
LBFLAGS = -c
WFLAGS = ~CFR~V
#
# Libraries
#
CLIB = CLIB:o.stubs
RLIB = RISCOSLIB:o.risc_oslib
RSTUBS = RISCOSLIB:o.rstubs
ROMSTUBS = RISCOSLIB:o.romstubs
ROMCSTUBS = RISCOSLIB:o.romcstubs
ABSSYM = RISC_OSLib:o.AbsSym
#
# Include files
#
INCLUDES =
DFLAGS =
#
# Program specific options:
#
COMPONENT = ucodelib
COMPONENTZ = ucodelibm
COMPONENTD = ucodelibd
TARGET = ${COMPONENT}
TARGETZ = ${COMPONENTZ}
TARGETD = ${COMPONENTD}
SOURCE =
EXPORTS =
OBJS = autojp.o \
unictype.o \
utf8.o \
utf16.o \
encoding.o \
iso2022.o \
eightbit.o \
iso6937.o \
shiftjis.o \
johab.o \
bigfive.o \
enc_utf7.o \
enc_utf8.o \
enc_ascii.o \
enc_utf16.o \
enc_ucs4.o \
enc_scsu.o \
enc_system.o \
acorn.o \
combine.o \
riscos.o
OBJSZ = \ COMPONENT = UnicodeLib
oz.autojp \ TARGET = ucode
oz.unictype \ EXPDIR = ${LIBDIR}${SEP}Unicode
oz.utf8 \ LIBRARIES = ${LIBRARY} ${LIBRARYZM} ${LIBRARYD}
oz.utf16 \ LIBDEPENDS = unictype
oz.encoding \ CDFLAGS = -DDEBUG=1
oz.iso2022 \ OBJS = autojp unictype utf8 utf16 encoding iso2022 eightbit iso6937 \
oz.eightbit \ shiftjis johab bigfive enc_utf7 enc_utf8 enc_ascii enc_utf16 \
oz.iso6937 \ enc_ucs4 enc_scsu enc_system acorn combine riscos
oz.shiftjis \ HDRS = autojp charsets encoding iso10646 iso3166 \
oz.johab \ languages unictype utf8 combine
oz.bigfive \
oz.enc_utf7 \
oz.enc_utf8 \
oz.enc_ascii \
oz.enc_utf16 \
oz.enc_ucs4 \
oz.enc_scsu \
oz.enc_system \
oz.acorn \
oz.combine \
oz.riscos
include CLibrary
OBJSD = \ clean::
od.autojp \
od.unictype \
od.utf8 \
od.utf16 \
od.encoding \
od.iso2022 \
od.eightbit \
od.iso6937 \
od.shiftjis \
od.johab \
od.bigfive \
od.enc_utf7 \
od.enc_utf8 \
od.enc_ascii \
od.enc_utf16 \
od.enc_ucs4 \
od.enc_scsu \
od.enc_system \
od.acorn \
od.combine \
od.riscos \
od.debug
HDRS = autojp.h charsets.h encoding.h iso10646.h iso3166.h languages.h unictype.h utf8.h combine.h
LIBS = ${TARGET} ${TARGETD} ${TARGETZ}
#
# Rule patterns
#
.SUFFIXES: .o .oz .od .c .h .s
.c.o:; ${CC} ${CCFLAGS} -DROM=0 -DDEBUG=0 -ff -o $@ $<
.c.oz:; ${CC} ${CCFLAGS} -DROM=1 -DDEBUG=0 -ff -zM -o $@ $<
.c.od:; ${CC} ${CCFLAGS} -DROM=0 -DDEBUG=1 -o $@ $<
.s.o:; ${AS} ${ASFLAGS} -o $@ $<
.cmhg.o:; ${CM} ${CMFLAGS} -o $@ $<
.cmhg.h:; ${CM} ${CMFLAGS} -d $@ $<
#
# build the library:
#
all: ${LIBS}
#
# RISC OS ROM build rules:
#
rom: ${TARGET}
@echo ${COMPONENT}: rom module built
export: export_${PHASE}
install_rom: ${TARGET}
@echo ${COMPONENT}: rom module installed
install:
${MKDIR} ${INSTDIR}.Unicode
${CP} ${UNICODELIBDIR}.* ${INSTDIR}.Unicode.* ${CPFLAGS}
@echo ${COMPONENT}: installed
clean:
${WIPE} o ${WFLAGS}
${WIPE} oz ${WFLAGS}
${WIPE} od ${WFLAGS}
${RM} ${COMPONENT}
${RM} ${COMPONENTZ}
${RM} ${COMPONENTD}
${RM} local_dirs
${RM} c.unictype
${RM} mkunictype ${RM} mkunictype
${RM} TextConv ${RM} c${SEP}unictype
@echo ${COMPONENT}: cleaned
export_hdrs: ${HDRS} dirs
${CP} h.autojp ${UNICODELIBDIR}.h.* ${CPFLAGS}
${CP} h.charsets ${UNICODELIBDIR}.h.* ${CPFLAGS}
${CP} h.combine ${UNICODELIBDIR}.h.* ${CPFLAGS}
${CP} h.encoding ${UNICODELIBDIR}.h.* ${CPFLAGS}
${CP} h.iso10646 ${UNICODELIBDIR}.h.* ${CPFLAGS}
${CP} h.iso3166 ${UNICODELIBDIR}.h.* ${CPFLAGS}
${CP} h.languages ${UNICODELIBDIR}.h.* ${CPFLAGS}
${CP} h.unictype ${UNICODELIBDIR}.h.* ${CPFLAGS}
${CP} h.utf8 ${UNICODELIBDIR}.h.* ${CPFLAGS}
${CP} h.utf16 ${UNICODELIBDIR}.h.* ${CPFLAGS}
@echo ${COMPONENT}: export complete (hdrs)
export_libs: ${LIBS} dirs unictype: mkunictype data${SEP}UnicodeData
${CP} ${TARGET} ${UNICODELIBDIR}.o.* ${CPFLAGS} ${RUN}mkunictype < data${SEP}UnicodeData > c${SEP}unictype
${CP} ${TARGETD} ${UNICODELIBDIR}.o.* ${CPFLAGS}
${CP} ${TARGETZ} ${UNICODELIBDIR}.o.* ${CPFLAGS}
@echo ${COMPONENT}: export complete (libs)
local_dirs:
${MKDIR} o
${MKDIR} oz
${MKDIR} od
${TOUCH} local_dirs
dirs:
${MKDIR} ${LIBDIR}
${MKDIR} ${UNICODELIBDIR}
${MKDIR} ${UNICODELIBDIR}.h
${MKDIR} ${UNICODELIBDIR}.o
unictype.c: mkunictype data.UnicodeData
${RUN}mkunictype < data.UnicodeData > c.unictype
echo Made unictype.c
mkunictype: mkunictype.c mkunictype: mkunictype.c
${MAKE} -f mkunictype/mk COMPONENT=mkunictype THROWBACK=${THROWBACK} ${MAKE} -f mkunictype/mk THROWBACK=${THROWBACK}
TextConv: textconv.o ${TARGET}
${LD} -o $@ textconv.o ${TARGET} ${CLIB}
${SQUEEZE} $@
#
# Final link
#
${TARGET}: ${OBJS} unictype.c local_dirs
${LB} ${LBFLAGS} -o ${COMPONENT} ${OBJS}
${TARGETZ}: ${OBJSZ} unictype.c local_dirs
${LB} ${LBFLAGS} -o ${COMPONENTZ} ${OBJSZ}
${TARGETD}: ${OBJSD} unictype.c local_dirs
${LB} ${LBFLAGS} -o ${COMPONENTD} ${OBJSD}
# Dynamic dependencies: # Dynamic dependencies:
| Copyright 1997 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>
Echo Exporting UnicodeLib from <Obey$Dir> ...
wimpslot -min 1608k
time
amu_machine export_hdrs
amu_machine export_libs
time
| Copyright 1999 Element 14 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 TextConv THROWBACK=-throwback
/* (0.60) /* (0.61)
* *
* This file is automatically maintained by srccommit, do not edit manually. * This file is automatically maintained by srccommit, do not edit manually.
* Last processed by srccommit version: 1.1. * Last processed by srccommit version: 1.1.
* *
*/ */
#define Module_MajorVersion_CMHG 0.60 #define Module_MajorVersion_CMHG 0.61
#define Module_MinorVersion_CMHG #define Module_MinorVersion_CMHG
#define Module_Date_CMHG 06 Jan 2013 #define Module_Date_CMHG 10 Jan 2015
#define Module_MajorVersion "0.60" #define Module_MajorVersion "0.61"
#define Module_Version 60 #define Module_Version 61
#define Module_MinorVersion "" #define Module_MinorVersion ""
#define Module_Date "06 Jan 2013" #define Module_Date "10 Jan 2015"
#define Module_ApplicationDate "06-Jan-13" #define Module_ApplicationDate "10-Jan-15"
#define Module_ComponentName "Unicode" #define Module_ComponentName "Unicode"
#define Module_ComponentPath "castle/RiscOS/Sources/Lib/Unicode" #define Module_ComponentPath "castle/RiscOS/Sources/Lib/Unicode"
#define Module_FullVersion "0.60" #define Module_FullVersion "0.61"
#define Module_HelpVersion "0.60 (06 Jan 2013)" #define Module_HelpVersion "0.61 (10 Jan 2015)"
#define Module_LibraryVersionInfo "0:60" #define Module_LibraryVersionInfo "0:61"
...@@ -57,7 +57,7 @@ ...@@ -57,7 +57,7 @@
#define ESC 27 #define ESC 27
#define SS2 142 #define SS2 142
#if DEBUG #ifdef DEBUG
static const char *states[] = static const char *states[] =
{ {
"HAD_NONE", "HAD_NONE",
......
...@@ -30,7 +30,7 @@ ...@@ -30,7 +30,7 @@
#include "encpriv.h" #include "encpriv.h"
#if DEBUG #ifdef DEBUG
void uni_dprintf (const char *format, ...) void uni_dprintf (const char *format, ...)
{ {
va_list p; va_list p;
......
...@@ -138,7 +138,7 @@ DECLARE_DBG(uni) ...@@ -138,7 +138,7 @@ DECLARE_DBG(uni)
#define NOT_USED(a) a=a #define NOT_USED(a) a=a
#endif #endif
#if DEBUG #ifdef DEBUG
void uni_dprintf (const char *format, ...); void uni_dprintf (const char *format, ...);
......
...@@ -14,8 +14,9 @@ ...@@ -14,8 +14,9 @@
# #
# Makefile for mkunictype # Makefile for mkunictype
COMPONENT = mkunictype
include HostTools include HostTools
#include StdRules
include AppLibs include AppLibs
include CApp include CApp
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment