From bc92e462eec122e4ba68f0711d1fb7c381d8ee72 Mon Sep 17 00:00:00 2001 From: Quinn Date: Mon, 13 Jan 2025 00:20:43 +0100 Subject: [PATCH] reorder makefile --- makefile | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/makefile b/makefile index 2bde6a2..31137f3 100644 --- a/makefile +++ b/makefile @@ -12,11 +12,6 @@ SRC = $(wildcard src/*.c) $(wildcard src/**/*.c) $(wildcard src/**/**/*.c) $(wil OBJ = $(patsubst src/%,$(DIR_OBJ)/$(ARCH)/%,$(SRC:.c=.o)) TARGET = $(DIR_BIN)/$(ARCH)/$(NAME)$(EXT) -all: linux-x86_64 win-x86_64 web - -clean: - rm -rf $(DIR_BIN) $(DIR_OBJ) - # sets the variables for the different targets linux-x86_64: $(MAKE) build ARCH=linux-x86_64 CFLAGS="$(CFLAGS) -target x86_64-pc-linux-gnu" @@ -25,6 +20,11 @@ win-x86_64: web: $(MAKE) build ARCH=web CC=emcc EXT=".html" +all: linux-x86_64 win-x86_64 web + +clean: + rm -rf $(DIR_BIN) $(DIR_OBJ) + build: dirs binary # creates the binary