The R Project SVN R

Rev

Rev 56071 | Rev 67610 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 56071 Rev 63122
Line 33... Line 33...
33
test: test-static.exe
33
test: test-static.exe
34
else
34
else
35
test: test-static.exe test.exe
35
test: test-static.exe test.exe
36
endif
36
endif
37
 
37
 
-
 
38
 
38
## see R-admin for alternatives
39
## see R-admin for alternatives
39
test.exe: test.c
40
test.exe: test.c
40
	$(CC) -I../../include -DRMATH_DLL -o $@ $< -L. Rmath.dll
41
	$(CC) -I../../include -DRMATH_DLL -o $@ $< -L. Rmath.dll
41
	./$@
42
	./$@
42
test-static.exe: test.c
43
test-static.exe: test.c
43
	$(CC) -I../../include -o $@ $< -L. libRmath.a
44
	$(CC) -I../../include -o $@ $< -L. libRmath.a
44
	./$@
45
	./$@
45
 
46
 
-
 
47
check: distclean
-
 
48
	@rm -f check.log
-
 
49
	@if test -n "${TEST_MC_CORES}"; then \
-
 
50
	  echo "using ${TEST_MC_CORES} cores" > check.log; \
-
 
51
	  $(MAKE) -f Makefile.win -j ${TEST_MC_CORES} all >> check.log 2>&1; \
-
 
52
	  $(MAKE) -f Makefile.win test >> check.log 2>&1; \
-
 
53
	else \
-
 
54
	  $(MAKE) -f Makefile.win all test > check.log 2>&1; \
-
 
55
	fi
-
 
56
	@$(ECHO) "check output can be found in src/nmath/standalone/check.log"
-
 
57
 
46
clean:
58
clean:
47
	$(RM) $(SOURCES_NMATH) *.o *.d *.def Makedeps stamp-src
59
	@$(RM) $(SOURCES_NMATH) *.o *.d *.def Makedeps stamp-src
48
distclean: clean
60
distclean: clean
49
	$(RM) *.a Rmath.dll test*.exe
61
	@$(RM) *.a Rmath.dll test*.exe check.log
50
 
62
 
51
DEFS = -DHAVE_CONFIG_H -DMATHLIB_STANDALONE
63
DEFS = -DHAVE_CONFIG_H -DMATHLIB_STANDALONE
52
CPPFLAGS=-I.. -I../../include $(DEFS)
64
CPPFLAGS=-I.. -I../../include $(DEFS)
53
 
65
 
54
SOURCES_NMATH = \
66
SOURCES_NMATH = \