1 | ## |
---|
2 | ## $Id$ |
---|
3 | ## |
---|
4 | |
---|
5 | VPATH = @srcdir@:@srcdir@/../../shared:@srcdir@/../../../shared |
---|
6 | |
---|
7 | PGM = $(ARCH)/startup.rel |
---|
8 | |
---|
9 | C_FILES = bspclean.c bsplibc.c bsppost.c m68kpretaskinghook.c bspstart.c \ |
---|
10 | init5206e.c bootcard.c main.c sbrk.c setvec.c gnatinstallhandler.c |
---|
11 | C_O_FILES = $(C_FILES:%.c=$(ARCH)/%.$(OBJEXT)) |
---|
12 | |
---|
13 | OBJS = $(C_O_FILES) |
---|
14 | |
---|
15 | include $(top_srcdir)/../../../../automake/compile.am |
---|
16 | include $(top_srcdir)/../../../../automake/lib.am |
---|
17 | |
---|
18 | # |
---|
19 | # (OPTIONAL) Add local stuff here using += |
---|
20 | # |
---|
21 | |
---|
22 | $(PGM): $(OBJS) |
---|
23 | $(make-rel) |
---|
24 | |
---|
25 | project_lib_DATA = linkcmds gdbinit linkcmds.flash |
---|
26 | |
---|
27 | # the .rel file built here will be put into libbsp.a by ../wrapup/Makefile |
---|
28 | |
---|
29 | all-local: $(PGM) $(TMPINSTALL_FILES) |
---|
30 | |
---|
31 | EXTRA_DIST = bspclean.c bspstart.c init5206e.c linkcmds linkcmds.flash \ |
---|
32 | gdbinit |
---|
33 | |
---|
34 | $(PROJECT_LIB)/$(dirstamp): |
---|
35 | @$(mkdir_p) $(PROJECT_LIB) |
---|
36 | @: > $(PROJECT_LIB)/$(dirstamp) |
---|
37 | |
---|
38 | $(PROJECT_LIB)/linkcmds: linkcmds $(PROJECT_LIB)/$(dirstamp) |
---|
39 | $(INSTALL_DATA) $< $(PROJECT_LIB)/linkcmds |
---|
40 | TMPINSTALL_FILES += $(PROJECT_LIB)/linkcmds |
---|
41 | |
---|
42 | $(PROJECT_LIB)/gdbinit: gdbinit $(PROJECT_LIB)/$(dirstamp) |
---|
43 | $(INSTALL_DATA) $< $(PROJECT_LIB)/gdbinit |
---|
44 | TMPINSTALL_FILES += $(PROJECT_LIB)/gdbinit |
---|
45 | |
---|
46 | $(PROJECT_LIB)/linkcmds.flash: linkcmds.flash $(PROJECT_LIB)/$(dirstamp) |
---|
47 | $(INSTALL_DATA) $< $(PROJECT_LIB)/linkcmds.flash |
---|
48 | TMPINSTALL_FILES += $(PROJECT_LIB)/linkcmds.flash |
---|
49 | |
---|
50 | include $(top_srcdir)/../../../../automake/local.am |
---|