1 | ## |
---|
2 | ## $Id$ |
---|
3 | ## |
---|
4 | |
---|
5 | ACLOCAL_AMFLAGS = -I ../aclocal |
---|
6 | |
---|
7 | include $(top_srcdir)/../automake/compile.am |
---|
8 | include $(top_srcdir)/../automake/lib.am |
---|
9 | |
---|
10 | include_rtems__dir = $(includedir)/rtems++ |
---|
11 | |
---|
12 | $(PROJECT_INCLUDE)/%.h: include/%.h |
---|
13 | $(INSTALL_DATA) $< $@ |
---|
14 | |
---|
15 | $(PROJECT_INCLUDE)/rtems++: |
---|
16 | @$(mkinstalldirs) $@ |
---|
17 | |
---|
18 | if HAS_CXX |
---|
19 | include_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 | |
---|
24 | PREINSTALL_FILES = $(PROJECT_INCLUDE)/rtems++ \ |
---|
25 | $(include_rtems___HEADERS:include/%=$(PROJECT_INCLUDE)/%) |
---|
26 | |
---|
27 | endif |
---|
28 | |
---|
29 | LIB = ${ARCH}/librtems++$(LIB_VARIANT).a |
---|
30 | |
---|
31 | CC_FILES = src/rtemsEvent.cc src/rtemsInterrupt.cc src/rtemsMessageQueue.cc \ |
---|
32 | src/rtemsSemaphore.cc src/rtemsStatusCode.cc src/rtemsTask.cc src/rtemsTimer.cc |
---|
33 | OBJS = $(CC_FILES:src/%.cc=${ARCH}/%.$(OBJEXT)) |
---|
34 | |
---|
35 | TMPINSTALL_FILES += $(PROJECT_RELEASE)/lib/librtems++$(LIB_VARIANT).a |
---|
36 | |
---|
37 | install-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 | |
---|
51 | all-local: $(PREINSTALL_FILES) $(TMPINSTALL_FILES) |
---|
52 | |
---|
53 | include $(top_srcdir)/../automake/local.am |
---|