1
1
# This Makefile template requires the following variables to be set
2
2
# in the environment or on the command-line:
3
3
# JULIA: path to julia[.exe] executable
4
- # BIN: binary build directory
5
4
6
5
ifndef JULIA
7
- $(error "Please pass JULIA=[path of target julia binary], or set as environment variable!")
8
- endif
9
- ifndef BIN
10
- $(error "Please pass BIN=[path of build directory], or set as environment variable!")
6
+ $(error "Please pass JULIA=[path of Julia binary], or set as environment variable!")
11
7
endif
12
8
13
9
# =============================================================================
14
10
# location of test source
15
11
SRCDIR := $(abspath $(dir $(lastword $(MAKEFILE_LIST ) ) ) )
16
12
PKGDIR := $(dir $(SRCDIR ) )
17
- JULIAHOME := $(abspath $(JULIA ) /../.. )
18
- BUILDSCRIPT := $(BIN ) /../ share/julia/juliac-buildscript .jl
13
+ JULIAHOME := $(abspath $(subst bin,, $( dir $( JULIA )) ) )
14
+ BUILDSCRIPT := $(JULIAHOME ) / share/julia/juliac.jl
19
15
# include $(JULIAHOME)/Make.inc
20
16
21
17
# FIXME
@@ -34,14 +30,14 @@ LDFLAGS_ADD = -lm $(shell $(JULIA_CONFIG) --ldflags --ldlibs) -ljulia-internal
34
30
35
31
release : NMFMerge-jl.$(SHLIB_EXT )
36
32
37
- NMFMerge-jl.$(SHLIB_EXT ) : $(PKGDIR ) /src/NMFMerge.jl $(BUILDSCRIPT )
38
- $(JULIA ) -t 1 -J $(BIN ) /../lib/julia/sys.$(SHLIB_EXT ) --project --startup-file=no --history-file=no --output-incremental=no --strip-ir --strip-metadata --experimental --trim $(BUILDSCRIPT ) $( SRCDIR ) /lib.jl --output-lib NMFMerge-jl.so
33
+ NMFMerge-jl.$(SHLIB_EXT ) : $(PKGDIR ) /src/NMFMerge.jl $(SRCDIR ) /lib.jl $( BUILDSCRIPT )
34
+ $(JULIA ) -t 1 -J $(dir $( JULIA ) ) /../lib/julia/sys.$(SHLIB_EXT ) --project --startup-file=no --history-file=no --output-incremental=no --strip-ir --strip-metadata $( BUILDSCRIPT ) --experimental --trim $(SRCDIR ) /lib.jl --output-lib $( SRCDIR ) / NMFMerge-jl.$( SHLIB_EXT )
39
35
40
36
check : hello$(EXE ) basic_jll$(EXE ) # FIXME
41
37
$(JULIA ) --depwarn=error $(SRCDIR ) /../runtests.jl $(SRCDIR ) /trimming
42
38
43
- clean : # FIXME
44
- -rm -f hello $( EXE ) basic_jll $( EXE ) init.o hello.o basic_jll.o
39
+ clean :
40
+ -rm -f $( SRCDIR ) /NMFMerge-jl. $( SHLIB_EXT )
45
41
46
42
.PHONY : release clean check
47
43
0 commit comments