source: rtems/c/src/lib/libbsp/unix/posix/startup/Makefile.am @ 1442144d

4.104.114.84.95
Last change on this file since 1442144d was 1442144d, checked in by Joel Sherrill <joel.sherrill@…>, on 03/28/02 at 00:43:02

2002-03-27 Ralf Corsepius <corsepiu@…>

  • configure.ac: AC_INIT(package,_RTEMS_VERSION,_RTEMS_BUGS). AM_INIT_AUTOMAKE([no-define foreign 1.6]).
  • clock/Makefile.am: Remove AUTOMAKE_OPTIONS.
  • Makefile.am: Remove AUTOMAKE_OPTIONS.
  • console/Makefile.am: Remove AUTOMAKE_OPTIONS.
  • include/Makefile.am: Remove AUTOMAKE_OPTIONS.
  • shmsupp/Makefile.am: Remove AUTOMAKE_OPTIONS.
  • startup/Makefile.am: Remove AUTOMAKE_OPTIONS.
  • timer/Makefile.am: Remove AUTOMAKE_OPTIONS.
  • wrapup/Makefile.am: Remove AUTOMAKE_OPTIONS.
  • Property mode set to 100644
File size: 1.3 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}/%.o)
19startup_rel_OBJECTS = $(C_O_FILES)
20
21# CC sources
22CC_FILES = rtems-ctor.cc
23CC_O_FILES = $(CC_FILES:%.cc=${ARCH}/%.o}
24
25# We install the RTEMS constructor as a separate .o
26# so it can be easily place correctly by the compiler config file.
27
28include $(RTEMS_ROOT)/make/custom/@RTEMS_BSP@.cfg
29include $(top_srcdir)/../../../../../../automake/compile.am
30include $(top_srcdir)/../../../../../../automake/lib.am
31
32#
33# (OPTIONAL) Add local stuff here using +=
34#
35
36AM_CFLAGS += $(LIBC_DEFINES)
37
38$(PGM): $(startup_rel_OBJECTS)
39        $(make-rel)
40
41${ARCH}/libno-ctor.a: $(ARCH)/no-ctor.o
42        $(AR) -cvr $@ $<
43
44$(PROJECT_RELEASE)/lib/libno-ctor$(LIB_VARIANT).a: ${ARCH}/libno-ctor.a
45        $(INSTALL_DATA) $< $@
46
47$(PROJECT_RELEASE)/lib/rtems-ctor$(LIB_VARIANT).o: $(ARCH)/rtems-ctor.o
48        $(INSTALL_DATA) $< $@
49
50if HAS_CXX
51all-local: $(ARCH) $(PGM) $(PROJECT_RELEASE)/lib/libno-ctor$(LIB_VARIANT).a \
52    $(PROJECT_RELEASE)/lib/rtems-ctor$(LIB_VARIANT).o
53else
54all-local: $(ARCH) $(PGM)
55endif
56
57EXTRA_DIST = bspclean.c bspstart.c exit.c main.c no-ctor.c rtems-ctor.cc \
58    setvec.c
59
60include $(top_srcdir)/../../../../../../automake/local.am
Note: See TracBrowser for help on using the repository browser.