Changeset f117cafc in rtems for cpukit/sapi/Makefile.am


Ignore:
Timestamp:
Dec 9, 2002, 7:29:18 AM (17 years ago)
Author:
Ralf Corsepius <ralf.corsepius@…>
Branches:
4.10, 4.11, 4.8, 4.9, master
Children:
25f419e
Parents:
120e9fb
Message:

2002-12-09 Ralf Corsepius <corsepiu@…>

  • include/Makefile.am: Remove.
  • inline/Makefile.am: Remove.
  • macros/Makefile.am: Remove.
  • src/Makefile.am: Remove.
  • Makefile.am: Merge-in removed Makefile.ams.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • cpukit/sapi/Makefile.am

    r120e9fb rf117cafc  
    33##
    44
     5include $(top_srcdir)/automake/multilib.am
     6include $(top_srcdir)/automake/compile.am
     7include $(top_srcdir)/automake/lib.am
    58
    6 SUBDIRS = include inline macros src
     9$(PROJECT_INCLUDE):
     10        @$(mkinstalldirs) $@
     11$(PROJECT_INCLUDE)/rtems:
     12        @$(mkinstalldirs) $@
    713
    8 include $(top_srcdir)/automake/subdirs.am
     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
     36include/rtems/sptables.h: $(top_builddir)/config.status $(top_srcdir)/sapi/include/rtems/sptables.h.in
     37        cd $(top_builddir) && CONFIG_FILES=sapi/$@ CONFIG_HEADERS= CONFIG_LINKS= $(SHELL) ./config.status
     38
     39## inline
     40
     41inline_H_FILES = inline/rtems/extension.inl
     42noinst_HEADERS = $(inline_H_FILES)
     43
     44if INLINE
     45PREINSTALL_FILES += $(inline_H_FILES:inline/%=$(PROJECT_INCLUDE)/%)
     46include_rtems_HEADERS += $(inline_H_FILES)
     47endif
     48
     49## macros
     50macros_H_FILES = macros/rtems/extension.inl
     51noinst_HEADERS += $(macros_H_FILES)
     52
     53if MACROS
     54PREINSTALL_FILES += $(macros_H_FILES:macros/%=$(PROJECT_INCLUDE)/%)
     55include_rtems_HEADERS += $(macros_H_FILES)
     56endif
     57
     58## src
     59
     60LIB=$(ARCH)/libsapi.a
     61
     62EXTENSION_FILES = src/extension.c src/extensioncreate.c src/extensiondelete.c \
     63    src/extensionident.c
     64C_FILES = src/debug.c $(EXTENSION_FILES) src/fatal.c src/exinit.c src/io.c \
     65    src/itronapi.c src/posixapi.c src/rtemsapi.c
     66OBJS = $(C_FILES:src/%.c=${ARCH}/%.$(OBJEXT))
     67
     68#
     69# Add local stuff here using +=
     70#
     71
     72AM_CPPFLAGS += -D__RTEMS_INSIDE__
     73
     74all-local: $(PREINSTALL_FILES) ${ARCH} $(LIB)
     75
     76$(LIB): ${OBJS}
     77        $(make-library)
     78
     79${ARCH}/%.$(OBJEXT): src/%.c
     80        test -d $(ARCH) || mkdir $(ARCH)
     81        ${COMPILE} -o $@ -c $<
     82
     83EXTRA_DIST += $(C_FILES)
     84
    985include $(top_srcdir)/automake/local.am
Note: See TracChangeset for help on using the changeset viewer.