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

4.104.114.84.95
Last change on this file since 534987d was 534987d, checked in by Ralf Corsepius <ralf.corsepius@…>, on 01/14/04 at 06:47:28

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

  • Makefile.am: Re-add dirstamps to PRE/TMPINSTALL_FILES. Add PRE/TMPINSTALL_FILES to CLEANFILES.
  • Property mode set to 100644
File size: 3.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
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 =
36TMPINSTALL_FILES =
37
38$(PROJECT_LIB)/$(dirstamp):
39        @$(mkdir_p) $(PROJECT_LIB)
40        @: > $(PROJECT_LIB)/$(dirstamp)
41TMPINSTALL_FILES += $(PROJECT_LIB)/$(dirstamp)
42
43if HAS_CXX
44$(PROJECT_INCLUDE)/rtems++/$(dirstamp):
45        @$(mkdir_p) $(PROJECT_INCLUDE)/rtems++
46        @: > $(PROJECT_INCLUDE)/rtems++/$(dirstamp)
47PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems++/$(dirstamp)
48
49$(PROJECT_INCLUDE)/rtems++/rtemsEvent.h: include/rtems++/rtemsEvent.h $(PROJECT_INCLUDE)/rtems++/$(dirstamp)
50        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rtems++/rtemsEvent.h
51PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems++/rtemsEvent.h
52
53$(PROJECT_INCLUDE)/rtems++/rtemsInterrupt.h: include/rtems++/rtemsInterrupt.h $(PROJECT_INCLUDE)/rtems++/$(dirstamp)
54        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rtems++/rtemsInterrupt.h
55PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems++/rtemsInterrupt.h
56
57$(PROJECT_INCLUDE)/rtems++/rtemsMessageQueue.h: include/rtems++/rtemsMessageQueue.h $(PROJECT_INCLUDE)/rtems++/$(dirstamp)
58        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rtems++/rtemsMessageQueue.h
59PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems++/rtemsMessageQueue.h
60
61$(PROJECT_INCLUDE)/rtems++/rtemsSemaphore.h: include/rtems++/rtemsSemaphore.h $(PROJECT_INCLUDE)/rtems++/$(dirstamp)
62        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rtems++/rtemsSemaphore.h
63PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems++/rtemsSemaphore.h
64
65$(PROJECT_INCLUDE)/rtems++/rtemsStatusCode.h: include/rtems++/rtemsStatusCode.h $(PROJECT_INCLUDE)/rtems++/$(dirstamp)
66        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rtems++/rtemsStatusCode.h
67PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems++/rtemsStatusCode.h
68
69$(PROJECT_INCLUDE)/rtems++/rtemsTask.h: include/rtems++/rtemsTask.h $(PROJECT_INCLUDE)/rtems++/$(dirstamp)
70        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rtems++/rtemsTask.h
71PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems++/rtemsTask.h
72
73$(PROJECT_INCLUDE)/rtems++/rtemsTaskMode.h: include/rtems++/rtemsTaskMode.h $(PROJECT_INCLUDE)/rtems++/$(dirstamp)
74        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rtems++/rtemsTaskMode.h
75PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems++/rtemsTaskMode.h
76
77$(PROJECT_INCLUDE)/rtems++/rtemsTimer.h: include/rtems++/rtemsTimer.h $(PROJECT_INCLUDE)/rtems++/$(dirstamp)
78        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rtems++/rtemsTimer.h
79PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems++/rtemsTimer.h
80
81$(PROJECT_LIB)/librtems++$(LIB_VARIANT).a: $(ARCH)/librtems++$(LIB_VARIANT).a $(PROJECT_LIB)/$(dirstamp)
82        $(INSTALL_DATA) $< $(PROJECT_LIB)/librtems++$(LIB_VARIANT).a
83TMPINSTALL_FILES += $(PROJECT_LIB)/librtems++$(LIB_VARIANT).a
84endif
85
86CLEANFILES = $(PREINSTALL_FILES)
87CLEANFILES += $(TMPINSTALL_FILES)
88
89include $(top_srcdir)/../automake/local.am
Note: See TracBrowser for help on using the repository browser.