From 31ab932657889f12ac6ea4e239a75d5f9c021faf Mon Sep 17 00:00:00 2001 From: jonas Date: Thu, 25 Apr 2019 19:11:51 +0200 Subject: Added Windows cross compile, Added DEBUG_PRINTF --- Makefile | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index fa9cbde..960d3af 100644 --- a/Makefile +++ b/Makefile @@ -15,7 +15,18 @@ build: dir $(OBJ) @$(CC) $(CFLAGS) -o $(BUILDDIR)/$(OUTPUT) $(OBJ) $(LDFLAGS) debug: CFLAGS += -g -D _DEBUG -debug: build; +debug: debug_set build; + +#CLEAN BEFORE WINDOWS BUILD!!! +windows: CC = x86_64-w64-mingw32-gcc +windows: OUTPUT =hs.exe +windows: build; + +windows_debug: CC = x86_64-w64-mingw32-gcc +windows_debug: OUTPUT =hs.exe +windows_debug: CFLAGS += -g -D _DEBUG +windows_debug: build; + dir: @mkdir -p $(OBJECTDIR) -- cgit v1.2.3