source: rtems/c/src/lib/libbsp/Makefile.am @ 6dcc0f4

4.104.114.84.95
Last change on this file since 6dcc0f4 was 6dcc0f4, checked in by Ralf Corsepius <ralf.corsepius@…>, on Dec 12, 2003 at 3:34:16 PM

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

  • Makefile.am: Use mkdir_p. Remove dirs from PRE/TMPINSTALL_FILES.
  • bsp.am: Replace bsplibdir by project_libdir. Use mkdir_p instead of mkinstalldirs. Remove dirs from PRE/TMPINSTALL_FILES.
  • Property mode set to 100644
File size: 2.9 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        @$(mkdir_p) shmdr/$(ARCH)
41        @: > shmdr/$(ARCH)/$(dirstamp)
42shmdr/$(ARCH)/%.$(OBJEXT): shmdr/%.c shmdr/$(ARCH)/$(dirstamp)
43        ${COMPILE} -o $@ -c $<
44shmdr/$(ARCH)/shmdr$(LIB_VARIANT).rel: $(shmdr_OBJS)
45        $(make-rel)
46
47if HAS_MP
48include_HEADERS = shmdr/shm_driver.h shmdr/mpci.h
49
50all-local: $(PREINSTALL_FILES) $(TMPINSTALL_FILES)
51project_lib_DATA = shmdr/$(ARCH)/shmdr$(LIB_VARIANT).rel
52endif
53
54EXTRA_DIST += shmdr/README shmdr/addlq.c shmdr/cnvpkt.c shmdr/dump.c \
55    shmdr/fatal.c shmdr/getlq.c shmdr/getpkt.c shmdr/init.c shmdr/initlq.c \
56    shmdr/intr.c shmdr/mpisr.c shmdr/poll.c shmdr/receive.c shmdr/retpkt.c \
57    shmdr/send.c shmdr/setckvec.c
58
59PREINSTALL_FILES =
60
61$(PROJECT_INCLUDE)/$(dirstamp):
62        @$(mkdir_p) $(PROJECT_INCLUDE)
63        @: > $(PROJECT_INCLUDE)/$(dirstamp)
64
65${PROJECT_RELEASE}/lib/$(dirstamp):
66        @$(mkdir_p) ${PROJECT_RELEASE}/lib
67        @: > ${PROJECT_RELEASE}/lib/$(dirstamp)
68
69if HAS_MP
70$(PROJECT_INCLUDE)/shm_driver.h: shmdr/shm_driver.h $(PROJECT_INCLUDE)/$(dirstamp)
71        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/shm_driver.h
72PREINSTALL_FILES += $(PROJECT_INCLUDE)/shm_driver.h
73
74$(PROJECT_INCLUDE)/mpci.h: shmdr/mpci.h $(PROJECT_INCLUDE)/$(dirstamp)
75        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/mpci.h
76PREINSTALL_FILES += $(PROJECT_INCLUDE)/mpci.h
77
78${PROJECT_RELEASE}/lib/shmdr$(LIB_VARIANT).rel: shmdr/$(ARCH)/shmdr$(LIB_VARIANT).rel ${PROJECT_RELEASE}/lib/$(dirstamp)
79        $(INSTALL_DATA) $< ${PROJECT_RELEASE}/lib/shmdr$(LIB_VARIANT).rel
80TMPINSTALL_FILES += ${PROJECT_RELEASE}/lib/shmdr$(LIB_VARIANT).rel
81endif
82
83include $(top_srcdir)/automake/subdirs.am
84include $(top_srcdir)/automake/local.am
Note: See TracBrowser for help on using the repository browser.