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

4.104.114.84.95
Last change on this file since 2dbcee8 was 2dbcee8, checked in by Ralf Corsepius <ralf.corsepius@…>, on 01/15/04 at 03:31:26

2004-01-15 Ralf Corsepius <corsepiu@…>

  • configure.ac: Add subdir-objects to AUTOMAKE_OPTIONS
  • Makefile.am: Use automake-compilation rules.
  • Property mode set to 100644
File size: 3.7 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
10EXTRA_LIBRARIES =
11CLEANFILES =
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
22EXTRA_LIBRARIES += librtems++.a
23CLEANFILES += librtems++.a
24librtems___a_SOURCES = src/rtemsEvent.cc src/rtemsInterrupt.cc \
25    src/rtemsMessageQueue.cc src/rtemsSemaphore.cc src/rtemsStatusCode.cc \
26    src/rtemsTask.cc src/rtemsTimer.cc
27librtems___a_CPPFLAGS = $(AM_CPPFLAGS) $(CFLAGS_OPTIMIZE_V)
28
29EXTRA_LIBRARIES += librtems++_g.a
30CLEANFILES += librtems++_g.a
31librtems___g_a_SOURCES = $(librtems___a_SOURCES)
32librtems___g_a_CPPFLAGS = $(AM_CPPFLAGS) $(CFLAGS_DEBUG_V)
33
34project_lib_DATA = librtems++$(LIB_VARIANT).a
35endif
36
37all-local: $(PREINSTALL_FILES) $(TMPINSTALL_FILES)
38
39PREINSTALL_FILES =
40TMPINSTALL_FILES =
41
42$(PROJECT_LIB)/$(dirstamp):
43        @$(mkdir_p) $(PROJECT_LIB)
44        @: > $(PROJECT_LIB)/$(dirstamp)
45TMPINSTALL_FILES += $(PROJECT_LIB)/$(dirstamp)
46
47if HAS_CXX
48$(PROJECT_INCLUDE)/rtems++/$(dirstamp):
49        @$(mkdir_p) $(PROJECT_INCLUDE)/rtems++
50        @: > $(PROJECT_INCLUDE)/rtems++/$(dirstamp)
51PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems++/$(dirstamp)
52
53$(PROJECT_INCLUDE)/rtems++/rtemsEvent.h: include/rtems++/rtemsEvent.h $(PROJECT_INCLUDE)/rtems++/$(dirstamp)
54        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rtems++/rtemsEvent.h
55PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems++/rtemsEvent.h
56
57$(PROJECT_INCLUDE)/rtems++/rtemsInterrupt.h: include/rtems++/rtemsInterrupt.h $(PROJECT_INCLUDE)/rtems++/$(dirstamp)
58        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rtems++/rtemsInterrupt.h
59PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems++/rtemsInterrupt.h
60
61$(PROJECT_INCLUDE)/rtems++/rtemsMessageQueue.h: include/rtems++/rtemsMessageQueue.h $(PROJECT_INCLUDE)/rtems++/$(dirstamp)
62        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rtems++/rtemsMessageQueue.h
63PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems++/rtemsMessageQueue.h
64
65$(PROJECT_INCLUDE)/rtems++/rtemsSemaphore.h: include/rtems++/rtemsSemaphore.h $(PROJECT_INCLUDE)/rtems++/$(dirstamp)
66        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rtems++/rtemsSemaphore.h
67PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems++/rtemsSemaphore.h
68
69$(PROJECT_INCLUDE)/rtems++/rtemsStatusCode.h: include/rtems++/rtemsStatusCode.h $(PROJECT_INCLUDE)/rtems++/$(dirstamp)
70        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rtems++/rtemsStatusCode.h
71PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems++/rtemsStatusCode.h
72
73$(PROJECT_INCLUDE)/rtems++/rtemsTask.h: include/rtems++/rtemsTask.h $(PROJECT_INCLUDE)/rtems++/$(dirstamp)
74        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rtems++/rtemsTask.h
75PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems++/rtemsTask.h
76
77$(PROJECT_INCLUDE)/rtems++/rtemsTaskMode.h: include/rtems++/rtemsTaskMode.h $(PROJECT_INCLUDE)/rtems++/$(dirstamp)
78        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rtems++/rtemsTaskMode.h
79PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems++/rtemsTaskMode.h
80
81$(PROJECT_INCLUDE)/rtems++/rtemsTimer.h: include/rtems++/rtemsTimer.h $(PROJECT_INCLUDE)/rtems++/$(dirstamp)
82        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rtems++/rtemsTimer.h
83PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems++/rtemsTimer.h
84
85$(PROJECT_LIB)/librtems++$(LIB_VARIANT).a: librtems++$(LIB_VARIANT).a $(PROJECT_LIB)/$(dirstamp)
86        $(INSTALL_DATA) $< $(PROJECT_LIB)/librtems++$(LIB_VARIANT).a
87TMPINSTALL_FILES += $(PROJECT_LIB)/librtems++$(LIB_VARIANT).a
88endif
89
90CLEANFILES += $(PREINSTALL_FILES)
91CLEANFILES += $(TMPINSTALL_FILES)
92
93include $(top_srcdir)/../automake/local.am
Note: See TracBrowser for help on using the repository browser.