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

4.104.114.84.95
Last change on this file since 2099695 was 2099695, checked in by Ralf Corsepius <ralf.corsepius@…>, on Dec 11, 2002 at 6:20:02 PM

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

  • Makefile.am: Eliminate *_O_FILES. Don't create $ARCH in %.o: %.c rules.
  • 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
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
31bsplib_DATA = $(PGMS)
32
33TMPINSTALL_FILES += \
34    $(PGMS:${ARCH}/%$(LIB_VARIANT).rel=$(PROJECT_RELEASE)/lib/%$(LIB_VARIANT).rel)
35
36$(PROJECT_RELEASE)/lib/%$(LIB_VARIANT).rel: $(ARCH)/%$(LIB_VARIANT).rel
37        $(INSTALL_DATA) $< $@
38
39all-local: ${ARCH} $(PGMS) $(TMPINSTALL_FILES)
40
41.PRECIOUS: $(PGMS) $(OBJS)
42
43EXTRA_DIST = $(rtems_C_FILES) $(sapi_C_FILES)
44
45include $(top_srcdir)/../../../automake/local.am
Note: See TracBrowser for help on using the repository browser.