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

4.104.114.84.95
Last change on this file since f3f3db7a was f3f3db7a, checked in by Ralf Corsepius <ralf.corsepius@…>, on Dec 10, 2002 at 12:20:11 AM

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

  • Makefile.am: Introduce sapi_C_FILES, rtems_C_FILES.
  • Property mode set to 100644
File size: 1.3 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
11C_O_FILES = $(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
16C_O_FILES += $(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}/%.o: sapi/%.c
22        test -d $(ARCH) || mkdir $(ARCH)
23        ${COMPILE} -o $@ -c $<
24
25${ARCH}/%.o: rtems/%.c
26        test -d $(ARCH) || mkdir $(ARCH)
27        ${COMPILE} -o $@ -c $<
28
29# Make foo.rel from foo.o
30${ARCH}/%$(LIB_VARIANT).rel: ${ARCH}/%.o
31        test -d $(ARCH) || mkdir $(ARCH)
32        ${make-rel}
33
34bsplib_DATA = $(PGMS)
35
36TMPINSTALL_FILES += \
37    $(PGMS:${ARCH}/%$(LIB_VARIANT).rel=$(PROJECT_RELEASE)/lib/%$(LIB_VARIANT).rel)
38
39$(PROJECT_RELEASE)/lib/%$(LIB_VARIANT).rel: $(ARCH)/%$(LIB_VARIANT).rel
40        $(INSTALL_DATA) $< $@
41
42all-local: ${ARCH} $(PGMS) $(TMPINSTALL_FILES)
43
44.PRECIOUS: $(PGMS) $(C_O_FILES)
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.