From c4be0a319a2934793a0a19cb9c4199bc4c30e6f1 Mon Sep 17 00:00:00 2001 From: Adrien Destugues Date: Mon, 13 Oct 2008 18:16:09 +0000 Subject: [PATCH] Updated the makefile for proper cross building git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@244 416bcca6-2ee7-4201-b75f-2eb2f807beb1 --- Makefile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index c6182d57..7a1239f8 100644 --- a/Makefile +++ b/Makefile @@ -34,8 +34,8 @@ else CC = i586-mingw32msvc-gcc BIN = grafx2.exe CFGBIN = gfxcfg.exe - COPT = -Wall -O -g -ggdb -Dmain=SDL_main - LOPT = -mwindows -lmingw32 -lSDLmain -lSDL -lshlwapi + COPT = -Wall -O -g -ggdb -Dmain=SDL_main `/usr/local/cross-tools/i386-mingw32/bin/sdl-config --cflags` + LOPT = -mwindows -lmingw32 -lSDLmain -lSDL -lshlwapi `/usr/local/cross-tools/i386-mingw32/bin/sdl-config --libs` else BIN = grafx2 CFGBIN = gfxcfg @@ -63,7 +63,7 @@ release : $(BIN) $(CFGBIN) # A release zip archive ziprelease: tar cvzf src-svn`svnversion`.tgz *.c *.h Makefile Makefile.dep - zip grafx2-beta-svn`svnversion`.zip $(BIN) $(CFGBIN) gfx2.dat gfx2.ico doc/gpl-2.0.txt SDL.dll 8pxfont.png src-svn`svnversion`.tgz + zip grafx2-beta-svn`svnversion`-win32.zip $(BIN) $(CFGBIN) gfx2.dat gfx2.ico doc/gpl-2.0.txt SDL.dll 8pxfont.png SDL_image.dll $(BIN) : $(OBJ) $(CC) $(OBJ) -o $(BIN) $(LOPT)