comparison packages/hal/arm/arch/current/src/PKGconf.mak @ 2:443894e2e912 ecos-v1_2_1-release

Block commit of eCos version 1.2.1
author jlarmour
date Tue, 11 May 1999 12:24:34 +0000
parents
children 1d7f19c9e4d1
comparison
equal deleted inserted replaced
1:72f549f0d891 2:443894e2e912
1 #==============================================================================
2 #
3 # makefile
4 #
5 # hal/powerpc/arch/src
6 #
7 #==============================================================================
8 #####COPYRIGHTBEGIN####
9 #
10 # -------------------------------------------
11 # The contents of this file are subject to the Cygnus eCos Public License
12 # Version 1.0 (the "License"); you may not use this file except in
13 # compliance with the License. You may obtain a copy of the License at
14 # http://sourceware.cygnus.com/ecos
15 #
16 # Software distributed under the License is distributed on an "AS IS"
17 # basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the
18 # License for the specific language governing rights and limitations under
19 # the License.
20 #
21 # The Original Code is eCos - Embedded Cygnus Operating System, released
22 # September 30, 1998.
23 #
24 # The Initial Developer of the Original Code is Cygnus. Portions created
25 # by Cygnus are Copyright (C) 1998,1999 Cygnus Solutions. All Rights Reserved.
26 # -------------------------------------------
27 #
28 #####COPYRIGHTEND####
29 #==============================================================================
30
31 PACKAGE := hal_arm
32 include ../../../../../pkgconf/pkgconf.mak
33
34 LIBRARY := libtarget.a
35 COMPILE := hal_misc.c vectors.S context.S arm_stub.c
36 OTHER_OBJS :=
37 OTHER_TARGETS := vectors.stamp ldscript.stamp
38 OTHER_DEPS := $(PACKAGE)_vectors.d ldscript.d
39 OTHER_CLEAN := vectors.clean ldscript.clean
40
41 include $(COMPONENT_REPOSITORY)/pkgconf/makrules.src
42
43 .PHONY: ldscript.clean
44
45 $(PACKAGE)_context.o $(PACKAGE)_vectors.o: arm.inc
46
47 arm.inc: hal_mk_defs.c ../include/hal_arch.h
48 $(CC) ${CFLAGS} $(INCLUDE_PATH) -S $<
49 grep -w 'equ' hal_mk_defs.s | sed -e's/#//' >arm.inc
50 $(RM) hal_mk_defs.s
51
52 vectors.stamp: $(PACKAGE)_vectors.o
53 $(CP) $< $(PREFIX)/lib/vectors.o
54 @$(TOUCH) $@
55
56 vectors.clean:
57 $(RM) $(PREFIX)/lib/vectors.o $(PACKAGE)_vectors.o
58 $(RM) vectors.stamp
59
60 ldscript.stamp: arm.ld
61 $(CC) -E -P -Wp,-MD,ldscript.tmp -DEXTRAS=1 -xc $(INCLUDE_PATH) $(CFLAGS) -o $(PREFIX)/lib/target.ld $<
62 @echo > ldscript.d
63 @echo $@ ':' $< '\' >> ldscript.d
64 @tail -n +2 ldscript.tmp >> ldscript.d
65 @rm ldscript.tmp
66 $(TOUCH) $@
67
68 ldscript.clean:
69 $(RM) -f $(PREFIX)/lib/target.ld
70 $(RM) -f ldscript.stamp
71
72
73