Changeset 07347cb in rtems for cpukit/sapi/Makefile.am


Ignore:
Timestamp:
Jan 7, 2004, 5:48:16 PM (16 years ago)
Author:
Ralf Corsepius <ralf.corsepius@…>
Branches:
4.10, 4.11, 4.8, 4.9, master
Children:
74a67351
Parents:
e7d110ba
Message:

2004-01-07 Ralf Corsepius <corsepiu@…>

  • Makefile.am: Build library using EXTRA_LIBRARIES and automake rules.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • cpukit/sapi/Makefile.am

    re7d110ba r07347cb  
    44
    55include $(top_srcdir)/automake/multilib.am
    6 include $(top_srcdir)/automake/compile.am
    7 include $(top_srcdir)/automake/lib.am
     6include $(top_srcdir)/automake/amcompile.am
    87
    98include_HEADERS = include/confdefs.h
     
    2524## src
    2625
    27 LIB=$(ARCH)/libsapi.a
    28 
    2926EXTENSION_FILES = src/extension.c src/extensioncreate.c \
    3027    src/extensiondelete.c src/extensionident.c
    3128C_FILES = src/debug.c $(EXTENSION_FILES) src/fatal.c src/exinit.c src/io.c \
    3229    src/itronapi.c src/posixapi.c src/rtemsapi.c
    33 OBJS = $(C_FILES:src/%.c=${ARCH}/%.$(OBJEXT))
    34 
    35 #
    36 # Add local stuff here using +=
    37 #
    3830
    3931AM_CPPFLAGS += -I$(top_builddir)
    4032AM_CPPFLAGS += -D__RTEMS_INSIDE__
    4133
    42 all-local: $(PREINSTALL_FILES) $(LIB)
     34EXTRA_LIBRARIES = o-optimize/libsapi.a
     35o_optimize_libsapi_a_SOURCES = $(C_FILES)
     36o_optimize_libsapi_a_CPPFLAGS = $(AM_CPPFLAGS) $(CFLAGS_OPTIMIZE_V)
    4337
    44 $(LIB): ${OBJS}
    45         $(make-library)
     38EXTRA_LIBRARIES += o-debug/libsapi.a
     39o_debug_libsapi_a_SOURCES = $(C_FILES)
     40o_debug_libsapi_a_CPPFLAGS = $(AM_CPPFLAGS) $(CFLAGS_DEBUG_V)
    4641
    47 ${ARCH}/%.$(OBJEXT): src/%.c $(ARCH)/$(dirstamp)
    48         ${COMPILE} -o $@ -c $<
     42all-local: $(PREINSTALL_FILES) $(ARCH)/libsapi.a
    4943
    5044EXTRA_DIST += $(C_FILES)
Note: See TracChangeset for help on using the changeset viewer.