1 | ## |
---|
2 | ## $Id$ |
---|
3 | ## |
---|
4 | |
---|
5 | ACLOCAL_AMFLAGS = -I ../../../../aclocal |
---|
6 | |
---|
7 | # wrapup is the one that actually builds and installs the library |
---|
8 | # from the individual .rel files built in other directories |
---|
9 | SUBDIRS = . tools |
---|
10 | |
---|
11 | include $(top_srcdir)/../../../../automake/compile.am |
---|
12 | include $(top_srcdir)/../../bsp.am |
---|
13 | |
---|
14 | EXTRA_PROGRAMS = |
---|
15 | CLEANFILES = |
---|
16 | noinst_DATA = |
---|
17 | |
---|
18 | include_HEADERS += include/simio.h |
---|
19 | nodist_include_HEADERS += ../../shared/include/coverhd.h |
---|
20 | |
---|
21 | EXTRA_DIST = start/start.S |
---|
22 | start$(LIB_VARIANT).$(OBJEXT): start/start.S |
---|
23 | ${CCASCOMPILE} -DASM -o $@ -c $< |
---|
24 | project_lib_DATA = start$(LIB_VARIANT).$(OBJEXT) |
---|
25 | |
---|
26 | dist_project_lib_DATA += startup/linkcmds |
---|
27 | |
---|
28 | EXTRA_PROGRAMS += startup.rel |
---|
29 | CLEANFILES += startup.rel |
---|
30 | startup_rel_SOURCES = ../../shared/bspclean.c ../../shared/bsplibc.c \ |
---|
31 | ../../shared/bsppost.c startup/bspstart.c ../../shared/main.c \ |
---|
32 | ../../shared/bootcard.c ../../shared/sbrk.c ../../shared/setvec.c \ |
---|
33 | ../shared/c3xspurious.c ../shared/c4xspurious.c \ |
---|
34 | ../shared/bspspuriousinit.c startup/spurious.c \ |
---|
35 | ../../shared/gnatinstallhandler.c |
---|
36 | startup_rel_CPPFLAGS = $(AM_CPPFLAGS) $(CFLAGS_OPTIMIZE_V) |
---|
37 | startup_rel_LDFLAGS = $(RTEMS_RELLDFLAGS) |
---|
38 | |
---|
39 | EXTRA_PROGRAMS += startup_g.rel |
---|
40 | CLEANFILES += startup_g.rel |
---|
41 | startup_g_rel_SOURCES = $(startup_rel_SOURCES) |
---|
42 | startup_g_rel_CPPFLAGS = $(AM_CPPFLAGS) $(CFLAGS_DEBUG_V) |
---|
43 | startup_g_rel_LDFLAGS = $(RTEMS_RELLDFLAGS) |
---|
44 | |
---|
45 | noinst_DATA += startup$(LIB_VARIANT).rel |
---|
46 | |
---|
47 | EXTRA_PROGRAMS += console.rel |
---|
48 | CLEANFILES += console.rel |
---|
49 | console_rel_SOURCES = console/consolereserveresources.c console/debugio.c \ |
---|
50 | console/simio.c ../../shared/console.c |
---|
51 | console_rel_CPPFLAGS = $(AM_CPPFLAGS) $(CFLAGS_OPTIMIZE_V) |
---|
52 | console_rel_LDFLAGS = $(RTEMS_RELLDFLAGS) |
---|
53 | |
---|
54 | EXTRA_PROGRAMS += console_g.rel |
---|
55 | CLEANFILES += console_g.rel |
---|
56 | console_g_rel_SOURCES = $(console_rel_SOURCES) |
---|
57 | console_g_rel_CPPFLAGS = $(AM_CPPFLAGS) $(CFLAGS_DEBUG_V) |
---|
58 | console_g_rel_LDFLAGS = $(RTEMS_RELLDFLAGS) |
---|
59 | |
---|
60 | noinst_DATA += console$(LIB_VARIANT).rel |
---|
61 | |
---|
62 | EXTRA_PROGRAMS += clock.rel |
---|
63 | CLEANFILES += clock.rel |
---|
64 | clock_rel_SOURCES = clock/clock.c |
---|
65 | clock_rel_CPPFLAGS = $(AM_CPPFLAGS) $(CFLAGS_OPTIMIZE_V) |
---|
66 | clock_rel_LDFLAGS = $(RTEMS_RELLDFLAGS) |
---|
67 | |
---|
68 | EXTRA_PROGRAMS += clock_g.rel |
---|
69 | CLEANFILES += clock_g.rel |
---|
70 | clock_g_rel_SOURCES = $(clock_rel_SOURCES) |
---|
71 | clock_g_rel_CPPFLAGS = $(AM_CPPFLAGS) $(CFLAGS_DEBUG_V) |
---|
72 | clock_g_rel_LDFLAGS = $(RTEMS_RELLDFLAGS) |
---|
73 | |
---|
74 | noinst_DATA += clock$(LIB_VARIANT).rel |
---|
75 | |
---|
76 | EXTRA_PROGRAMS += timer.rel |
---|
77 | CLEANFILES += timer.rel |
---|
78 | timer_rel_SOURCES = timer/timer.c |
---|
79 | timer_rel_CPPFLAGS = $(AM_CPPFLAGS) $(CFLAGS_OPTIMIZE_V) |
---|
80 | timer_rel_LDFLAGS = $(RTEMS_RELLDFLAGS) |
---|
81 | |
---|
82 | EXTRA_PROGRAMS += timer_g.rel |
---|
83 | CLEANFILES += timer_g.rel |
---|
84 | timer_g_rel_SOURCES = $(timer_rel_SOURCES) |
---|
85 | timer_g_rel_CPPFLAGS = $(AM_CPPFLAGS) $(CFLAGS_DEBUG_V) |
---|
86 | timer_g_rel_LDFLAGS = $(RTEMS_RELLDFLAGS) |
---|
87 | |
---|
88 | noinst_DATA += timer$(LIB_VARIANT).rel |
---|
89 | |
---|
90 | EXTRA_LIBRARIES = libbsp.a |
---|
91 | CLEANFILES += libbsp.a |
---|
92 | libbsp_a_SOURCES = |
---|
93 | libbsp_a_LIBADD = startup$(LIB_VARIANT).rel console$(LIB_VARIANT).rel \ |
---|
94 | clock$(LIB_VARIANT).rel timer$(LIB_VARIANT).rel |
---|
95 | |
---|
96 | EXTRA_LIBRARIES += libbsp_g.a |
---|
97 | CLEANFILES += libbsp_g.a |
---|
98 | libbsp_g_a_SOURCES = $(libbsp_a_SOURCES) |
---|
99 | libbsp_g_a_LIBADD = $(libbsp_a_LIBADD) |
---|
100 | |
---|
101 | noinst_DATA += libbsp$(LIB_VARIANT).a |
---|
102 | |
---|
103 | all-local: $(PREINSTALL_FILES) $(TMPINSTALL_FILES) |
---|
104 | |
---|
105 | EXTRA_DIST += times |
---|
106 | |
---|
107 | PREINSTALL_DIRS = |
---|
108 | TMPINSTALL_FILES = |
---|
109 | |
---|
110 | $(PROJECT_INCLUDE)/simio.h: include/simio.h $(PROJECT_INCLUDE)/$(dirstamp) |
---|
111 | $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/simio.h |
---|
112 | PREINSTALL_FILES += $(PROJECT_INCLUDE)/simio.h |
---|
113 | |
---|
114 | $(PROJECT_INCLUDE)/coverhd.h: ../../shared/include/coverhd.h $(PROJECT_INCLUDE)/$(dirstamp) |
---|
115 | $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/coverhd.h |
---|
116 | PREINSTALL_FILES += $(PROJECT_INCLUDE)/coverhd.h |
---|
117 | |
---|
118 | $(PROJECT_LIB)/start$(LIB_VARIANT).$(OBJEXT): start$(LIB_VARIANT).$(OBJEXT) $(PROJECT_LIB)/$(dirstamp) |
---|
119 | $(INSTALL_DATA) $< $(PROJECT_LIB)/start$(LIB_VARIANT).$(OBJEXT) |
---|
120 | TMPINSTALL_FILES += $(PROJECT_LIB)/start$(LIB_VARIANT).$(OBJEXT) |
---|
121 | |
---|
122 | $(PROJECT_LIB)/linkcmds: startup/linkcmds $(PROJECT_LIB)/$(dirstamp) |
---|
123 | $(INSTALL_DATA) $< $(PROJECT_LIB)/linkcmds |
---|
124 | TMPINSTALL_FILES += $(PROJECT_LIB)/linkcmds |
---|
125 | |
---|
126 | CLEANFILES += $(PREINSTALL_FILES) |
---|
127 | DISTCLEANFILES = $(PREINSTALL_DIRS) |
---|
128 | CLEANFILES += $(TMPINSTALL_FILES) |
---|
129 | |
---|
130 | include $(top_srcdir)/../../../../automake/local.am |
---|