The R Project SVN R

Rev

Rev 20193 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 20193 Rev 20297
Line -... Line 1...
-
 
1
#
-
 
2
# ${R_HOME}/tests/Native/Makefile
-
 
3
 
-
 
4
VPATH = @srcdir@
-
 
5
srcdir = @srcdir@
-
 
6
top_srcdir = @top_srcdir@
-
 
7
 
1
top_builddir = ../..
8
top_builddir = ../..
-
 
9
subdir = tests/Native
-
 
10
 
-
 
11
include $(top_builddir)/Makeconf
-
 
12
 
-
 
13
distdir = $(top_builddir)/$(PACKAGE)-$(VERSION)/$(subdir)
-
 
14
 
-
 
15
SOURCES_R = check.S
-
 
16
SOURCES_C = Tests.c
2
 
17
 
3
include $(top_builddir)/etc/Makeconf
18
DISTFILES = Makefile.in $(SOURCES_R) $(SOURCES_C)
4
 
19
 
5
R=$(top_builddir)/bin/R 
20
R=$(top_builddir)/bin/R 
6
 
21
 
-
 
22
all: Makefile R-sources check
-
 
23
 
-
 
24
Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
-
 
25
	@cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@
-
 
26
 
-
 
27
R-sources:
-
 
28
	@if test "$(BUILDDIR_IS_SRCDIR)" = no ; then \
-
 
29
	  for f in $(SOURCES_R); \
-
 
30
	    do $(INSTALL_DATA) $(srcdir)/$${f} .; \
-
 
31
	  done; \
-
 
32
	fi
-
 
33
 
7
check: check.S Tests$(SHLIB_EXT)
34
check: check.S Tests$(SHLIB_EXT)
8
	$(R) --vanilla < check.S
35
	$(R) --vanilla < check.S
9
 
36
 
10
Tests$(SHLIB_EXT): Tests.c
37
Tests$(SHLIB_EXT): Tests.o
11
	$(R) CMD SHLIB -o $@ $^
38
	$(SHLIB_LINK) -o $@ Tests.o
12
 
39
 
-
 
40
mostlyclean: clean
13
clean:
41
clean:
14
	rm Tests.o Tests$(SHLIB_EXT)
-
 
15
42
	@if test "$(BUILDDIR_IS_SRCDIR)" = no ; then \
-
 
43
	  rm -f $(SOURCES_R); \
-
 
44
	fi
-
 
45
	@-rm -rf .libs _libs
-
 
46
	@-rm -f *.o *$(SHLIB_EXT) Rplots.ps
-
 
47
distclean: clean
-
 
48
	@-rm -f Makefile
-
 
49
maintainer-clean: distclean
-
 
50
 
-
 
51
distdir: $(DISTFILES)
-
 
52
	@for f in $(DISTFILES); do \
-
 
53
	  test -f $(distdir)/$${f} \
-
 
54
	    || ln $(srcdir)/$${f} $(distdir)/$${f} 2>/dev/null \
-
 
55
	    || cp -p $(srcdir)/$${f} $(distdir)/$${f}; \
-
 
56
	done
-
 
57