mirror of
https://github.com/thepigeongenerator/sdl_template.git
synced 2025-12-17 05:55:47 +01:00
reorder makefile
This commit is contained in:
10
makefile
10
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))
|
OBJ = $(patsubst src/%,$(DIR_OBJ)/$(ARCH)/%,$(SRC:.c=.o))
|
||||||
TARGET = $(DIR_BIN)/$(ARCH)/$(NAME)$(EXT)
|
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
|
# sets the variables for the different targets
|
||||||
linux-x86_64:
|
linux-x86_64:
|
||||||
$(MAKE) build ARCH=linux-x86_64 CFLAGS="$(CFLAGS) -target x86_64-pc-linux-gnu"
|
$(MAKE) build ARCH=linux-x86_64 CFLAGS="$(CFLAGS) -target x86_64-pc-linux-gnu"
|
||||||
@@ -25,6 +20,11 @@ win-x86_64:
|
|||||||
web:
|
web:
|
||||||
$(MAKE) build ARCH=web CC=emcc EXT=".html"
|
$(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
|
build: dirs binary
|
||||||
|
|
||||||
# creates the binary
|
# creates the binary
|
||||||
|
|||||||
Reference in New Issue
Block a user