source: rtems/cpukit/sapi/Makefile.am @ 8b273c2

4.104.114.84.9
Last change on this file since 8b273c2 was 8b273c2, checked in by Ralf Corsepius <ralf.corsepius@…>, on Nov 23, 2003 at 10:24:09 AM

2003-11-23 Ralf Corsepius <corsepiu@…>

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