1 | ## |
---|
2 | ## $Id$ |
---|
3 | ## |
---|
4 | |
---|
5 | VPATH = @srcdir@:@srcdir@/../../../shared |
---|
6 | |
---|
7 | PGM = $(ARCH)/startup.rel |
---|
8 | |
---|
9 | C_FILES = bsplibc.c bsppost.c bspstart.c bootcard.c main.c sbrk.c \ |
---|
10 | gnatinstallhandler.c libcfunc.c syscalls.c |
---|
11 | C_O_FILES = $(C_FILES:%.c=$(ARCH)/%.$(OBJEXT)) |
---|
12 | |
---|
13 | S_FILES = trap.S |
---|
14 | S_O_FILES = $(S_FILES:%.S=$(ARCH)/%.$(OBJEXT)) |
---|
15 | |
---|
16 | OBJS = $(C_O_FILES) $(S_O_FILES) |
---|
17 | |
---|
18 | include $(top_srcdir)/../../../../automake/compile.am |
---|
19 | include $(top_srcdir)/../../../../automake/lib.am |
---|
20 | |
---|
21 | # |
---|
22 | # (OPTIONAL) Add local stuff here using += |
---|
23 | # |
---|
24 | # From newlib |
---|
25 | # Select which debug protocol is being used. |
---|
26 | # ARM_RDP_MONITOR selects the Demon monitor. |
---|
27 | # ARM_RDI_MONITOR selects the Angel monitor. |
---|
28 | # If neither are defined, then hard coded defaults will be used |
---|
29 | # to create the program's environment. |
---|
30 | AM_CPPFLAGS += -DARM_RDI_MONITOR |
---|
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 = bspclean.c bspstart.c exit.c linkcmds setvec.c |
---|
42 | |
---|
43 | $(PROJECT_LIB)/$(dirstamp): |
---|
44 | @$(mkdir_p) $(PROJECT_LIB) |
---|
45 | @: > $(PROJECT_LIB)/$(dirstamp) |
---|
46 | |
---|
47 | $(PROJECT_LIB)/linkcmds: linkcmds $(PROJECT_LIB)/$(dirstamp) |
---|
48 | $(INSTALL_DATA) $< $(PROJECT_LIB)/linkcmds |
---|
49 | TMPINSTALL_FILES += $(PROJECT_LIB)/linkcmds |
---|
50 | |
---|
51 | include $(top_srcdir)/../../../../automake/local.am |
---|