Makefile 3.67 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32
# 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 Sound plug-in
#
# ***********************************
# ***    C h a n g e   L i s t    ***
# ***********************************
# Date       Name   Description
# ----       ----   -----------
# 03-Apr-98  RML    Created

#
# Program specific options:
#
COMPONENT  = SndSetup
APP        = !${COMPONENT}

#
# Generic options:
#
Steve Revill's avatar
Steve Revill committed
33
MKDIR   = do mkdir -p
34 35 36
CC      = cc
LD      = link
CP      = copy
Ben Avison's avatar
Ben Avison committed
37
RM      = rm
38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61
SQUISH  = squish
WIPE    = -wipe

AFLAGS  = ${THROWBACK} -depend !Depend -nocache -stamp -quit -module
CFLAGS  = ${THROWBACK} -depend !Depend -ffa ${INCLUDES} 
CPFLAGS = ~cfr~v
SQFLAGS = -nolist
WFLAGS  = ~c~v

#
# Libraries
#
CLIB       = CLib:o.stubs
EVENTLIB   = tbox:o.eventlib
TOOLBOXLIB = tbox:o.toolboxlib
WIMPLIB    = tbox:o.wimplib

#
# Include files
#
INCLUDES = -Itbox:,C:


FILES =\
Ben Avison's avatar
Ben Avison committed
62 63
 Resources.!Boot \
 LocalRes:!Run \
64
 Resources.!RunImage \
Ben Avison's avatar
Ben Avison committed
65
 Resources.<UserIF>.!Sprites \
66
 Resources.<UserIF>.!Sprites11 \
Ben Avison's avatar
Ben Avison committed
67
 Resources.<UserIF>.!Sprites22 \
68
 LocalRes:Blank \
Ben Avison's avatar
Ben Avison committed
69
 Resources.<UserIF>.CoSprite \
Ben Avison's avatar
Ben Avison committed
70
 Resources.<UserIF>.CoSprite22 \
Ben Avison's avatar
Ben Avison committed
71
 LocalRes:Messages \
72 73 74 75
 LocalRes:Res \
 Resources.Sprites \
 Resources.Sprites11 \
 Resources.Sprites22 \
76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97

OBJS =\
  o.main \
  o.common \
  o.sound

#
# Rule patterns
#
.SUFFIXES: .o

.c.o:; @echo
	@echo Compiling $<
	@${CC} ${CFLAGS} ${DFLAGS}        -c -o $@ $<
	
#
# Main rules:
#

all:     ${FILES}
	 @echo ${COMPONENT}: Application made.

98
install: ${FILES} o._Messages_
99 100 101
	 @echo
	 @echo ${COMPONENT}: Creating application ${APP}
	 ${MKDIR} ${INSTDIR}.${APP}
Ben Avison's avatar
Ben Avison committed
102 103
	 ${CP} Resources.!Boot               ${INSTDIR}.${APP}.!Boot      ${CPFLAGS}
	 ${CP} LocalRes:!Run                 ${INSTDIR}.${APP}.!Run       ${CPFLAGS}
104
	 ${CP} Resources.!RunImage           ${INSTDIR}.${APP}.!RunImage  ${CPFLAGS}
Ben Avison's avatar
Ben Avison committed
105
	 ${CP} Resources.<UserIF>.!Sprites   ${INSTDIR}.${APP}.!Sprites   ${CPFLAGS}
106
	 ${CP} Resources.<UserIF>.!Sprites11 ${INSTDIR}.${APP}.!Sprites11 ${CPFLAGS}
Ben Avison's avatar
Ben Avison committed
107
	 ${CP} Resources.<UserIF>.!Sprites22 ${INSTDIR}.${APP}.!Sprites22 ${CPFLAGS}
108
	 ${CP} LocalRes:Blank                ${INSTDIR}.${APP}.Blank      ${CPFLAGS}
Ben Avison's avatar
Ben Avison committed
109
	 ${CP} Resources.<UserIF>.CoSprite   ${INSTDIR}.${APP}.CoSprite   ${CPFLAGS}
Ben Avison's avatar
Ben Avison committed
110
	 ${CP} Resources.<UserIF>.CoSprite22 ${INSTDIR}.${APP}.CoSprite22 ${CPFLAGS}
111
	 ${CP} o._Messages_                  ${INSTDIR}.${APP}.Messages   ${CPFLAGS}
Ben Avison's avatar
Ben Avison committed
112
	 ${CP} LocalRes:Res                  ${INSTDIR}.${APP}.Res        ${CPFLAGS}
113 114 115
	 ${CP} Resources.Sprites             ${INSTDIR}.${APP}.Sprites    ${CPFLAGS}
	 ${CP} Resources.Sprites11           ${INSTDIR}.${APP}.Sprites11  ${CPFLAGS}
	 ${CP} Resources.Sprites22           ${INSTDIR}.${APP}.Sprites22  ${CPFLAGS}
116 117 118 119 120
	 Access ${INSTDIR}.${APP}.* wr/r
	 @echo
	 @echo ${COMPONENT}: Application installed {Disc}

clean:
Ben Avison's avatar
Ben Avison committed
121 122
	${RM} ${OBJS}
	${RM} Resources.!RunImage
123
	${RM} o._Messages_
124 125
	@echo ${COMPONENT}: cleaned

126 127 128 129
o._Messages_: LocalRes:Messages
	@echo Creating messages file
	/PatchVers LocalRes:Messages o._Messages_

130 131 132 133 134 135 136 137 138
#
# Static dependencies:
#

Resources.!RunImage: ${OBJS} ${EVENTLIB} ${TOOLBOXLIB} ${WIMPLIB} ${CLIB}
	${LD} -o $@ ${CLIB} ${EVENTLIB} ${TOOLBOXLIB} ${WIMPLIB} ${OBJS}

#---------------------------------------------------------------------------
# Dynamic dependencies: