source: rtems/c/src/lib/libbsp/unix/posix/startup/Makefile.in @ 9d09d138

4.104.114.84.95
Last change on this file since 9d09d138 was 9d09d138, checked in by Joel Sherrill <joel.sherrill@…>, on May 22, 1998 at 11:03:03 AM

Added main() which did not require C++ support. A different main
is used based on whether C++ is enabled or disabled.

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