source: rtems/cpukit/sapi/Makefile.am @ d2c26e4b

4.104.114.84.9
Last change on this file since d2c26e4b was d2c26e4b, checked in by Ralf Corsepius <ralf.corsepius@…>, on Mar 11, 2003 at 8:10:00 AM

Merger from rtems-4-6-branch.

  • Property mode set to 100644
File size: 1.9 KB
Line 
1##
2## $Id$
3##
4
5include $(top_srcdir)/automake/multilib.am
6include $(top_srcdir)/automake/compile.am
7include $(top_srcdir)/automake/lib.am
8
9$(PROJECT_INCLUDE):
10        @$(mkinstalldirs) $@
11$(PROJECT_INCLUDE)/rtems:
12        @$(mkinstalldirs) $@
13
14$(PROJECT_INCLUDE)/%.h: include/%.h
15        $(INSTALL_DATA) $< $@
16$(PROJECT_INCLUDE)/%.inl: $(INLINEdir)/%.inl
17        $(INSTALL_DATA) $< $@
18
19include_HEADERS = include/confdefs.h
20
21PREINSTALL_FILES = $(PROJECT_INCLUDE)
22PREINSTALL_FILES += $(include_HEADERS:include/%=$(PROJECT_INCLUDE)/%)
23
24include_rtemsdir = $(includedir)/rtems
25PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems
26
27include_rtems_HEADERS = include/rtems/config.h include/rtems/extension.h \
28    include/rtems/fatal.h \
29    include/rtems/init.h include/rtems/io.h include/rtems/mptables.h \
30    include/rtems/sptables.h
31
32PREINSTALL_FILES += $(include_rtems_HEADERS:include/%=$(PROJECT_INCLUDE)/%)
33
34EXTRA_DIST = include/rtems/README
35
36## inline
37
38inline_H_FILES = inline/rtems/extension.inl
39noinst_HEADERS = $(inline_H_FILES)
40
41if INLINE
42PREINSTALL_FILES += $(inline_H_FILES:inline/%=$(PROJECT_INCLUDE)/%)
43include_rtems_HEADERS += $(inline_H_FILES)
44endif
45
46## macros
47macros_H_FILES = macros/rtems/extension.inl
48noinst_HEADERS += $(macros_H_FILES)
49
50if MACROS
51PREINSTALL_FILES += $(macros_H_FILES:macros/%=$(PROJECT_INCLUDE)/%)
52include_rtems_HEADERS += $(macros_H_FILES)
53endif
54
55## src
56
57LIB=$(ARCH)/libsapi.a
58
59EXTENSION_FILES = src/extension.c src/extensioncreate.c src/extensiondelete.c \
60    src/extensionident.c
61C_FILES = src/debug.c $(EXTENSION_FILES) src/fatal.c src/exinit.c src/io.c \
62    src/itronapi.c src/posixapi.c src/rtemsapi.c
63OBJS = $(C_FILES:src/%.c=${ARCH}/%.$(OBJEXT))
64
65#
66# Add local stuff here using +=
67#
68
69AM_CPPFLAGS += -D__RTEMS_INSIDE__
70
71all-local: $(PREINSTALL_FILES) ${ARCH} $(LIB)
72
73$(LIB): ${OBJS}
74        $(make-library)
75
76${ARCH}/%.$(OBJEXT): src/%.c
77        ${COMPILE} -o $@ -c $<
78
79EXTRA_DIST += $(C_FILES)
80
81include $(top_srcdir)/automake/local.am
Note: See TracBrowser for help on using the repository browser.