Changeset 9d09d138 in rtems


Ignore:
Timestamp:
May 22, 1998, 11:03:03 AM (22 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, 4.8, 4.9, 5, master
Children:
550ca7d5
Parents:
7e93af1
Message:

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

Location:
c/src/lib/libbsp/unix/posix/startup
Files:
1 added
1 edited

Legend:

Unmodified
Added
Removed
  • c/src/lib/libbsp/unix/posix/startup/Makefile.in

    r7e93af1 r9d09d138  
    1313
    1414# C source names, if any, go here -- minus the .c
    15 C_PIECES=bspclean bsplibc bspstart setvec
     15C_PIECES=bspclean bsplibc bspstart setvec $(C_MAIN)
    1616C_FILES=$(C_PIECES:%=%.c)
    1717C_O_FILES=$(C_PIECES:%=${ARCH}/%.o)
    1818
    19 CC_PIECES=rtems-ctor
     19CC_PIECES=$(CXX_MAIN)
    2020CC_FILES=$(CC_PIECES:%=%.cc)
    2121CC_O_FILES=$(CC_PIECES:%=${ARCH}/%.o)
     
    3232include $(RTEMS_ROOT)/make/custom/$(RTEMS_BSP).cfg
    3333include $(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
    3444
    3545#
Note: See TracChangeset for help on using the changeset viewer.