source: rtems/c/src/optman/Makefile.am @ 222f7bda

4.104.114.84.95
Last change on this file since 222f7bda was 222f7bda, checked in by Ralf Corsepius <ralf.corsepius@…>, on Jul 10, 2003 at 8:08:28 AM

2003-07-10 Ralf Corsepius <corsepiu@…>

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