summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorGravatar jonas <himself@jonasgunz.de> 2019-04-25 19:11:51 +0200
committerGravatar jonas <himself@jonasgunz.de> 2019-04-25 19:11:51 +0200
commit31ab932657889f12ac6ea4e239a75d5f9c021faf (patch)
treed11576d5477505b70a96ad854056457d8529ee5a /Makefile
parenta2465bb8393f216ecb7a72604180cd9ec21c6fdb (diff)
downloadheadstripper-31ab932657889f12ac6ea4e239a75d5f9c021faf.tar.gz
Added Windows cross compile, Added DEBUG_PRINTF
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile13
1 files changed, 12 insertions, 1 deletions
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)