source: rtems/c/src/lib/libbsp/unix/posix/startup/Makefile.am @ 6b7d2531

4.104.114.84.95
Last change on this file since 6b7d2531 was 6b7d2531, checked in by Joel Sherrill <joel.sherrill@…>, on Nov 7, 2001 at 11:21:22 PM

2001-11-07 Joel Sherrill <joel@…>

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