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

4.104.114.84.95
Last change on this file since 4735923 was 4735923, checked in by Ralf Corsepius <ralf.corsepius@…>, on Dec 10, 2002 at 1:44:08 AM

2002-12-09 Ralf Corsepius <corsepiu@…>

  • src/Makefile.am: Remove.
  • include/Makefile.am: Remove.
  • Makefile.am: Merge-in src/Makefile.am, include/Makefile.am.
  • configure.ac: Reflect changes above. Unconditionally check for CXX.
  • Property mode set to 100644
File size: 1.4 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++.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
33CC_O_FILES = $(CC_FILES:src/%.cc=${ARCH}/%.$(OBJEXT))
34
35SRCS = $(CC_FILES)
36OBJS = $(CC_O_FILES)
37
38TMPINSTALL_FILES += $(PROJECT_RELEASE)/lib/librtems++$(LIB_VARIANT).a
39
40bsplib_DATA = $(LIB)
41
42${ARCH}/%.o: src/%.cc
43        test -d $(ARCH) || mkdir $(ARCH)
44        ${CXXCOMPILE} -o $@ -c $<
45
46$(LIB): $(OBJS)
47        $(make-library)
48
49$(PROJECT_RELEASE)/lib/librtems++$(LIB_VARIANT).a: $(LIB)
50        $(INSTALL_DATA) $< $@
51
52all-local: ${ARCH} $(PREINSTALL_FILES) $(TMPINSTALL_FILES)
53
54include $(top_srcdir)/../../../automake/local.am
Note: See TracBrowser for help on using the repository browser.