1 | ## |
---|
2 | ## $Id$ |
---|
3 | ## |
---|
4 | |
---|
5 | PGM = $(ARCH)/startup.rel |
---|
6 | |
---|
7 | # |
---|
8 | # First and second generation used different Bridge chips :( |
---|
9 | # Generation 1 --> 82378zb (now in the CVS Attic) |
---|
10 | # Generation 2 --> FPGA |
---|
11 | STARTUP_C_FILES = FPGA.c |
---|
12 | |
---|
13 | C_FILES = bspclean.c bspstart.c setvec.c Hwr_init.c spurious.c genpvec.c \ |
---|
14 | $(STARTUP_C_FILES) |
---|
15 | OBJS = $(C_FILES:%.c=$(ARCH)/%.$(OBJEXT)) |
---|
16 | |
---|
17 | include $(top_srcdir)/../../../../automake/compile.am |
---|
18 | include $(top_srcdir)/../../../../automake/lib.am |
---|
19 | |
---|
20 | shared_C_FILES = $(top_srcdir)/../../shared/bootcard.c |
---|
21 | shared_C_FILES += $(top_srcdir)/../../shared/bsplibc.c |
---|
22 | shared_C_FILES += $(top_srcdir)/../../shared/bsppost.c |
---|
23 | shared_C_FILES += $(top_srcdir)/../../shared/main.c |
---|
24 | shared_C_FILES += $(top_srcdir)/../../shared/sbrk.c |
---|
25 | shared_C_FILES += $(top_srcdir)/../../shared/gnatinstallhandler.c |
---|
26 | OBJS += \ |
---|
27 | $(shared_C_FILES:$(top_srcdir)/../../shared/%.c=$(ARCH)/%.$(OBJEXT)) |
---|
28 | |
---|
29 | $(ARCH)/%.$(OBJEXT): $(top_srcdir)/../../shared/%.c $(ARCH)/$(dirstamp) |
---|
30 | ${COMPILE} -o $@ -c $< |
---|
31 | |
---|
32 | $(PGM): $(OBJS) |
---|
33 | $(make-rel) |
---|
34 | |
---|
35 | project_lib_DATA = linkcmds |
---|
36 | |
---|
37 | all-local: $(PGM) $(TMPINSTALL_FILES) |
---|
38 | |
---|
39 | EXTRA_DIST = $(C_FILES) linkcmds |
---|
40 | |
---|
41 | $(PROJECT_LIB)/$(dirstamp): |
---|
42 | @$(mkdir_p) $(PROJECT_LIB) |
---|
43 | @: > $(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 | include $(top_srcdir)/../../../../automake/local.am |
---|