source: rtems/c/src/lib/libbsp/unix/posix/startup/Makefile.in @ 06e326b

4.104.114.84.95
Last change on this file since 06e326b was 06e326b, checked in by Joel Sherrill <joel.sherrill@…>, on May 22, 1998 at 12:28:35 PM

UNIX port now builds and runs cleanly with both C++ support enabled
and 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.
30
31include $(RTEMS_ROOT)/make/custom/$(RTEMS_BSP).cfg
32include $(RTEMS_ROOT)/make/leaf.cfg
33
34ifeq ($(RTEMS_HAS_CPLUSPLUS),yes)
35NO_CTOR_LIB=${ARCH}/libno-ctor.a
36INSTALLED_O_FILES=$(ARCH)/rtems-ctor.o
37CXX_MAIN=rtems-ctor
38C_MAIN=
39else
40CXX_MAIN=
41C_MAIN=main
42endif
43
44#
45# (OPTIONAL) Add local stuff here using +=
46#
47
48DEFINES  +=
49CPPFLAGS +=
50CFLAGS   +=  $(LIBC_DEFINES)
51
52LD_PATHS  +=
53LD_LIBS   +=
54LDFLAGS   +=
55
56#
57# Add your list of files to delete here.  The config files
58#  already know how to delete some stuff, so you may want
59#  to just run 'make clean' first to see what gets missed.
60#  'make clobber' already includes 'make clean'
61#
62
63CLEAN_ADDITIONS +=
64CLOBBER_ADDITIONS +=
65
66${PGM}: ${SRCS} ${OBJS}
67        $(make-rel)
68
69${NO_CTOR_LIB}: $(ARCH)/no-ctor.o
70        $(RM) $@
71        $(AR) -cvr $@ $(ARCH)/no-ctor.o
72
73all:    ${ARCH} $(SRCS) $(INSTALLED_O_FILES) $(PGM) ${NO_CTOR_LIB}
74        $(INSTALL_VARIANT) $(INSTALLED_O_FILES) ${PROJECT_RELEASE}/lib
75        $(INSTALL_VARIANT) $(NO_CTOR_LIB) ${PROJECT_RELEASE}/lib
Note: See TracBrowser for help on using the repository browser.