Makefile 2.17 KB
Newer Older
Neil Turton's avatar
Neil Turton committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
# 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 Colour Translation module
#
# ***********************************
# ***    C h a n g e   L i s t    ***
# ***********************************
# Date       Name         Description
# ----       ----         -----------
# 25-May-94  AMcC         Created.
# 10-Mar-95  GPS          Changed method for building ROM tables.
24
# 14-May-01  SNB          Changed to used fragment makefiles
Neil Turton's avatar
Neil Turton committed
25 26
#

27 28 29 30 31 32 33
COMPONENT = ColourTrans
TARGET    = Colours

ROM_SOURCE = MakeNew
HEADER1   = ColourTran

RESOURCEEXTRA = resources-colourtrans
Neil Turton's avatar
Neil Turton committed
34

35 36 37 38

include StdTools
include AAsmModule
include AppLibs
Neil Turton's avatar
Neil Turton committed
39

40 41 42 43 44 45 46 47
#
# Binary build environment
#
# Enhance the export rule to include the Tables and MkTables directories
BBETYPE   = local
bbe-local: bbe-generic
	BBE_Export_Dir Tables
	BBE_Export_Dir MkTables
48
	BBE_Export_Dir Palettes
49

Neil Turton's avatar
Neil Turton committed
50 51 52
#
# Generic rules:
#
53
clean::
54 55
	${WIPE} Tables.* ${WFLAGS}
	${WIPE} MkTables.o.* ${WFLAGS}
Neil Turton's avatar
Neil Turton committed
56
	${WIPE} Palettes.* ${WFLAGS}
57
	${RM} MkTables.maketables
Neil Turton's avatar
Neil Turton committed
58 59
	@echo ${COMPONENT}: cleaned

60 61 62 63 64
resources-colourtrans: Palettes.8desktop
	${MKDIR} ${RESFSDIR}
	${CP} Palettes ${RESFSDIR}.* ${CPFLAGS}
	${CP} Tables   ${RESFSDIR}.* ${CPFLAGS}
	@echo ${COMPONENT}: extra resource files copied
Neil Turton's avatar
Neil Turton committed
65 66

MkTables.o.maketables: MkTables.c.maketables
67
	${CC} $(ccflags) -c -o $@ MkTables.c.maketables
Neil Turton's avatar
Neil Turton committed
68

69
MkTables.maketables:   MkTables.o.maketables ${CLIB} MkTables.o._dirs
Neil Turton's avatar
Neil Turton committed
70 71
	link $(linkflags) -o $@ MkTables.o.maketables ${CLIB}

72 73
Palettes.8desktop: MkTables.maketables ${ROM_MODULE}
	rmload ${ROM_MODULE}
Neil Turton's avatar
Neil Turton committed
74 75 76 77 78
	MkTables.maketables @  
	settype Tables.8greys text
	settype Tables.4greys text
	MkTables.dosqueeze
	
79 80 81
MkTables.o._dirs:
	${MKDIR} MkTables.o

Neil Turton's avatar
Neil Turton committed
82
# Dynamic dependencies: