comparison packages/hal/mn10300/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 3111d98ba7b3
children 1d7f19c9e4d1
comparison
equal deleted inserted replaced
1:72f549f0d891 2:443894e2e912
20 # 20 #
21 # The Original Code is eCos - Embedded Cygnus Operating System, released 21 # The Original Code is eCos - Embedded Cygnus Operating System, released
22 # September 30, 1998. 22 # September 30, 1998.
23 # 23 #
24 # The Initial Developer of the Original Code is Cygnus. Portions created 24 # The Initial Developer of the Original Code is Cygnus. Portions created
25 # by Cygnus are Copyright (C) 1998 Cygnus Solutions. All Rights Reserved. 25 # by Cygnus are Copyright (C) 1998,1999 Cygnus Solutions. All Rights Reserved.
26 # ------------------------------------------- 26 # -------------------------------------------
27 # 27 #
28 #####COPYRIGHTEND#### 28 #####COPYRIGHTEND####
29 #============================================================================== 29 #==============================================================================
30 30
31 PACKAGE := hal_mn10300 31 PACKAGE := hal_mn10300
32 include ../../../../../pkgconf/pkgconf.mak 32 include ../../../../../pkgconf/pkgconf.mak
33 33
34 LIBRARY := libtarget.a 34 LIBRARY := libtarget.a
35 COMPILE := hal_misc.c context.S 35 COMPILE := hal_misc.c context.S mn10300_stub.c
36 OTHER_OBJS := 36 OTHER_OBJS :=
37 OTHER_TARGETS := vectors.stamp 37 OTHER_TARGETS := vectors.stamp ldscript.stamp
38 OTHER_DEPS := $(PACKAGE)_vectors.d 38 OTHER_DEPS := $(PACKAGE)_vectors.d ldscript.d
39 OTHER_CLEAN := vectors.clean 39 OTHER_CLEAN := vectors.clean ldscript.clean
40 40
41 include $(COMPONENT_REPOSITORY)/pkgconf/makrules.src 41 include $(COMPONENT_REPOSITORY)/pkgconf/makrules.src
42
43 .PHONY: ldscript.clean
42 44
43 vectors.stamp: $(PACKAGE)_vectors.o 45 vectors.stamp: $(PACKAGE)_vectors.o
44 $(CP) $< $(PREFIX)/lib/vectors.o 46 $(CP) $< $(PREFIX)/lib/vectors.o
45 @$(TOUCH) $@ 47 @$(TOUCH) $@
46 48
49 $(RM) vectors.stamp 51 $(RM) vectors.stamp
50 52
51 $(PACKAGE)_vectors.o: $(BUILD_TREE)/pkgconf/pkgconf.mak \ 53 $(PACKAGE)_vectors.o: $(BUILD_TREE)/pkgconf/pkgconf.mak \
52 $(BUILD_TREE)/pkgconf/makevars $(PACKAGE_RULES_FILE) 54 $(BUILD_TREE)/pkgconf/makevars $(PACKAGE_RULES_FILE)
53 55
56 ldscript.stamp: mn10300.ld
57 $(CC) -E -P -Wp,-MD,ldscript.tmp -DEXTRAS=1 -xc $(INCLUDE_PATH) $(CFLAGS) -o $(PREFIX)/lib/target.ld $<
58 @echo > ldscript.d
59 @echo $@ ':' $< '\' >> ldscript.d
60 @tail -n +2 ldscript.tmp >> ldscript.d
61 @rm ldscript.tmp
62 $(TOUCH) $@
63
64 ldscript.clean:
65 $(RM) -f $(PREFIX)/lib/target.ld
66 $(RM) -f ldscript.stamp