forked from JuliaLang/julia
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
32 lines (24 loc) · 934 Bytes
/
Makefile
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
JULIAHOME = $(abspath ..)
include ../Make.inc
TESTS = all core keywordargs numbers strings unicode corelib hashing \
remote iostring arrayops linalg blas fft dsp sparse bitarray \
random math functional bigint sorting statistics spawn parallel \
arpack bigfloat file git pkg pkg2 suitesparse complex version pollfd
$(TESTS) ::
$(QUIET_JULIA) $(JULIA_EXECUTABLE) ./runtests.jl $@
perf:
ifneq ($(MAKECMDGOALS),perf)
$(QUIET_JULIA) $(JULIA_EXECUTABLE) perf/[email protected]
else
@$(JULIA_EXECUTABLE) perf/[email protected] | perl -nle '@_=split/,/; printf "%-14s %7.3f\n", $$_[1], $$_[2]'
endif
benchmark:
@$(MAKE) -C perf $@
clean:
@$(MAKE) -C perf $@
-rm -f libccalltest.${SHLIB_EXT} ccalltest
.PHONY: $(TESTS) perf benchmark clean
libccalltest.$(SHLIB_EXT): ccalltest.c
$(CC) $(CFLAGS) $(DEBUGFLAGS) -O3 $< -fPIC -shared -o $@ $(LDFLAGS) -DCC=$(CC)
ccalltest: ccalltest.c
$(CC) $(CFLAGS) $(DEBUGFLAGS) -O3 $< -o $@ $(LDFLAGS) -DCC=$(CC)