Tools now share a common base makefile

This commit is contained in:
alpine9000
2016-03-13 09:15:27 +11:00
parent 38d0ee41be
commit cfb11f92c9
5 changed files with 58 additions and 73 deletions
+5 -17
View File
@@ -1,22 +1,10 @@
MAKEADF=./out/makeadf
SRCS=makeadf.c
HOST_WARNINGS=-pedantic-errors -Wfatal-errors -Wall -Werror -Wextra -Wno-unused-parameter -Wshadow
HOST_CFLAGS=$(HOST_WARNINGS)
PROGRAM=./out/makeadf
OBJS=./out/makeadf.o
$(MAKEADF): out bin $(SRCS)
gcc $(HOST_CFLAGS) $(SRCS) -o $(MAKEADF)
include ../../shared/tools.mk
out:
mkdir out
bin:
mkdir bin
clean:
rm -r out bin *~
test: $(MAKEADF)
$(MAKEADF) reference/bootblock.bin > out/test.adf
test: $(PROGRAM)
$(PROGRAM) reference/bootblock.bin > out/test.adf
diff reference/test.adf out/test.adf
@echo "______ ___ _____ _____ ___________ "
@echo "| ___ \/ _ \ / ___/ ___| ___| _ \ "