summaryrefslogblamecommitdiffstats
path: root/c/src/lib/libbsp/unix/posix/tools/Makefile.in
blob: 3bb7016c34ae7406cca479dffe29f3e6399ba0d8 (plain) (tree)
1
2
3
4
5
6
7
8
9





                 


                                          
 

                   




                                         
                                                  
                                   



                                



                           
 




                                     


                                  
           
                                     

                          
                                                
 
                                      



                                                                              
#
# $Id$
#

@SET_MAKE@
srcdir = @srcdir@
top_srcdir = @top_srcdir@
top_builddir = ../../../../../../..
subdir = c/src/lib/libbsp/unix/posix/tools

INSTALL = @INSTALL@

RTEMS_ROOT = $(top_srcdir)/@RTEMS_TOPdir@
PROJECT_ROOT = @PROJECT_ROOT@

VPATH = @srcdir@

include $(RTEMS_ROOT)/make/custom/$(RTEMS_BSP).cfg
include $(RTEMS_ROOT)/make/leaf.cfg

DESTDIR=$(PROJECT_RELEASE)/tests

# We use the generic difftest
BUILD_PGMS=runtest looptest
ifneq (@PERL@,)
BUILD_PGMS+=semdump shmdump
endif

PGMS = $(BUILD_PGMS)

CLEAN_ADDITIONS += $(BUILD_PGMS)

INSTALLED_PGMS=$(PGMS:%=$(DESTDIR)/%)

all:	$(DESTDIR) $(PGMS) install

$(DESTDIR):
	@top_srcdir@/mkinstalldirs $@

$(INSTALLED_PGMS): $(PGMS)
	$(INSTALL) $(INSTBINFLAGS) $^ $(DESTDIR)

install:  $(DESTDIR) $(INSTALLED_PGMS)

%: $(srcdir)/%.in $(top_builddir)/config.status
	cd $(top_builddir) \
	 && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status