Add jasmin as submodule because my branch cannot be build using nix-build
This commit is contained in:
9
Makefile
9
Makefile
@@ -1,8 +1,8 @@
|
||||
JC ?= jasminc
|
||||
JC ?= jasmin/compiler/jasminc
|
||||
CC ?= gcc
|
||||
MAKE ?= make
|
||||
|
||||
.PHONY: clean run
|
||||
.PHONY: clean run $(JC)
|
||||
|
||||
all: build
|
||||
@true
|
||||
@@ -16,5 +16,8 @@ build/%.o: build/%.S
|
||||
clean:
|
||||
rm build/* 2> /dev/null || true
|
||||
|
||||
build/%.S: src/%.jazz
|
||||
$(JC):
|
||||
nix-shell jasmin/default.nix --command 'make -C jasmin/compiler CIL -j$(nproc) && make -C jasmin/compiler'
|
||||
|
||||
build/%.S: src/%.jazz $(JC)
|
||||
JASMINPATH="Jade=libjade/src/" $(JC) $< -o $@
|
||||
|
||||
Reference in New Issue
Block a user