diff options
Diffstat (limited to 'scripts')
| -rw-r--r-- | scripts/makefile | 17 |
1 files changed, 11 insertions, 6 deletions
diff --git a/scripts/makefile b/scripts/makefile index e247e7a..75631b7 100644 --- a/scripts/makefile +++ b/scripts/makefile @@ -32,9 +32,14 @@ OBJCOPY != [ "$(LLVM)" != "0" ] \ && echo llvm-objcopy \ || echo $(CROSS_COMPILE)objcopy -COMPILER != [ "$(LLVM)" != "0" ] \ - && echo clang --target="$(CROSS_COMPILE)" \ - || echo $(CROSS_COMPILE)gcc +COMPILER != [ -n "$(CROSS_COMPILE)" ] \ + && { \ + [ "$(LLVM)" != "0" ] \ + && echo clang --target="$(CROSS_COMPILE)" \ + || echo $(CROSS_COMPILE)gcc \ + ; \ + } \ + || echo $(CC) OBFLAGS := -g @@ -60,10 +65,10 @@ COMPILE_EK = $(COMPILE) $(EK_FLAGS) -include deps.mk -ek: $(EK_OBJS) - $(COMPILE_EK) $(EK_OBJS) -o $@ +ek: $(EK_OBJS) build/gen/parser.o + $(COMPILE_EK) $(EK_OBJS) build/gen/parser.o -o $@ # might lint some common things twice .PHONY: -lint: $(TRISCV_LINTS) +lint: $(EK_LINTS) |
