# This file was created by Megamake-3
# Copyright (C) ARM Ltd 2001. All rights reserved

SRCDIR1=../..
EXTDIR1=../../../armulif
EXTDIR2=../../../rdi
EXTDIR3=../../../clx
DERDIR=derived


ARM_RELEASE= -DARM_RELEASE="\"ADS1.2\""
SPECIFIC_RELEASE=
BUILD_INFO=-DBUILD_NUMBER=805

CFL= # local C compile flags
CDOFL=-O -DNDEBUG # C debug and optimization flags
PRFL= # C and link profile flags
LFLAGS= # Linker flags
CINCLS=-I$(SRCDIR1) -I$(EXTDIR1) -I$(EXTDIR2) -I$(EXTDIR3) # C include flags
CCFLAGS=-z  -DRDI_VERSION=151 -DARM10MODEL $(DLLPIC)
CFLAGS=$(CINCLS) $(CCFLAGS) $(CDOFL) $(PRFL) $(CFL) $(ARM_RELEASE) $(SPECIFIC_RELEASE) $(BUILD_INFO) -I$(DERDIR)
CFLAGS2=$(CFLALL) $(CCFLAGS2)
CCFLAGS2=-O -z # C flags for helper tools
CC=cc -Ae +DAportable -c
CL=cc -Ae +DAportable
AR=ar
ARFLAGS=rc
LINK=cc -Ae +DAportable
DLLLINK=ld
MKTAG=mktag
MKMSG=mkmsg
MKMSGRC=mkmsgrc
ERRFILE=
HOST=cchppa# also build_dir (no space before '#')
XHELPER= # command to run semi-hosted helper programs
RUNTEST= # command to run semi-hosted test programs
EXTLIBS=../../../armulif/armulif.b/cchppa/armulif.a \
../../../clx/clx.b/cchppa/clx.a 
LASTLIBS= # extra host libraries, for end of linker command-line
EXTOBJS=
EXTOTHER=
DESTDIR=./release/$(HOST)

OBJALL=mapfile.o 
DLLUSEFLAGS=
DLLGENFLAGS=-E -b +s
DLLPIC=+z


Mapfile.sl: $(OBJALL) $(EXTOBJS) $(EXTOTHER) $(EXTDLLOTHER) $(EXTLIBS)
	$(DLLLINK) -o Mapfile.sl $(DLLGENFLAGS) $(LFLAGS) $(PRFL) $(OBJALL) $(EXTOBJS) $(EXTOTHER) $(EXTDLLOTHER) $(EXTLIBS)  $(LASTLIBS)
	echo "Made Mapfile.sl"

release_dll_Mapfile:
	mkdir -p $(DESTDIR)/$(HOST)/bin
	cp -p Mapfile.sl $(DESTDIR)/$(HOST)/bin
	strip $(DESTDIR)/$(HOST)/bin/Mapfile.sl
tests: $(OBJALL)
	@echo No tests.


release: release_dll_Mapfile


# Generated dependencies

mapfile.o: $(SRCDIR1)/mapfile.c
mapfile.o: $(EXTDIR3)/host.h
mapfile.o: $(EXTDIR3)/armtypes.h
mapfile.o: $(EXTDIR1)/armul_types.h
mapfile.o: $(EXTDIR2)/rdi_stat.h
mapfile.o: $(EXTDIR2)/rdi_err.h
mapfile.o: $(EXTDIR2)/rdi_info.h
mapfile.o: $(EXTDIR2)/rdi100.h
mapfile.o: $(EXTDIR3)/toolconf.h
mapfile.o: $(EXTDIR2)/rdi150.h
mapfile.o: $(EXTDIR2)/rdi151.h
mapfile.o: $(EXTDIR2)/rdi.h
mapfile.o: $(EXTDIR2)/rdi_hif.h
mapfile.o: $(EXTDIR1)/armul_hostif.h
mapfile.o: $(EXTDIR1)/simplelinks.h
mapfile.o: $(EXTDIR2)/rdi_priv.h
mapfile.o: $(EXTDIR1)/armsignal.h
mapfile.o: $(EXTDIR2)/rdi_armul.h
mapfile.o: $(EXTDIR1)/armul_askrdi.h
mapfile.o: $(EXTDIR3)/errcodes.h
mapfile.o: $(EXTDIR3)/cvector.h
mapfile.o: $(EXTDIR1)/armul_method.h
mapfile.o: $(EXTDIR1)/armul_bus.h
mapfile.o: $(EXTDIR1)/armul_callbackid.h
mapfile.o: $(EXTDIR1)/armul_access.h
mapfile.o: $(EXTDIR1)/armul_copro.h
mapfile.o: $(EXTDIR1)/minperip.h
mapfile.o: $(EXTDIR1)/armul_defs.h
mapfile.o: $(EXTDIR1)/armul_mem.h
mapfile.o: $(EXTDIR1)/addcounter.h
mapfile.o: $(EXTDIR1)/armul_cyc.h
mapfile.o: $(EXTDIR1)/armul_lib.h
mapfile.o: $(EXTDIR2)/rdi_conf.h
mapfile.o: $(EXTDIR1)/armul_cnf.h
mapfile.o: $(EXTDIR3)/clxlist.h
mapfile.o: $(EXTDIR2)/sordi.h
mapfile.o: $(EXTDIR3)/findfile.h
mapfile.o: $(EXTDIR3)/dir.h
mapfile.o: $(EXTDIR2)/rdi_sdm.h
mapfile.o: $(EXTDIR2)/rditools.h
mapfile.o: $(EXTDIR1)/perip_sordi_if.h
mapfile.o: $(EXTDIR1)/perip_rdi_agent.h
mapfile.o: $(EXTDIR1)/perip_sordi.h
	$(CC) $(CFLALL) $(CFLAGS) $(CFLmapfile) -o mapfile.o $(SRCDIR1)/mapfile.c
