1 | ## |
---|
2 | ## $Id$ |
---|
3 | ## |
---|
4 | |
---|
5 | VPATH = @srcdir@:@srcdir@/../../../shared |
---|
6 | |
---|
7 | PGM = $(ARCH)/startup.rel |
---|
8 | |
---|
9 | #C_PIECES = bspclean bsplibc bsppost bspstart bootcard main sbrk setvec \ |
---|
10 | # gnatinstallhandler |
---|
11 | C_FILES = bspclean.c bsplibc.c bsppost.c bspstart.c bootcard.c cntrltbl.c \ |
---|
12 | exit.c fault.c flttbl.c frmstr.c intrtbl.c kkprintf.c main.c nmi.c \ |
---|
13 | nulsystbl.c prcb.c rom_cntrltbl.c rom_ibr.c rom_prcb.c sbrk.c sctns.c \ |
---|
14 | setvec.c systbl.c |
---|
15 | |
---|
16 | noinst_HEADERS = asmfault.h asmstub.h cntrltbl.h fault.h faultret.h flttbl.h \ |
---|
17 | frmstr.h i960.h ihandler.h intrtbl.h main.h memchnl.h pmc901_memmap.h \ |
---|
18 | prcb.h rom_ibr.h rommon.h sctns.h systbl.h time.h |
---|
19 | |
---|
20 | S_FILES = asmfault.S asmstub.S ihandler.S |
---|
21 | |
---|
22 | OBJS = $(C_FILES:%.c=$(ARCH)/%.$(OBJEXT)) \ |
---|
23 | $(S_FILES:%.S=$(ARCH)/%.$(OBJEXT)) |
---|
24 | |
---|
25 | include $(top_srcdir)/../../../../automake/compile.am |
---|
26 | include $(top_srcdir)/../../../../automake/lib.am |
---|
27 | |
---|
28 | # |
---|
29 | # (OPTIONAL) Add local stuff here using += |
---|
30 | # |
---|
31 | |
---|
32 | $(PGM): $(OBJS) |
---|
33 | $(make-rel) |
---|
34 | |
---|
35 | project_lib_DATA = linkcmds |
---|
36 | |
---|
37 | # the .rel file built here will be put into libbsp.a by ../wrapup/Makefile |
---|
38 | |
---|
39 | all-local: $(PGM) $(TMPINSTALL_FILES) |
---|
40 | |
---|
41 | EXTRA_DIST = asmfault.S asmfault.h asmstub.S asmstub.h bspstart.c cntrltbl.c \ |
---|
42 | cntrltbl.h dram.ld exit.c fault.c fault.h faultret.h flttbl.c flttbl.h \ |
---|
43 | frmstr.c frmstr.h i960.h ihandler.S ihandler.h intrtbl.c intrtbl.h \ |
---|
44 | kkprintf.c linkcmds main.h memchnl.h nmi.c nulsystbl.c pmc901_memmap.h \ |
---|
45 | prcb.c prcb.h rom.ld rom_cntrltbl.c rom_ibr.c rom_ibr.h rom_prcb.c \ |
---|
46 | rommon.h rxgen_romld.S sctns.c sctns.h setvec.c systbl.c systbl.h \ |
---|
47 | time.h |
---|
48 | |
---|
49 | TMPINSTALL_FILES = |
---|
50 | |
---|
51 | $(PROJECT_LIB)/$(dirstamp): |
---|
52 | @$(mkdir_p) $(PROJECT_LIB) |
---|
53 | @: > $(PROJECT_LIB)/$(dirstamp) |
---|
54 | TMPINSTALL_FILES += $(PROJECT_LIB)/$(dirstamp) |
---|
55 | |
---|
56 | $(PROJECT_LIB)/linkcmds: linkcmds $(PROJECT_LIB)/$(dirstamp) |
---|
57 | $(INSTALL_DATA) $< $(PROJECT_LIB)/linkcmds |
---|
58 | TMPINSTALL_FILES += $(PROJECT_LIB)/linkcmds |
---|
59 | |
---|
60 | CLEANFILES = $(TMPINSTALL_FILES) |
---|
61 | |
---|
62 | include $(top_srcdir)/../../../../automake/local.am |
---|