Changeset 57d673c in rtems for c/src/lib/libbsp/Makefile.am


Ignore:
Timestamp:
Dec 3, 2003, 3:27:06 PM (17 years ago)
Author:
Ralf Corsepius <ralf.corsepius@…>
Branches:
4.10, 4.11, 4.8, 4.9, 5, master
Children:
184f279
Parents:
900301fe
Message:

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

  • Makefile.am: Merge-in shared/Makefile.am, shmdr/Makefile.am.
  • shared/Makefile.am: Remove.
  • shmdir/Makefile.am: Remove.
  • bsp.am: Add preinstallation dirstamp support.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • c/src/lib/libbsp/Makefile.am

    r900301fe r57d673c  
    22## $Id$
    33##
     4
     5include $(top_srcdir)/automake/compile.am
     6include $(top_srcdir)/automake/lib.am
    47
    58# If we are building a "real" BSP, then we need to descend into the
     
    912# into that directory.
    1013
    11 SUBDIRS = shared shmdr @libbsp_cpu_subdir@
    12 DIST_SUBDIRS = shared shmdr @libbsp_cpu_subdir@
     14SUBDIRS = @libbsp_cpu_subdir@
     15DIST_SUBDIRS = @libbsp_cpu_subdir@
    1316
    1417EXTRA_DIST = MERGE.PROCEDURE bsp.am
    1518
     19# shared
     20EXTRA_DIST += shared/bootcard.c shared/bspclean.c shared/bsplibc.c \
     21    shared/bsppost.c shared/console-polled.c shared/console.c \
     22    shared/gnatinstallhandler.c shared/main.c shared/sbrk.c shared/tod.c \
     23    shared/tod.h
     24EXTRA_DIST += shared/vmeUniverse/vmeUniverse.c \
     25    shared/vmeUniverse/vmeUniverse.h
     26EXTRA_DIST += shared/include/coverhd.h
     27EXTRA_DIST += shared/gdbstub/rtems-stub-glue.c
     28
     29# shmdr
     30shmdr_C_FILES = shmdr/addlq.c shmdr/cnvpkt.c shmdr/getlq.c shmdr/dump.c \
     31    shmdr/fatal.c shmdr/getpkt.c shmdr/init.c shmdr/initlq.c shmdr/intr.c \
     32    shmdr/mpisr.c shmdr/poll.c shmdr/receive.c shmdr/retpkt.c shmdr/send.c \
     33    shmdr/setckvec.c
     34shmdr_OBJS = $(shmdr_C_FILES:shmdr/%.c=shmdr/$(ARCH)/%.$(OBJEXT))
     35
     36# the .rel file built here will be put into libbsp.a by
     37#   ../$(RTEMS_BSP_FAMILY)/wrapup/Makefile
     38
     39shmdr/$(ARCH)/$(dirstamp):
     40        @$(mkinstalldirs) shmdr/$(ARCH)
     41        @: > shmdr/$(ARCH)/$(dirstamp)
     42shmdr/$(ARCH)/%.$(OBJEXT): shmdr/%.c shmdr/$(ARCH)/$(dirstamp)
     43        ${COMPILE} -o $@ -c $<
     44shmdr/$(ARCH)/shmdr.rel: $(shmdr_OBJS)
     45        $(make-rel)
     46
     47$(PROJECT_RELEASE)/lib/shmdr$(LIB_VARIANT).rel: shmdr/$(ARCH)/shmdr.rel
     48        $(INSTALL_DATA) $< $@
     49
     50if HAS_MP
     51include_HEADERS = shmdir/shm_driver.h shmdir/mpci.h
     52
     53TMPINSTALL_FILES += $(PROJECT_RELEASE)/lib/shmdr$(LIB_VARIANT).rel
     54
     55all-local: $(PREINSTALL_FILES) shmdr/$(ARCH)/shmdr.rel $(TMPINSTALL_FILES)
     56endif
     57
     58.PRECIOUS: shmdr/$(ARCH)/shmdr.rel
     59
     60EXTRA_DIST += shmdr/README shmdr/addlq.c shmdr/cnvpkt.c shmdr/dump.c \
     61    shmdr/fatal.c shmdr/getlq.c shmdr/getpkt.c shmdr/init.c shmdr/initlq.c \
     62    shmdr/intr.c shmdr/mpisr.c shmdr/poll.c shmdr/receive.c shmdr/retpkt.c \
     63    shmdr/send.c shmdr/setckvec.c
     64
     65PREINSTALL_FILES =
     66
     67$(PROJECT_INCLUDE)/$(dirstamp):
     68        @$(mkinstalldirs) $(PROJECT_INCLUDE)
     69        @: > $(PROJECT_INCLUDE)/$(dirstamp)
     70PREINSTALL_FILES += $(PROJECT_INCLUDE)/$(dirstamp)
     71
     72if HAS_MP
     73$(PROJECT_INCLUDE)/shm_driver.h: shmdir/shm_driver.h $(PROJECT_INCLUDE)/$(dirstamp)
     74        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/shm_driver.h
     75PREINSTALL_FILES += $(PROJECT_INCLUDE)/shm_driver.h
     76
     77$(PROJECT_INCLUDE)/mpci.h: shmdir/mpci.h $(PROJECT_INCLUDE)/$(dirstamp)
     78        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/mpci.h
     79PREINSTALL_FILES += $(PROJECT_INCLUDE)/mpci.h
     80endif
     81
    1682include $(top_srcdir)/automake/subdirs.am
    1783include $(top_srcdir)/automake/local.am
Note: See TracChangeset for help on using the changeset viewer.