From d6bb5771cb3182d69050b0dbd3fd70ac46f7c837 Mon Sep 17 00:00:00 2001 From: FeralChild64 Date: Mon, 21 Sep 2020 23:14:29 +0200 Subject: [PATCH] makefile fixes --- Makefile | 23 ++++++++++++++++------- 1 file changed, 16 insertions(+), 7 deletions(-) diff --git a/Makefile b/Makefile index ae8691d2..66f3d5f9 100644 --- a/Makefile +++ b/Makefile @@ -206,25 +206,34 @@ updatebin: # Rules - tools $(DIR_ACME) $(SRC_ACME) $(HDR_ACME): - git submodule init - git submodule update + @echo + @echo Fetching ACME source code... + @git submodule init + @git submodule update $(TOOL_ASSEMBLER): $(DIR_ACME) $(SRC_ACME) $(HDR_ACME) + @echo + @echo Building $@ ... @mkdir -p build/tools - echo $(OUT_ACME) - $(CC) -o $(TOOL_ASSEMBLER) $(SRC_ACME) -lm -w -I./assembler/acme/src + @$(CC) -o $(TOOL_ASSEMBLER) $(SRC_ACME) -lm -w -I./assembler/acme/src $(TOOL_PNGPREPARE): tools/pngprepare.c + @echo + @echo Building $@ ... @mkdir -p build/tools - $(CC) -O2 -Wall -I/usr/local/include -L/usr/local/lib -o $@ $< -lpng + @$(CC) -O2 -Wall -I/usr/local/include -L/usr/local/lib -o $@ $< -lpng build/tools/%: tools/%.c + @echo + @echo Building $@ ... @mkdir -p build/tools - $(CC) -O2 -Wall -o $@ $< + @$(CC) -O2 -Wall -o $@ $< build/tools/%: tools/%.cc tools/common.h + @echo + @echo Building $@ ... @mkdir -p build/tools - $(CXX) -O2 -Wall -o $@ $< + @$(CXX) -O2 -Wall -o $@ $< # Rules - CHARGEN