diff options
| author | Kimplul <kimi.h.kuparinen@gmail.com> | 2024-08-18 01:15:01 +0300 |
|---|---|---|
| committer | Kimplul <kimi.h.kuparinen@gmail.com> | 2024-08-18 01:15:01 +0300 |
| commit | a44c59b6ab7b45bd52408bb67c17b6aa09aefeef (patch) | |
| tree | a102a0d1738403d6176b9a4b266e9fbb4c5d5ef1 /tasm/scripts/makefile | |
| parent | 4f0647740a3353781eab29a34ab1e0c16a0551ca (diff) | |
| download | tri-a44c59b6ab7b45bd52408bb67c17b6aa09aefeef.tar.gz tri-a44c59b6ab7b45bd52408bb67c17b6aa09aefeef.zip | |
enable analyzer for tasm, fix some reported issues
Diffstat (limited to 'tasm/scripts/makefile')
| -rw-r--r-- | tasm/scripts/makefile | 21 |
1 files changed, 13 insertions, 8 deletions
diff --git a/tasm/scripts/makefile b/tasm/scripts/makefile index 367c03e..1d3bf5d 100644 --- a/tasm/scripts/makefile +++ b/tasm/scripts/makefile @@ -30,9 +30,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 = -std=gnu17 -g @@ -56,15 +61,15 @@ LINT = $(COMPILER) \ UBSAN ?= 0 TASM_FLAGS != [ "$(UBSAN)" != "0" ] \ && echo -fsanitize=undefined \ - || echo + || : COMPILE_TASM = $(COMPILE) $(TASM_FLAGS) --include deps.mk --include src/source.mk +include deps.mk +include gen/source.mk -tasm: $(TASM_OBJS) - $(COMPILE_TASM) $(TASM_OBJS) -o $@ +tasm: $(TASM_OBJS) build/gen/gen_parser.o + $(COMPILE_TASM) $(TASM_OBJS) build/gen/gen_parser.o -o $@ # might lint some common things twice |
