source: rtems/c/src/lib/libbsp/unix/posix/startup/Makefile.am @ 2ca8c2c

4.104.114.84.95
Last change on this file since 2ca8c2c was 2ca8c2c, checked in by Ralf Corsepius <ralf.corsepius@…>, on Jan 15, 2003 at 9:59:23 AM

2003-01-15 Ralf Corsepius <corsepiu@…>

  • configure.ac: Add BSPOPTS (WORKSPACE_MB, HEAPSPACE_MB).
  • clock/Makefile.am: Don't include @RTEMS_BSP@.cfg.
  • console/Makefile.am: Don't include @RTEMS_BSP@.cfg.
  • shmsupp/Makefile.am: Don't include @RTEMS_BSP@.cfg.
  • startup/Makefile.am: Don't include @RTEMS_BSP@.cfg.
  • timer/Makefile.am: Don't include @RTEMS_BSP@.cfg.
  • Property mode set to 100644
File size: 1.4 KB
Line 
1##
2##  $Id$
3##
4
5
6VPATH = @srcdir@:@srcdir@/../../../shared
7
8PGM = ${ARCH}/startup.rel
9
10if HAS_CXX
11C_MAIN_C_FILES =
12else
13C_MAIN_C_FILES = main.c
14endif
15
16# C sources
17C_FILES = bspclean.c bsplibc.c bspstart.c setvec.c $(C_MAIN_C_FILES)
18C_O_FILES = $(C_FILES:%.c=${ARCH}/%.$(OBJEXT))
19startup_rel_OBJECTS = $(C_O_FILES)
20
21# CC sources
22CC_FILES = rtems-ctor.cc
23CC_O_FILES = $(CC_FILES:%.cc=${ARCH}/%.$(OBJEXT)}
24
25# We install the RTEMS constructor as a separate .$(OBJEXT)
26# so it can be easily place correctly by the compiler config file.
27
28include $(top_srcdir)/../../../../../../automake/compile.am
29include $(top_srcdir)/../../../../../../automake/lib.am
30
31#
32# (OPTIONAL) Add local stuff here using +=
33#
34
35AM_CFLAGS += $(LIBC_DEFINES)
36
37$(PGM): $(startup_rel_OBJECTS)
38        $(make-rel)
39
40${ARCH}/libno-ctor.a: $(ARCH)/no-ctor.$(OBJEXT)
41        $(AR) -cvr $@ $<
42
43$(PROJECT_RELEASE)/lib/libno-ctor$(LIB_VARIANT).a: ${ARCH}/libno-ctor.a
44        $(INSTALL_DATA) $< $@
45
46$(PROJECT_RELEASE)/lib/rtems-ctor$(LIB_VARIANT).$(OBJEXT): $(ARCH)/rtems-ctor.$(OBJEXT)
47        $(INSTALL_DATA) $< $@
48
49if HAS_CXX
50all-local: $(ARCH) $(PGM) $(PROJECT_RELEASE)/lib/libno-ctor$(LIB_VARIANT).a \
51    $(PROJECT_RELEASE)/lib/rtems-ctor$(LIB_VARIANT).$(OBJEXT)
52else
53all-local: $(ARCH) $(PGM)
54endif
55
56EXTRA_DIST = bspclean.c bspstart.c exit.c main.c no-ctor.c rtems-ctor.cc \
57    setvec.c
58
59include $(top_srcdir)/../../../../../../automake/local.am
Note: See TracBrowser for help on using the repository browser.