summaryrefslogtreecommitdiffstats
path: root/c/src/lib/libbsp/unix/posix/tools/Makefile.in
blob: 3bb7016c34ae7406cca479dffe29f3e6399ba0d8 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
#
# $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