ref: 7b4746b20e023c9927e6108e36a48b95147b8b93
parent: cf3bfb1372af94f1b925e52fe60870fc6317a01e
author: Anthony J. Bentley <[email protected]>
date: Thu Oct 18 16:46:17 EDT 2012
Add a MinGW target for me to easily create Windows executables. This is not for Windows users!
--- a/Makefile
+++ b/Makefile
@@ -45,10 +45,10 @@
all: rgbasm rgblib rgblink rgbfix
clean:
- ${Q}rm -rf rgbasm ${rgbasm_obj}
- ${Q}rm -rf rgblib ${rgblib_obj}
- ${Q}rm -rf rgblink ${rgblink_obj}
- ${Q}rm -rf rgbfix ${rgbfix_obj}
+ ${Q}rm -rf rgbasm rgbasm.exe ${rgbasm_obj}
+ ${Q}rm -rf rgblib rgblib.exe ${rgblib_obj}
+ ${Q}rm -rf rgblink rgblink.exe ${rgblink_obj}
+ ${Q}rm -rf rgbfix rgbfix.exe ${rgbfix_obj}
${Q}rm -rf src/asm/asmy.c
install: all
@@ -86,3 +86,15 @@
src/asm/asmy.y: ${yacc_pre}
${Q}cat ${yacc_pre} > $@
+
+
+# Below is a target for the project maintainer to easily create win32 exes.
+# This is not for Windows users!
+# If you're building on Windows with Cygwin or Mingw, just follow the Unix
+# install instructions instead.
+mingw:
+ ${Q}env PATH=/usr/local/mingw32/bin:/bin:/usr/bin:/usr/local/bin make CC=gcc CFLAGS="-I/usr/local/mingw32/include ${CFLAGS}"
+ ${Q}mv rgbasm rgbasm.exe
+ ${Q}mv rgblib rgblib.exe
+ ${Q}mv rgblink rgblink.exe
+ ${Q}mv rgbfix rgbfix.exe