source: rtems/c/src/lib/libbsp/Makefile.am @ 57d673c

4.104.114.84.95
Last change on this file since 57d673c was 57d673c, checked in by Ralf Corsepius <ralf.corsepius@…>, on Dec 3, 2003 at 3:27:06 PM

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.
  • Property mode set to 100644
File size: 2.7 KB
Line 
1##
2## $Id$
3##
4
5include $(top_srcdir)/automake/compile.am
6include $(top_srcdir)/automake/lib.am
7
8# If we are building a "real" BSP, then we need to descend into the
9# appropriate CPU specific directory.  The bare BSP is a special
10# case which can be built for any CPU and it resides at the same
11# level as the CPUs.  If we are building the bare BSP, then descend
12# into that directory.
13
14SUBDIRS = @libbsp_cpu_subdir@
15DIST_SUBDIRS = @libbsp_cpu_subdir@
16
17EXTRA_DIST = MERGE.PROCEDURE bsp.am
18
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
82include $(top_srcdir)/automake/subdirs.am
83include $(top_srcdir)/automake/local.am
Note: See TracBrowser for help on using the repository browser.