source: rtems/c/src/lib/libbsp/unix/posix/startup/Makefile.in @ 08b5f55

4.104.114.84.95
Last change on this file since 08b5f55 was 08b5f55, checked in by Joel Sherrill <joel.sherrill@…>, on 07/26/99 at 20:31:49

Patch from Ralf Corsepius <corsepiu@…>:

A bug in acpolish made it into rtems-rc-19990709-0.diff, which
unfortunately affects all Makefile.ins:

  • The maintainer mode conditional was erroniously applied to the dependencies of "Makefile".

In case you already checked in rtems-rc-19990709-0.diff to CVS you have
to check in all Makefile.ins again after applying the patch below :).

Please apply the patch below as follows:

patch -p1 < rtems-rc-19990709-1.diff
tools/update/rtems-polish.sh -ac

Note: There is no need to rerun your tests if you have used
--enable-maintainer-mode to configure RTEMS, because this patch converts
all Makefile.ins to the same settings as used for
--enable-maintainer-mode.

  • Property mode set to 100644
File size: 2.3 KB
Line 
1#
2#  $Id$
3#
4
5@SET_MAKE@
6srcdir = @srcdir@
7top_srcdir = @top_srcdir@
8top_builddir = ../../../..
9subdir = libbsp/unix/posix/startup
10
11RTEMS_ROOT = @RTEMS_ROOT@
12PROJECT_ROOT = @PROJECT_ROOT@
13
14VPATH = @srcdir@:@srcdir@/../../../shared
15
16PGM = ${ARCH}/startup.rel
17NO_CTOR_LIB = $(NO_CTOR_LIB_CPLUSPLUS_$(HAS_CPLUSPLUS)_V)
18
19# C source names, if any, go here -- minus the .c
20C_PIECES = bspclean bsplibc bspstart setvec $(C_MAIN_C_PIECES)
21C_FILES = $(C_PIECES:%=%.c)
22C_O_FILES = $(C_PIECES:%=${ARCH}/%.o)
23
24CC_PIECES = $(CXX_MAIN)
25CC_FILES = $(CC_PIECES:%=%.cc)
26CC_O_FILES = $(CC_PIECES:%=${ARCH}/%.o)
27
28H_FILES =
29
30SRCS = $(C_FILES) $(CC_FILES) $(H_FILES) no-ctor.c
31OBJS = $(C_O_FILES)
32
33# We install the RTEMS constructor as a separate .o
34# so it can be easily place correctly by the compiler config file.
35
36include $(RTEMS_ROOT)/make/custom/@RTEMS_BSP@.cfg
37include $(RTEMS_ROOT)/make/leaf.cfg
38
39INSTALL_CHANGE = @INSTALL_CHANGE@
40
41NO_CTOR_LIB_CPLUSPLUS_yes_V = ${ARCH}/libno-ctor.a
42INSTALLED_O_FILES_CPLUSPLUS_yes_V = $(ARCH)/rtems-ctor.o
43CXX_MAIN_C_PIECES_CPLUSPLUS_yes_V = rtems-ctor
44C_MAIN_C_PIECES_CPLUSPLUS_yes_V =
45
46NO_CTOR_LIB_CPLUSPLUS_no_V =
47INSTALLED_O_FILES_CPLUSPLUS_no_V =
48CXX_MAIN_C_PIECES_CPLUSPLUS_no_V =
49C_MAIN_C_PIECES_CPLUSPLUS_no_V = main bootcard
50
51NO_CTOR_LIB = $(NO_CTOR_LIB_CPLUSPLUS_$(HAS_CPLUSPLUS)_V)
52INSTALLED_O_FILES = $(INSTALLED_O_FILES_CPLUSPLUS_$(HAS_CPLUSPLUS)_V)
53CXX_MAIN_C_PIECES = $(CXX_MAIN_C_PIECES_CPLUSPLUS_$(HAS_CPLUSPLUS)_V)
54C_MAIN_C_PIECES = $(C_MAIN_C_PIECES_CPLUSPLUS_$(HAS_CPLUSPLUS)_V)
55
56#
57# (OPTIONAL) Add local stuff here using +=
58#
59
60DEFINES +=
61CPPFLAGS +=
62CFLAGS += $(LIBC_DEFINES)
63
64LD_PATHS +=
65LD_LIBS +=
66LDFLAGS +=
67
68#
69# Add your list of files to delete here.  The config files
70#  already know how to delete some stuff, so you may want
71#  to just run 'make clean' first to see what gets missed.
72#  'make clobber' already includes 'make clean'
73#
74
75CLEAN_ADDITIONS +=
76CLOBBER_ADDITIONS +=
77
78${PGM}: ${SRCS} ${OBJS}
79        $(make-rel)
80
81${NO_CTOR_LIB}: $(ARCH)/no-ctor.o
82        $(RM) $@
83        $(AR) -cvr $@ $(ARCH)/no-ctor.o
84
85all: ${ARCH} $(SRCS) $(INSTALLED_O_FILES) $(PGM) ${NO_CTOR_LIB}
86        @$(INSTALL_VARIANT) $(INSTALLED_O_FILES) $(PROJECT_RELEASE)/lib
87        @$(INSTALL_VARIANT) $(NO_CTOR_LIB) $(PROJECT_RELEASE)/lib
88
89Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
90        cd $(top_builddir) \
91         && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status
Note: See TracBrowser for help on using the repository browser.