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

4.104.114.84.95
Last change on this file since cd05d03 was cd05d03, checked in by Ralf Corsepius <ralf.corsepius@…>, on 12/11/03 at 06:43:46

2003-12-11 Ralf Corsepius <corsepiu@…>

  • Makefile.am: Add dirstamp support.
  • Property mode set to 100644
File size: 3.3 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
10${ARCH}/%.o: src/%.cc $(ARCH)/$(dirstamp)
11        ${CXXCOMPILE} -o $@ -c $<
12
13if HAS_CXX
14include_rtems__dir = $(includedir)/rtems++
15
16include_rtems___HEADERS = include/rtems++/rtemsEvent.h \
17    include/rtems++/rtemsInterrupt.h include/rtems++/rtemsMessageQueue.h \
18    include/rtems++/rtemsSemaphore.h include/rtems++/rtemsStatusCode.h \
19    include/rtems++/rtemsTask.h include/rtems++/rtemsTaskMode.h \
20    include/rtems++/rtemsTimer.h
21
22CC_FILES = src/rtemsEvent.cc src/rtemsInterrupt.cc src/rtemsMessageQueue.cc \
23    src/rtemsSemaphore.cc src/rtemsStatusCode.cc src/rtemsTask.cc \
24    src/rtemsTimer.cc
25OBJS = $(CC_FILES:src/%.cc=${ARCH}/%.$(OBJEXT))
26
27$(ARCH)/librtems++$(LIB_VARIANT).a: $(OBJS)
28        $(make-library)
29
30project_lib_DATA = $(ARCH)/librtems++$(LIB_VARIANT).a
31endif
32
33all-local: $(PREINSTALL_FILES) $(TMPINSTALL_FILES)
34
35PREINSTALL_FILES =
36
37if HAS_CXX
38$(PROJECT_INCLUDE)/rtems++/$(dirstamp):
39        @$(mkinstalldirs) $(PROJECT_INCLUDE)/rtems++
40        @: > $(PROJECT_INCLUDE)/rtems++/$(dirstamp)
41PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems++/$(dirstamp)
42
43$(PROJECT_INCLUDE)/rtems++/rtemsEvent.h: include/rtems++/rtemsEvent.h $(PROJECT_INCLUDE)/rtems++/$(dirstamp)
44        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rtems++/rtemsEvent.h
45PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems++/rtemsEvent.h
46
47$(PROJECT_INCLUDE)/rtems++/rtemsInterrupt.h: include/rtems++/rtemsInterrupt.h $(PROJECT_INCLUDE)/rtems++/$(dirstamp)
48        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rtems++/rtemsInterrupt.h
49PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems++/rtemsInterrupt.h
50
51$(PROJECT_INCLUDE)/rtems++/rtemsMessageQueue.h: include/rtems++/rtemsMessageQueue.h $(PROJECT_INCLUDE)/rtems++/$(dirstamp)
52        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rtems++/rtemsMessageQueue.h
53PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems++/rtemsMessageQueue.h
54
55$(PROJECT_INCLUDE)/rtems++/rtemsSemaphore.h: include/rtems++/rtemsSemaphore.h $(PROJECT_INCLUDE)/rtems++/$(dirstamp)
56        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rtems++/rtemsSemaphore.h
57PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems++/rtemsSemaphore.h
58
59$(PROJECT_INCLUDE)/rtems++/rtemsStatusCode.h: include/rtems++/rtemsStatusCode.h $(PROJECT_INCLUDE)/rtems++/$(dirstamp)
60        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rtems++/rtemsStatusCode.h
61PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems++/rtemsStatusCode.h
62
63$(PROJECT_INCLUDE)/rtems++/rtemsTask.h: include/rtems++/rtemsTask.h $(PROJECT_INCLUDE)/rtems++/$(dirstamp)
64        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rtems++/rtemsTask.h
65PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems++/rtemsTask.h
66
67$(PROJECT_INCLUDE)/rtems++/rtemsTaskMode.h: include/rtems++/rtemsTaskMode.h $(PROJECT_INCLUDE)/rtems++/$(dirstamp)
68        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rtems++/rtemsTaskMode.h
69PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems++/rtemsTaskMode.h
70
71$(PROJECT_INCLUDE)/rtems++/rtemsTimer.h: include/rtems++/rtemsTimer.h $(PROJECT_INCLUDE)/rtems++/$(dirstamp)
72        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rtems++/rtemsTimer.h
73PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems++/rtemsTimer.h
74
75${PROJECT_RELEASE}/lib/librtems++$(LIB_VARIANT).a: $(ARCH)/librtems++$(LIB_VARIANT).a ${PROJECT_RELEASE}/lib/$(dirstamp)
76        $(INSTALL_DATA) $< ${PROJECT_RELEASE}/lib/librtems++$(LIB_VARIANT).a
77TMPINSTALL_FILES += ${PROJECT_RELEASE}/lib/librtems++$(LIB_VARIANT).a
78endif
79
80include $(top_srcdir)/../automake/local.am
Note: See TracBrowser for help on using the repository browser.