summaryrefslogtreecommitdiffstats
path: root/c/src/lib/libbsp/unix/posix/startup/Makefile.in
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>1998-05-22 11:03:03 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>1998-05-22 11:03:03 +0000
commit9d09d138082b61e001fdca1b547a70aab36a25ed (patch)
tree536f37938613456e2f8e805a67114785b6370385 /c/src/lib/libbsp/unix/posix/startup/Makefile.in
parentchanged version to 980521 (diff)
downloadrtems-9d09d138082b61e001fdca1b547a70aab36a25ed.tar.bz2
Added main() which did not require C++ support. A different main
is used based on whether C++ is enabled or disabled.
Diffstat (limited to '')
-rw-r--r--c/src/lib/libbsp/unix/posix/startup/Makefile.in14
1 files changed, 12 insertions, 2 deletions
diff --git a/c/src/lib/libbsp/unix/posix/startup/Makefile.in b/c/src/lib/libbsp/unix/posix/startup/Makefile.in
index ce2a77744c..d09765cd19 100644
--- a/c/src/lib/libbsp/unix/posix/startup/Makefile.in
+++ b/c/src/lib/libbsp/unix/posix/startup/Makefile.in
@@ -12,11 +12,11 @@ PGM=${ARCH}/startup.rel
NO_CTOR_LIB=${ARCH}/libno-ctor.a
# C source names, if any, go here -- minus the .c
-C_PIECES=bspclean bsplibc bspstart setvec
+C_PIECES=bspclean bsplibc bspstart setvec $(C_MAIN)
C_FILES=$(C_PIECES:%=%.c)
C_O_FILES=$(C_PIECES:%=${ARCH}/%.o)
-CC_PIECES=rtems-ctor
+CC_PIECES=$(CXX_MAIN)
CC_FILES=$(CC_PIECES:%=%.cc)
CC_O_FILES=$(CC_PIECES:%=${ARCH}/%.o)
@@ -32,6 +32,16 @@ INSTALLED_O_FILES=$(ARCH)/rtems-ctor.o
include $(RTEMS_ROOT)/make/custom/$(RTEMS_BSP).cfg
include $(RTEMS_ROOT)/make/leaf.cfg
+ifeq ($(RTEMS_HAS_CPLUSPLUS),yes)
+NO_CTOR_LIB=${ARCH}/libno-ctor.a
+INSTALLED_O_FILES=$(ARCH)/rtems-ctor.o
+CXX_MAIN=rtems-ctor
+C_MAIN=
+else
+CXX_MAIN=
+C_MAIN=main
+endif
+
#
# (OPTIONAL) Add local stuff here using +=
#