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

4.104.114.84.95
Last change on this file since cccb7e0 was cccb7e0, checked in by Ralf Corsepius <ralf.corsepius@…>, on Nov 20, 2002 at 2:21:25 PM

2002-11-20 Ralf Corsepius <corsepiu@…>

  • Makefile.am: Merge-in rtems/Makefile.am and sapi/Makefile.am.
  • sapi/Makefile.am: Removed.
  • rtems/Makefile.am: Removed.
  • rel.am: Removed.
  • configure.ac: Add RTEMS_BSP_CHECK_CACHE. Reflect changes above.
  • Property mode set to 100644
File size: 1.3 KB
Line 
1##
2## $Id$
3##
4
5ACLOCAL_AMFLAGS = -I ../../../aclocal
6
7include $(RTEMS_ROOT)/make/custom/@RTEMS_BSP@.cfg
8include $(top_srcdir)/../../../automake/compile.am
9include $(top_srcdir)/../../../automake/lib.am
10
11C_FILES = sapi/no-ext.c sapi/no-io.c
12C_O_FILES = $(C_FILES:sapi/%.c=$(ARCH)/%.$(OBJEXT))
13
14C_FILES += rtems/no-dpmem.c rtems/no-event.c rtems/no-msg.c rtems/no-mp.c \
15    rtems/no-part.c rtems/no-region.c \
16    rtems/no-rtmon.c rtems/no-sem.c rtems/no-signal.c rtems/no-timer.c
17C_O_FILES += $(C_FILES:rtems/%.c=${ARCH}/%.$(OBJEXT))
18
19PGMS = $(C_FILES:rtems/%.c=$(ARCH)/%$(LIB_VARIANT).rel)
20PGMS += $(C_FILES:sapi/%.c=$(ARCH)/%$(LIB_VARIANT).rel)
21
22${ARCH}/%.o: sapi/%.c
23        test -d $(ARCH) || mkdir $(ARCH)
24        ${COMPILE} -o $@ -c $<
25
26${ARCH}/%.o: rtems/%.c
27        test -d $(ARCH) || mkdir $(ARCH)
28        ${COMPILE} -o $@ -c $<
29
30# Make foo.rel from foo.o
31${ARCH}/%$(LIB_VARIANT).rel: ${ARCH}/%.o
32        test -d $(ARCH) || mkdir $(ARCH)
33        ${make-rel}
34
35bsplib_DATA = $(PGMS)
36
37TMPINSTALL_FILES += \
38    $(PGMS:${ARCH}/%$(LIB_VARIANT).rel=$(PROJECT_RELEASE)/lib/%$(LIB_VARIANT).rel)
39
40$(PROJECT_RELEASE)/lib/%$(LIB_VARIANT).rel: $(ARCH)/%$(LIB_VARIANT).rel
41        $(INSTALL_DATA) $< $@
42
43all-local: ${ARCH} $(PGMS) $(TMPINSTALL_FILES)
44
45.PRECIOUS: $(PGMS) $(C_O_FILES)
46
47EXTRA_DIST = $(C_FILES)
48
49include $(top_srcdir)/../../../automake/local.am
Note: See TracBrowser for help on using the repository browser.