Makefile 2.08 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 33 34 35 36
# Copyright 1999 Pace Micro Technology plc
#
# 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 DDEUtils
#
# ***********************************
# ***    C h a n g e   L i s t    ***
# ***********************************
# Date       Name         Description
# ----       ----         -----------
# 22-Nov-99  SNB          Created.
#

#
# Paths
#
EXP_HDR = <export$dir>

#
# Generic options:
#
MKDIR   = do mkdir -p
AS      = objasm
CP      = copy
RM      = remove
37
WIPE    = -wipe
38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54
LD      = link
CCFLAGS = -c -depend !Depend -IC: ${THROWBACK}
ASFLAGS = -depend !Depend -Stamp -quit ${THROWBACK} -o $@
LDFLAGS = -rmf
CPFLAGS = ~cfr~v
WFLAGS  = fr~c~v

#
# Program specific options:
#
COMPONENT = DDEUtils
SOURCE    = s.DDEUtils
TARGET    = rm.DDEUtils
EXPORTS   = ${EXP_HDR}.DDEUtils
DDEUtils  = rm.DDEUtils

OBJS      = DDEUtils.o
55
DIRS      = o._dirs
56

57
.s.o:;  ${AS} ${ASFLAGS} $<
58 59 60 61 62 63 64

#
# Generic rules:
#
rom: $(TARGET)
	@echo ${COMPONENT}: rom module built

65 66 67
ram: $(TARGET)
	@echo ${COMPONENT}: ram module built

68 69 70 71 72 73 74 75 76 77
all: rom

export: ${EXPORTS}
	@echo ${COMPONENT}: export complete

install_rom: $(TARGET)
	$(CP) $(TARGET) $(INSTDIR).$(COMPONENT) $(CPFLAGS)
	@echo ${COMPONENT}: rom module installed

install: ${TARGET}
78 79
	${MKDIR} ${INSTDIR}
	${CP} ${DDEUTILS} ${INSTDIR}.* ${CPFLAGS}
80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99
	@echo ${COMPONENT}: disc build module installed

clean:
	$(RM) $(TARGET)
	${WIPE} o ${WFLAGS}
	${WIPE} rm ${WFLAGS}
	@echo ${COMPONENT}: cleaned

${DIRS}:
	${MKDIR} o
	create $@

$(TARGET): $(OBJS) $(DIRS)
	${MKDIR} rm
	${LD} ${LDFLAGS} -o $@ ${OBJS}
	
${EXP_HDR}.DDEUtils: hdr.DDEUtils
	${CP} hdr.DDEUtils $@ ${CPFLAGS}

# Dynamic dependencies: