diff options
author | Joel Sherrill <joel.sherrill@OARcorp.com> | 1998-05-22 11:03:03 +0000 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@OARcorp.com> | 1998-05-22 11:03:03 +0000 |
commit | 9d09d138082b61e001fdca1b547a70aab36a25ed (patch) | |
tree | 536f37938613456e2f8e805a67114785b6370385 /c/src/lib/libbsp/unix/posix/startup/Makefile.in | |
parent | changed version to 980521 (diff) | |
download | rtems-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 'c/src/lib/libbsp/unix/posix/startup/Makefile.in')
-rw-r--r-- | c/src/lib/libbsp/unix/posix/startup/Makefile.in | 14 |
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 += # |