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