mirror of
https://github.com/gbdev/rgbds.git
synced 2025-11-20 10:12:06 +00:00
Improve MinGW target of Makefile
It works now with an install of MinGW for both Win32 and Win64. It needs libpng and zlib. Signed-off-by: Antonio Niño Díaz <antonio_nd@outlook.com>
This commit is contained in:
24
Makefile
24
Makefile
@@ -123,13 +123,23 @@ src/link/parser.h : src/link/parser.c
|
|||||||
# If you're building on Windows with Cygwin or Mingw, just follow the Unix
|
# If you're building on Windows with Cygwin or Mingw, just follow the Unix
|
||||||
# install instructions instead.
|
# install instructions instead.
|
||||||
mingw:
|
mingw:
|
||||||
$Qenv PATH=/usr/local/mingw32/bin:/bin:/usr/bin:/usr/local/bin \
|
$Q${RM} win32 win64
|
||||||
make WARNFLAGS= CC=gcc CFLAGS="-I/usr/local/mingw32/include \
|
$Qmkdir win32 win64
|
||||||
${CFLAGS}"
|
$Qenv make clean
|
||||||
$Qmv rgbasm rgbasm.exe
|
$Qenv PKG_CONFIG_PATH=/usr/i686-w64-mingw32/sys-root/mingw/lib/pkgconfig/ \
|
||||||
$Qmv rgblink rgblink.exe
|
make CC=i686-w64-mingw32-gcc YACC=bison WARNFLAGS= -j
|
||||||
$Qmv rgbfix rgbfix.exe
|
$Qmv rgbasm win32/rgbasm.exe
|
||||||
$Qmv rgbgfx rgbgfx.exe
|
$Qmv rgblink win32/rgblink.exe
|
||||||
|
$Qmv rgbfix win32/rgbfix.exe
|
||||||
|
$Qmv rgbgfx win32/rgbgfx.exe
|
||||||
|
$Qenv make clean
|
||||||
|
$Qenv PKG_CONFIG_PATH=/usr/x86_64-w64-mingw32/sys-root/mingw/lib/pkgconfig/ \
|
||||||
|
make CC=x86_64-w64-mingw32-gcc YACC=bison WARNFLAGS= -j
|
||||||
|
$Qmv rgbasm win64/rgbasm.exe
|
||||||
|
$Qmv rgblink win64/rgblink.exe
|
||||||
|
$Qmv rgbfix win64/rgbfix.exe
|
||||||
|
$Qmv rgbgfx win64/rgbgfx.exe
|
||||||
|
$Qenv make clean
|
||||||
|
|
||||||
# Below is a target for the project maintainer to easily create web manuals.
|
# Below is a target for the project maintainer to easily create web manuals.
|
||||||
# It relies on mandoc: http://mdocml.bsd.lv
|
# It relies on mandoc: http://mdocml.bsd.lv
|
||||||
|
|||||||
Reference in New Issue
Block a user