summaryrefslogblamecommitdiffstats
path: root/testsuites/libtests/rtems++/Makefile.am
blob: d618ab862df992cf92b896c2320f117382efa77e (plain) (tree)
1
2
3
4
5
6
7
8
9
  
       
  
 

                                                       
          

                                                             
     
 

                                    
 
                                                 
                                            
                                         
 
          
                          
                                                 
 
                                                                
 

                                               
 

                                                            
                       

     
                                          
##
## $Id$
##

MANAGERS = event io msg sem signal timer rate_monotonic

if HAS_CXX
rtems_tests_PROGRAMS = rtems++
rtems___SOURCES = Init.cc Task1.cc Task2.cc Task3.cc System.h
endif

dist_rtems_tests_DATA = rtems++.scn
dist_rtems_tests_DATA += rtems++.doc

include $(RTEMS_ROOT)/make/custom/@RTEMS_BSP@.cfg
include $(top_srcdir)/../automake/compile.am
include $(top_srcdir)/../automake/leaf.am

if HAS_CXX
rtems___LDLIBS = -lrtems++
AM_CPPFLAGS += -I$(top_srcdir)/../support/include

rtems___LDADD = $(MANAGERS_NOT_WANTED:%=$(PROJECT_LIB)/no-%.rel)

LINK_OBJS = $(rtems___OBJECTS) $(rtems___LDADD)
LINK_LIBS = $(rtems___LDLIBS)

rtems++$(EXEEXT): $(rtems___OBJECTS) $(rtems___DEPENDENCIES)
	@rm -f rtems++$(EXEEXT)
	$(make-cxx-exe)
endif

include $(top_srcdir)/../automake/local.am