1 | ## |
---|
2 | ## $Id$ |
---|
3 | ## |
---|
4 | |
---|
5 | ACLOCAL_AMFLAGS = -I ../../../../aclocal |
---|
6 | |
---|
7 | EXEEXT = |
---|
8 | |
---|
9 | # wrapup is the one that actually builds and installs the library |
---|
10 | # from the individual .rel files built in other directories |
---|
11 | SUBDIRS = . tools |
---|
12 | |
---|
13 | include $(top_srcdir)/../../../../automake/compile.am |
---|
14 | include $(top_srcdir)/../../bsp.am |
---|
15 | |
---|
16 | dist_project_lib_DATA = bsp_specs |
---|
17 | |
---|
18 | include_HEADERS = include/bsp.h |
---|
19 | include_HEADERS += include/tm27.h |
---|
20 | |
---|
21 | nodist_include_HEADERS = include/bspopts.h |
---|
22 | DISTCLEANFILES = include/bspopts.h |
---|
23 | CLEANFILES = |
---|
24 | noinst_PROGRAMS = |
---|
25 | |
---|
26 | nodist_include_HEADERS += ../../shared/include/coverhd.h |
---|
27 | |
---|
28 | project_lib_DATA = |
---|
29 | noinst_LIBRARIES = |
---|
30 | if HAS_CXX |
---|
31 | noinst_LIBRARIES += librtemscxx.a |
---|
32 | |
---|
33 | librtemscxx_a_SOURCES = startup/no-ctor.c |
---|
34 | |
---|
35 | # Install as a separate .$(OBJEXT) |
---|
36 | project_lib_DATA += no-ctor.$(OBJEXT) |
---|
37 | |
---|
38 | # We install the RTEMS constructor as a separate .$(OBJEXT) |
---|
39 | # so it can be easily place correctly by the compiler config file. |
---|
40 | project_lib_DATA += rtems-ctor.$(OBJEXT) |
---|
41 | endif |
---|
42 | |
---|
43 | noinst_PROGRAMS += startup.rel |
---|
44 | startup_rel_SOURCES = startup/bspclean.c ../../shared/bsplibc.c \ |
---|
45 | startup/bspstart.c startup/setvec.c |
---|
46 | if !HAS_CXX |
---|
47 | startup_rel_SOURCES += startup/main.c |
---|
48 | endif |
---|
49 | |
---|
50 | startup_rel_CPPFLAGS = $(AM_CPPFLAGS) |
---|
51 | startup_rel_LDFLAGS = $(RTEMS_RELLDFLAGS) |
---|
52 | |
---|
53 | noinst_PROGRAMS += clock.rel |
---|
54 | clock_rel_SOURCES = clock/clock.c |
---|
55 | clock_rel_CPPFLAGS = $(AM_CPPFLAGS) |
---|
56 | clock_rel_LDFLAGS = $(RTEMS_RELLDFLAGS) |
---|
57 | |
---|
58 | noinst_PROGRAMS += console.rel |
---|
59 | console_rel_SOURCES = console/console.c |
---|
60 | console_rel_CPPFLAGS = $(AM_CPPFLAGS) |
---|
61 | console_rel_LDFLAGS = $(RTEMS_RELLDFLAGS) |
---|
62 | |
---|
63 | noinst_PROGRAMS += timer.rel |
---|
64 | timer_rel_SOURCES = timer/timer.c |
---|
65 | timer_rel_CPPFLAGS = $(AM_CPPFLAGS) |
---|
66 | timer_rel_LDFLAGS = $(RTEMS_RELLDFLAGS) |
---|
67 | |
---|
68 | if HAS_MP |
---|
69 | noinst_PROGRAMS += shmsupp.rel |
---|
70 | shmsupp_rel_SOURCES = shmsupp/addrconv.c shmsupp/getcfg.c \ |
---|
71 | shmsupp/cause_intr.c shmsupp/lock.c shmsupp/mpisr.c |
---|
72 | shmsupp_rel_CPPFLAGS = $(AM_CPPFLAGS) |
---|
73 | shmsupp_rel_LDFLAGS = $(RTEMS_RELLDFLAGS) |
---|
74 | endif |
---|
75 | |
---|
76 | noinst_LIBRARIES += libbsp.a |
---|
77 | libbsp_a_SOURCES = |
---|
78 | if HAS_CXX |
---|
79 | libbsp_a_SOURCES += startup/rtems-ctor.cc |
---|
80 | endif |
---|
81 | libbsp_a_LIBADD = startup.rel clock.rel console.rel timer.rel |
---|
82 | if HAS_MP |
---|
83 | libbsp_a_LIBADD += shmsupp.rel |
---|
84 | endif |
---|
85 | |
---|
86 | all-local: $(PREINSTALL_FILES) $(TMPINSTALL_FILES) |
---|
87 | |
---|
88 | EXTRA_DIST = times |
---|
89 | |
---|
90 | include $(srcdir)/preinstall.am |
---|
91 | include $(top_srcdir)/../../../../automake/local.am |
---|