source: rtems/cpukit/sapi/Makefile.am @ 53a8958

4.104.114.84.9
Last change on this file since 53a8958 was 53a8958, checked in by Ralf Corsepius <ralf.corsepius@…>, on Dec 12, 2003 at 1:39:43 PM

2003-12-12 Ralf Corsepius <corsepiu@…>

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