1 | ## |
---|
2 | ## $Id$ |
---|
3 | ## |
---|
4 | |
---|
5 | |
---|
6 | VPATH = @srcdir@:@srcdir@/../../../shared |
---|
7 | |
---|
8 | PGM = $(ARCH)/startup.rel |
---|
9 | |
---|
10 | #C_PIECES = bspclean bsplibc bsppost bspstart bootcard main sbrk setvec \ |
---|
11 | # gnatinstallhandler |
---|
12 | C_FILES = bspclean.c bsplibc.c bsppost.c bspstart.c bootcard.c cntrltbl.c \ |
---|
13 | exit.c fault.c flttbl.c frmstr.c intrtbl.c kkprintf.c main.c nmi.c \ |
---|
14 | nulsystbl.c prcb.c rom_cntrltbl.c rom_ibr.c rom_prcb.c sbrk.c sctns.c \ |
---|
15 | setvec.c systbl.c |
---|
16 | |
---|
17 | noinst_HEADERS = asmfault.h asmstub.h cntrltbl.h fault.h faultret.h flttbl.h \ |
---|
18 | frmstr.h i960.h ihandler.h intrtbl.h main.h memchnl.h pmc901_memmap.h \ |
---|
19 | prcb.h rom_ibr.h rommon.h sctns.h systbl.h time.h |
---|
20 | |
---|
21 | S_FILES = asmfault.S asmstub.S ihandler.S |
---|
22 | |
---|
23 | OBJS = $(C_FILES:%.c=$(ARCH)/%.$(OBJEXT)) $(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 | bsplib_DATA = linkcmds |
---|
36 | |
---|
37 | $(PROJECT_RELEASE)/lib/linkcmds: linkcmds |
---|
38 | $(INSTALL_DATA) $< $@ |
---|
39 | |
---|
40 | # the .rel file built here will be put into libbsp.a by ../wrapup/Makefile |
---|
41 | |
---|
42 | TMPINSTALL_FILES += $(PROJECT_RELEASE)/lib/linkcmds |
---|
43 | |
---|
44 | all-local: $(ARCH) $(OBJS) $(PGM) $(TMPINSTALL_FILES) |
---|
45 | |
---|
46 | .PRECIOUS: $(PGM) |
---|
47 | |
---|
48 | EXTRA_DIST = asmfault.S asmfault.h asmstub.S asmstub.h bspstart.c cntrltbl.c \ |
---|
49 | cntrltbl.h dram.ld exit.c fault.c fault.h faultret.h flttbl.c flttbl.h \ |
---|
50 | frmstr.c frmstr.h i960.h ihandler.S ihandler.h intrtbl.c intrtbl.h \ |
---|
51 | kkprintf.c linkcmds main.h memchnl.h nmi.c nulsystbl.c pmc901_memmap.h \ |
---|
52 | prcb.c prcb.h rom.ld rom_cntrltbl.c rom_ibr.c rom_ibr.h rom_prcb.c \ |
---|
53 | rommon.h rxgen_romld.S sctns.c sctns.h setvec.c systbl.c systbl.h time.h |
---|
54 | |
---|
55 | include $(top_srcdir)/../../../../../../automake/local.am |
---|