Chris Reuter committed 339b17a

Updated the MSys build files.

The Makefiles and scripts for building under MSYS had rotted a bit. This
change fixes those things.

Comments (0)

Files changed (3)


-# GnuWin32 libs are all installed in one place
+# GnuWin32 libs should all be installed in one place.
 # Various optional components.  Comment-out the ones you don't have
 # and edit the paths and options as needed if you do.  The default
 gdfonts.c gdfontt.c gdft.c gdhelpers.c gdkanji.c gdtables.c gdxpm.c	\
 wbmp.c gd_filter.c gd_nnquant.c gd_rotate.c gd_matrix.c				\
 gd_interpolation.c gd_crop.c webpimg.c gd_webp.c gd_tiff.c gd_tga.c	\
-gd_bmp.c gd_xbm.c gd_color_match.c gd_version.c
+gd_bmp.c gd_xbm.c gd_color_match.c gd_version.c gd_filename.c
 	(cd ../../src; rm -f $(TARGET) $(OBJ) $(TARGET_A)
 check: all
-	bash "$(INCLUDES)"
+	bash "$(GNUDIR)/bin" "$(INCLUDES)"
 	[ -f gd.h ] # Sanity check: we're in src/, right?


 2. Install LibJpeg, LibPng, LibTiff, Zlib and FreeType from
    <> and install them all in
-   <c:/Program Files/GnuWin32>.  (You can get these libraries from other
+   `c:/tools/GnuWin32/`.  (You can get these libraries from other
    places and/or install them in different locations, but you'll need to
    edit the Makefile accordingly if you do.)


 set -e
 # Parameters
-CFLAGS_EXTRA=$1     # Extra C flags
+DLLPATH_EXTRA=$1        # Path to supporting DLLs
+CFLAGS_EXTRA=$2         # Extra C flags
 CFLAGS="-g -Igdtest/ -I. -I../src/ -D_WIN32 $CFLAGS_EXTRA"
 LDFLAGS='-L../src -llibgd.3.0.1'
 function run_gcc {
     if msg=`gcc $* 2>&1`; then
 # Switch to the working directory
 cd ../../tests
 # Initial setup