source: rtems/c/src/lib/libbsp/unix/posix/Makefile.am @ dec6a8da

4.104.114.84.95
Last change on this file since dec6a8da was dec6a8da, checked in by Ralf Corsepius <ralf.corsepius@…>, on 01/11/06 at 05:19:16

2006-01-11 Ralf Corsepius <ralf.corsepius@…>

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