1 | ## |
---|
2 | ## $Id$ |
---|
3 | ## |
---|
4 | |
---|
5 | VPATH = @srcdir@:@srcdir@/../../../shared |
---|
6 | |
---|
7 | PGM = $(ARCH)/startup.rel |
---|
8 | |
---|
9 | C_FILES = bspclean.c bsplibc.c bsppost.c bspstart.c bootcard.c main.c sbrk.c \ |
---|
10 | setvec.c inittlb.c gnatinstallhandler.c |
---|
11 | C_O_FILES = $(C_FILES:%.c=$(ARCH)/%.$(OBJEXT)) |
---|
12 | |
---|
13 | S_FILES = idtmem.S idttlb.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 | |
---|
25 | $(PGM): $(OBJS) |
---|
26 | $(make-rel) |
---|
27 | |
---|
28 | project_lib_DATA = linkcmds ghlinkcmds |
---|
29 | |
---|
30 | # the .rel file built here will be put into libbsp.a by ../wrapup/Makefile |
---|
31 | |
---|
32 | all-local: $(PGM) $(TMPINSTALL_FILES) |
---|
33 | |
---|
34 | EXTRA_DIST = bspclean.c bspstart.c ghlinkcmds idtmem.S idttlb.S inittlb.c \ |
---|
35 | linkcmds setvec.c |
---|
36 | |
---|
37 | $(PROJECT_LIB)/$(dirstamp): |
---|
38 | @$(mkdir_p) $(PROJECT_LIB) |
---|
39 | @: > $(PROJECT_LIB)/$(dirstamp) |
---|
40 | |
---|
41 | $(PROJECT_LIB)/linkcmds: linkcmds $(PROJECT_LIB)/$(dirstamp) |
---|
42 | $(INSTALL_DATA) $< $(PROJECT_LIB)/linkcmds |
---|
43 | TMPINSTALL_FILES += $(PROJECT_LIB)/linkcmds |
---|
44 | |
---|
45 | $(PROJECT_LIB)/ghlinkcmds: ghlinkcmds $(PROJECT_LIB)/$(dirstamp) |
---|
46 | $(INSTALL_DATA) $< $(PROJECT_LIB)/ghlinkcmds |
---|
47 | TMPINSTALL_FILES += $(PROJECT_LIB)/ghlinkcmds |
---|
48 | |
---|
49 | include $(top_srcdir)/../../../../automake/local.am |
---|