summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon Robertshaw <simon@hardwired.org.uk>2012-01-31 12:35:18 (GMT)
committer Simon Robertshaw <simon@hardwired.org.uk>2012-01-31 12:35:18 (GMT)
commita6b03ddfd6abcbbaa26f701f8b679d87faec06f8 (patch)
tree72fc0b0e05384674c8ca393a40cc5fda107ecaa6
parentd11039fb36787dfe70dcf1ed583203a2ae3562b8 (diff)
downloadpowder-a6b03ddfd6abcbbaa26f701f8b679d87faec06f8.zip
powder-a6b03ddfd6abcbbaa26f701f8b679d87faec06f8.tar.gz
Font editor makefile for Windows
-rw-r--r--font/Makefile11
1 files changed, 10 insertions, 1 deletions
diff --git a/font/Makefile b/font/Makefile
index 606d53b..608827d 100644
--- a/font/Makefile
+++ b/font/Makefile
@@ -1,11 +1,20 @@
editor: editor.c
gcc -oeditor -DSCALE=2 -DFONTEDITOR editor.c -lSDL -lm -O3 -ffast-math -march=k8 -Wall -std=c99
+editor.exe: editor.c
+ gcc -oeditor.exe -DSCALE=2 -DFONTEDITOR editor.c -lmingw32 -lm -lSDLmain -lSDL -O3 -ffast-math -march=k8 -Wall -std=c99 -mwindows
+
packer: packer.c
gcc -opacker -DFONTEDITOR packer.c -lm -O3 -ffast-math -march=k8 -Wall -std=c99
+packer.exe: packer.c
+ gcc -opacker.exe -DFONTEDITOR packer.c -lm -O3 -ffast-math -march=k8 -Wall -std=c99
+
unpacker: unpacker.c
gcc -ounpacker -DFONTEDITOR unpacker.c -lm -O3 -ffast-math -march=k8 -Wall -std=c99
+unpacker.exe: unpacker.c
+ gcc -ounpacker.exe -DFONTEDITOR unpacker.c -lm -O3 -ffast-math -march=k8 -Wall -std=c99
+
clean:
- rm -f editor packer unpacker
+ rm -f editor packer unpacker editor.exe packer.exe unpacker.exe