Changeset 3e39b47 in rtems for cpukit/wrapup/Makefile.am


Ignore:
Timestamp:
May 29, 2002, 5:01:22 PM (18 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, 4.8, 4.9, 5, master
Children:
113d7b85
Parents:
8a79786
Message:

2002-05-29 Ralf Corsepius <corsepiu@…>

  • configure.ac: Add libnetworking.
  • wrapup/Makefile.am: Ditto.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • cpukit/wrapup/Makefile.am

    r8a79786 r3e39b47  
    55
    66LIBNAME = librtemscpu
    7 LIB = $(ARCH)/$(LIBNAME).a
     7LIB = $(PROJECT_RELEASE)/lib$(MULTISUBDIR)/$(LIBNAME)$(LIB_VARIANT).a
    88
    99include $(top_srcdir)/../../../automake/multilib.am
     
    3232LIBIMFS_OBJS = $(wildcard ../libfs/src/imfs/$(ARCH)/*.o)
    3333
     34if HAS_NETWORKING
     35NETWORKING_OBJS = \
     36    ../libnetworking/wrapup/$(ARCH)/libnetworking.a
     37endif
     38
    3439OBJS = $(CPU_OBJS) $(CORE_OBJS) $(RTEMS_OBJS) $(SAPI_OBJS) \
    3540    $(POSIX_OBJS) $(ITRON_OBJS) $(LIBCSUPPORT_OBJS) \
    36     $(LIBBLOCK_OBJS) $(LIBDOSFS_OBJS) $(LIBIMFS_OBJS)
     41    $(LIBBLOCK_OBJS) $(LIBDOSFS_OBJS) $(LIBIMFS_OBJS) \
     42    $(NETWORKING_OBJS)
    3743
    3844$(LIB): ${OBJS}
    39         $(make-library)
     45        rm -f $@
     46        test -d $(ARCH) || mkdir $(ARCH)
     47        rm -rf $(ARCH)/*
     48        for f in $(OBJS); do \
     49          case $$f in \
     50          *.o | *.rel) \
     51            if test -f $(ARCH)/`basename $$f`; then \
     52              if cmp $$f $(ARCH)/`basename $$f`; then \
     53                true; \
     54              else \
     55                echo 1>&2 "ERROR -- `basename $$f` in multiple files"; \
     56                exit 1; \
     57              fi; \
     58            else \
     59              cp $$f $(ARCH)/; \
     60              chmod a-w $(ARCH)/`basename $$f`; \
     61            fi; \
     62            ;; \
     63          *.a) \
     64            cd $(ARCH); \
     65              $(AR) xv ../$$f || exit 1; \
     66              chmod a-w * ; \
     67            cd ..; \
     68            ;; \
     69          esac; \
     70        done
     71        $(AR) rc $@ $(ARCH)/*
     72        rm -f $(ARCH)/*.o
     73        $(RANLIB) $@
    4074
    4175TMPINSTALL_FILES += $(PROJECT_RELEASE)/lib$(MULTISUBDIR)/$(LIBNAME)$(LIB_VARIANT).a
    4276
    43 $(PROJECT_RELEASE)/lib$(MULTISUBDIR)/$(LIBNAME)$(LIB_VARIANT).a: $(LIB)
    44         $(INSTALL_DATA) $< $@
     77#$(PROJECT_RELEASE)/lib$(MULTISUBDIR)/$(LIBNAME)$(LIB_VARIANT).a: $(LIB)
     78#       $(INSTALL_DATA) $< $@
    4579
    4680install-hook: $(LIB)
Note: See TracChangeset for help on using the changeset viewer.