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

4.104.114.84.95
Last change on this file since da153c86 was da153c86, checked in by Ralf Corsepius <ralf.corsepius@…>, on 12/07/02 at 10:26:07

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

  • Makefile.am: Don't include @RTEMS_BSP@.cfg.
  • Property mode set to 100644
File size: 1.2 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
10C_FILES = sapi/no-ext.c sapi/no-io.c
11C_O_FILES = $(C_FILES:sapi/%.c=$(ARCH)/%.$(OBJEXT))
12
13C_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 += $(C_FILES:rtems/%.c=${ARCH}/%.$(OBJEXT))
17
18PGMS = $(C_FILES:rtems/%.c=$(ARCH)/%$(LIB_VARIANT).rel)
19PGMS += $(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 = $(C_FILES)
47
48include $(top_srcdir)/../../../automake/local.am
Note: See TracBrowser for help on using the repository browser.