From f0f5c379513ada7482aa4ead08df1043e9c7d267 Mon Sep 17 00:00:00 2001 From: David Phillips Date: Sat, 3 Aug 2019 13:41:33 +1200 Subject: Enable -Wall and -Wextra, fix warnings --- Makefile | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 843ccca..752b867 100644 --- a/Makefile +++ b/Makefile @@ -1,7 +1,11 @@ +CFLAGS = -Wall -Wextra + +EXECUTABLES = assembler disassembler + ASM_OBJECTS = lex.o parse.o output.o assembler.o util.o DISASM_OBJECTS = disassembler.o util.o input_bin.o output_asm.o -all: assembler disassembler +all: $(EXECUTABLES) assembler: $(ASM_OBJECTS) @@ -17,7 +21,7 @@ util.o: lex.h instruction.h .PHONY: clean test clean: - - rm -f assembler disasm $(ASM_OBJECTS) + - rm -f $(EXECUTABLES) $(ASM_OBJECTS) $(DISASM_OBJECTS) test: all make -C test test -- cgit v1.1