Changeset ab21e14 in rtems for c/src/libchip/Makefile.am


Ignore:
Timestamp:
Dec 18, 2003, 10:52:51 PM (16 years ago)
Author:
Ralf Corsepius <ralf.corsepius@…>
Branches:
4.10, 4.11, 4.8, 4.9, master
Children:
bb37d32
Parents:
2f638aa
Message:

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

  • Makefile.am: Add shmdr. Use noinst_DATA instead of TMP_LIBS.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • c/src/libchip/Makefile.am

    r2f638aa rab21e14  
    66include $(top_srcdir)/automake/lib.am
    77
     8noinst_DATA =
     9
    810if LIBCHIP
    911include_libchipdir = $(includedir)/libchip
    1012include_libchip_HEADERS =
    11 TMP_LIBS =
    1213endif
    1314
     
    3233ide/$(ARCH)/libide.a: $(libide_OBJS)
    3334        $(make-library)
    34 TMP_LIBS += ide/$(ARCH)/libide.a
     35noinst_DATA += ide/$(ARCH)/libide.a
    3536endif
    3637
     
    5960network/$(ARCH)/libnetchip$(LIB_VARIANT).a: $(libnetchip_OBJS)
    6061        $(make-library)
    61 TMP_LIBS += network/$(ARCH)/libnetchip$(LIB_VARIANT).a
    62 
    6362project_lib_DATA = network/$(ARCH)/libnetchip$(LIB_VARIANT).a
    6463endif
     
    8887rtc/$(ARCH)/librtcio.a: $(librtcio_OBJS)
    8988        $(make-library)
    90 TMP_LIBS += rtc/$(ARCH)/librtcio.a
     89noinst_DATA += rtc/$(ARCH)/librtcio.a
    9190endif
    9291
     
    102101    serial/z85c30_reg.c serial/serprobe.c serial/termios_baud2index.c \
    103102    serial/termios_baud2num.c
     103EXTRA_DIST += $(libserialio_C_FILES)
    104104libserialio_OBJS = \
    105105    $(libserialio_C_FILES:serial/%.c=serial/$(ARCH)/%.$(OBJEXT))
     
    118118serial/$(ARCH)/libserialio.a: $(libserialio_OBJS)
    119119        $(make-library)
    120 TMP_LIBS += serial/$(ARCH)/libserialio.a
     120noinst_DATA += serial/$(ARCH)/libserialio.a
    121121endif
    122122
    123123libserialio_DOC_FILES = serial/README.mc68681 serial/README.ns16550 \
    124124    serial/README.xr88681 serial/README.z85c30 serial/STATUS
    125 
    126 all-local: $(PREINSTALL_FILES) $(TMP_LIBS) $(TMPINSTALL_FILES)
     125EXTRA_DIST += $(libserialio_DOC_FILES)
     126
     127## shmdr
     128shmdr_C_FILES = shmdr/addlq.c shmdr/cnvpkt.c shmdr/getlq.c shmdr/dump.c \
     129    shmdr/fatal.c shmdr/getpkt.c shmdr/init.c shmdr/initlq.c shmdr/intr.c \
     130    shmdr/mpisr.c shmdr/poll.c shmdr/receive.c shmdr/retpkt.c shmdr/send.c \
     131    shmdr/setckvec.c
     132EXTRA_DIST += $(shmdr_C_FILES)
     133shmdr_OBJECTS = $(shmdr_C_FILES:shmdr/%.c=shmdr/$(ARCH)/%.$(OBJEXT))
     134
     135shmdr/$(ARCH)/$(dirstamp):
     136        @$(mkdir_p) shmdr/$(ARCH)
     137        @: > shmdr/$(ARCH)/$(dirstamp)
     138shmdr/$(ARCH)/%.$(OBJEXT): shmdr/%.c shmdr/$(ARCH)/$(dirstamp)
     139        ${COMPILE} -o $@ -c $<
     140shmdr/$(ARCH)/shmdr$(LIB_VARIANT).rel: $(shmdr_OBJECTS)
     141        $(make-rel)
     142
     143if HAS_MP
     144include_HEADERS = shmdr/shm_driver.h shmdr/mpci.h
     145project_lib_DATA = shmdr/$(ARCH)/shmdr$(LIB_VARIANT).rel
     146endif
     147
     148EXTRA_DIST += shmdr/README
     149
     150## --
     151
     152all-local: $(PREINSTALL_FILES) $(TMPINSTALL_FILES)
    127153
    128154EXTRA_DIST += $(libserialio_C_FILES) $(libserialio_DOC_FILES)
     
    131157
    132158PREINSTALL_FILES =
     159
     160$(PROJECT_INCLUDE)/$(dirstamp):
     161        @$(mkdir_p) $(PROJECT_INCLUDE)
     162        @: > $(PROJECT_INCLUDE)/$(dirstamp)
    133163
    134164$(PROJECT_LIB)/$(dirstamp):
     
    232262endif
    233263
     264if HAS_MP
     265$(PROJECT_INCLUDE)/shm_driver.h: shmdr/shm_driver.h $(PROJECT_INCLUDE)/$(dirstamp)
     266        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/shm_driver.h
     267PREINSTALL_FILES += $(PROJECT_INCLUDE)/shm_driver.h
     268
     269$(PROJECT_INCLUDE)/mpci.h: shmdr/mpci.h $(PROJECT_INCLUDE)/$(dirstamp)
     270        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/mpci.h
     271PREINSTALL_FILES += $(PROJECT_INCLUDE)/mpci.h
     272
     273$(PROJECT_LIB)/shmdr$(LIB_VARIANT).rel: shmdr/$(ARCH)/shmdr$(LIB_VARIANT).rel $(PROJECT_LIB)/$(dirstamp)
     274        $(INSTALL_DATA) $< $(PROJECT_LIB)/shmdr$(LIB_VARIANT).rel
     275TMPINSTALL_FILES += $(PROJECT_LIB)/shmdr$(LIB_VARIANT).rel
     276endif
     277
    234278include $(top_srcdir)/automake/local.am
Note: See TracChangeset for help on using the changeset viewer.