source: rtems/c/src/librtems++/Makefile.am @ b3ceb897

Last change on this file since b3ceb897 was b3ceb897, checked in by Ralf Corsepius <ralf.corsepius@…>, on 03/04/03 at 17:12:06

2003-03-04 Ralf Corsepius <corsepiu@…>

  • Makefile.am: Build librtems++$(LIB_VARIANT).a
  • Property mode set to 100644
File size: 1.5 KB
Line 
1##
2## $Id$
3##
4
5ACLOCAL_AMFLAGS = -I ../../../aclocal
6
7include $(top_srcdir)/../../../automake/compile.am
8include $(top_srcdir)/../../../automake/lib.am
9
10include_rtems__dir = $(includedir)/rtems++
11
12$(PROJECT_INCLUDE)/%.h: include/%.h
13        $(INSTALL_DATA) $< $@
14
15$(PROJECT_INCLUDE)/rtems++:
16        @$(mkinstalldirs) $@
17
18if HAS_CXX
19include_rtems___HEADERS = include/rtems++/rtemsEvent.h \
20    include/rtems++/rtemsInterrupt.h include/rtems++/rtemsMessageQueue.h include/rtems++/rtemsSemaphore.h \
21    include/rtems++/rtemsStatusCode.h include/rtems++/rtemsTask.h include/rtems++/rtemsTaskMode.h \
22    include/rtems++/rtemsTimer.h
23
24PREINSTALL_FILES = $(PROJECT_INCLUDE)/rtems++ \
25    $(include_rtems___HEADERS:include/%=$(PROJECT_INCLUDE)/%)
26
27endif
28
29LIB = ${ARCH}/librtems++$(LIB_VARIANT).a
30
31CC_FILES = src/rtemsEvent.cc src/rtemsInterrupt.cc src/rtemsMessageQueue.cc \
32    src/rtemsSemaphore.cc src/rtemsStatusCode.cc src/rtemsTask.cc src/rtemsTimer.cc
33OBJS = $(CC_FILES:src/%.cc=${ARCH}/%.$(OBJEXT))
34
35TMPINSTALL_FILES += $(PROJECT_RELEASE)/lib/librtems++$(LIB_VARIANT).a
36
37install-data-local: $(LIB)
38        @$(mkinstalldirs) $(DESTDIR)$(bsplibdir)
39        $(INSTALL_DATA) $(LIB) $(DESTDIR)$(bsplibdir)
40
41${ARCH}/%.o: src/%.cc
42        test -d $(ARCH) || mkdir $(ARCH)
43        ${CXXCOMPILE} -o $@ -c $<
44
45$(LIB): $(OBJS)
46        $(make-library)
47
48$(PROJECT_RELEASE)/lib/librtems++$(LIB_VARIANT).a: $(LIB)
49        $(INSTALL_DATA) $< $@
50
51all-local: ${ARCH} $(PREINSTALL_FILES) $(TMPINSTALL_FILES)
52
53include $(top_srcdir)/../../../automake/local.am
Note: See TracBrowser for help on using the repository browser.