blob: 8ad30339d9932288697fb34a93f359565fbeb3b2 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
|
##
## $Id$
##
include $(top_srcdir)/automake/multilib.am
include $(top_srcdir)/automake/compile.am
include $(top_srcdir)/automake/lib.am
include_HEADERS = include/confdefs.h
include_rtemsdir = $(includedir)/rtems
include_rtems_HEADERS = include/rtems/config.h include/rtems/extension.h \
include/rtems/fatal.h include/rtems/init.h include/rtems/io.h \
include/rtems/mptables.h include/rtems/sptables.h
EXTRA_DIST = include/rtems/README
## inline
if INLINE
include_rtems_HEADERS += inline/rtems/extension.inl
endif
## macros
if MACROS
include_rtems_HEADERS += macros/rtems/extension.inl
endif
## src
LIB=$(ARCH)/libsapi.a
EXTENSION_FILES = src/extension.c src/extensioncreate.c \
src/extensiondelete.c src/extensionident.c
C_FILES = src/debug.c $(EXTENSION_FILES) src/fatal.c src/exinit.c src/io.c \
src/itronapi.c src/posixapi.c src/rtemsapi.c
OBJS = $(C_FILES:src/%.c=${ARCH}/%.$(OBJEXT))
#
# Add local stuff here using +=
#
AM_CPPFLAGS += -D__RTEMS_INSIDE__
all-local: $(PREINSTALL_FILES) ${ARCH} $(LIB)
$(LIB): ${OBJS}
$(make-library)
${ARCH}/%.$(OBJEXT): src/%.c
${COMPILE} -o $@ -c $<
EXTRA_DIST += $(C_FILES)
PREINSTALL_FILES =
$(PROJECT_INCLUDE)/confdefs.h: include/confdefs.h
$(INSTALL_DATA) $< $@
PREINSTALL_FILES += $(PROJECT_INCLUDE)/confdefs.h
$(PROJECT_INCLUDE)/rtems:
@$(mkinstalldirs) $(PROJECT_INCLUDE)/rtems
PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems
$(PROJECT_INCLUDE)/rtems/config.h: include/rtems/config.h
$(INSTALL_DATA) $< $@
PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/config.h
$(PROJECT_INCLUDE)/rtems/extension.h: include/rtems/extension.h
$(INSTALL_DATA) $< $@
PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/extension.h
$(PROJECT_INCLUDE)/rtems/fatal.h: include/rtems/fatal.h
$(INSTALL_DATA) $< $@
PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/fatal.h
$(PROJECT_INCLUDE)/rtems/init.h: include/rtems/init.h
$(INSTALL_DATA) $< $@
PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/init.h
$(PROJECT_INCLUDE)/rtems/io.h: include/rtems/io.h
$(INSTALL_DATA) $< $@
PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/io.h
$(PROJECT_INCLUDE)/rtems/mptables.h: include/rtems/mptables.h
$(INSTALL_DATA) $< $@
PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/mptables.h
$(PROJECT_INCLUDE)/rtems/sptables.h: include/rtems/sptables.h
$(INSTALL_DATA) $< $@
PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/sptables.h
if INLINE
$(PROJECT_INCLUDE)/rtems/extension.inl: inline/rtems/extension.inl
$(INSTALL_DATA) $< $@
PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/extension.inl
endif
if MACROS
$(PROJECT_INCLUDE)/rtems/extension.inl: macros/rtems/extension.inl
$(INSTALL_DATA) $< $@
PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/extension.inl
endif
include $(top_srcdir)/automake/local.am
|