source: rtems/c/src/optman/Makefile.am @ c8f3e82

Last change on this file since c8f3e82 was 64afa8e, checked in by Ralf Corsepius <ralf.corsepius@…>, on Dec 12, 2002 at 5:29:58 AM

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

  • Makefile.am: Apply install-data-local to install *.rels.
  • Property mode set to 100644
File size: 1.4 KB
Line 
1##
2## $Id$
3##
4
5ACLOCAL_AMFLAGS = -I ../../../aclocal
6
7include $(top_srcdir)/../../../automake/compile.am
8include $(top_srcdir)/../../../automake/lib.am
9
10sapi_C_FILES = sapi/no-ext.c sapi/no-io.c
11OBJS = $(sapi_C_FILES:sapi/%.c=$(ARCH)/%.$(OBJEXT))
12
13rtems_C_FILES = rtems/no-dpmem.c rtems/no-event.c rtems/no-msg.c rtems/no-mp.c \
14    rtems/no-part.c rtems/no-region.c \
15    rtems/no-rtmon.c rtems/no-sem.c rtems/no-signal.c rtems/no-timer.c
16OBJS += $(rtems_C_FILES:rtems/%.c=${ARCH}/%.$(OBJEXT))
17
18PGMS = $(rtems_C_FILES:rtems/%.c=$(ARCH)/%$(LIB_VARIANT).rel)
19PGMS += $(sapi_C_FILES:sapi/%.c=$(ARCH)/%$(LIB_VARIANT).rel)
20
21${ARCH}/%.$(OBJEXT): sapi/%.c
22        ${COMPILE} -o $@ -c $<
23
24${ARCH}/%.$(OBJEXT): rtems/%.c
25        ${COMPILE} -o $@ -c $<
26
27# Make foo.rel from foo.o
28${ARCH}/%$(LIB_VARIANT).rel: ${ARCH}/%.o
29        ${make-rel}
30
31TMPINSTALL_FILES += \
32    $(PGMS:${ARCH}/%$(LIB_VARIANT).rel=$(PROJECT_RELEASE)/lib/%$(LIB_VARIANT).rel)
33
34$(PROJECT_RELEASE)/lib/%$(LIB_VARIANT).rel: $(ARCH)/%$(LIB_VARIANT).rel
35        $(INSTALL_DATA) $< $@
36
37all-local: ${ARCH} $(PGMS) $(TMPINSTALL_FILES)
38
39install-data-local: $(PGMS)
40        @$(mkinstalldirs) $(DESTDIR)$(bsplibdir)
41        @list='$(PGMS)'; for p in $$list; do \
42          echo "$(INSTALL_DATA) $$p $(DESTDIR)$(bsplibdir)" ; \
43          $(INSTALL_DATA) $$p $(DESTDIR)$(bsplibdir); \
44        done
45
46.PRECIOUS: $(PGMS) $(OBJS)
47
48EXTRA_DIST = $(rtems_C_FILES) $(sapi_C_FILES)
49
50include $(top_srcdir)/../../../automake/local.am
Note: See TracBrowser for help on using the repository browser.