From d4f27968599cfc9593f1da9aa8e796d9a2ed6a86 Mon Sep 17 00:00:00 2001 From: Quinn Date: Sun, 15 Jun 2025 11:17:09 +0200 Subject: [PATCH] add definitions to quickly compile using a some default parameters --- makefile | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/makefile b/makefile index 6887208..ffe8072 100644 --- a/makefile +++ b/makefile @@ -91,6 +91,12 @@ COMPILE_COMMANDS := $(DIR_OBJ)/compile_commands.json run: compile_commands $(BIN); $(BIN) compile: compile_commands $(BIN) +# some definitions for "default" and assumed compilers, for bulk selection +.PHONY: all x86_64-linux-gnu-gcc x86_64-w64-mingw32-gcc +all: x86_64-linux-gnu-gcc x86_64-w64-mingw32-gcc +x86_64-linux-gnu-gcc:; $(MAKE) $(CALL) $(MAKEFLAGS) CC=$@ MARCH=x86_64 KERNEL=linux NOCMDS=1 +x86_64-w64-mingw32-gcc:; $(MAKE) $(CALL) $(MAKEFLAGS) CC=$@ MARCH=x86_64 KERNEL=mingw NOCMDS=1 + # creates the binary (linking step) $(BIN): $(OBJ) @mkdir -p $(@D)