From dffe2a032c57d4e00ae82a5c6ac70093566936bf Mon Sep 17 00:00:00 2001 From: pixel Date: Wed, 6 Aug 2008 13:21:29 +0000 Subject: Updating win32 compilation process. --- Makefile.mingw32 | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'Makefile.mingw32') diff --git a/Makefile.mingw32 b/Makefile.mingw32 index c210a45..41fdcba 100644 --- a/Makefile.mingw32 +++ b/Makefile.mingw32 @@ -2,8 +2,8 @@ CC = i586-mingw32msvc-gcc LD = i586-mingw32msvc-gcc AR = i586-mingw32msvc-ar rcs -CPPFLAGS = -g -Wall -Werror -D_FILE_OFFSET_BITS=64 -I. -I ../zlib-win32/include -LDFLAGS = -g -lz +CPPFLAGS = -g -Wall -Werror -D_FILE_OFFSET_BITS=64 -I. -I ../gnuwin32/include +LDFLAGS = -g -L../gnuwin32/lib SOURCE_LIST = \ MPQCryptography.c \ @@ -19,7 +19,7 @@ mpq-fs.c \ mpq-misc.c \ -TARGET = mpqlib.a +TARGET = mpqlib.dll OBJ_LIST = $(addsuffix .o, $(notdir $(basename $(SOURCE_LIST)))) @@ -28,13 +28,13 @@ DEP_LIST = $(addsuffix .dep, $(notdir $(basename $(SOURCE_LIST)))) all: dep $(TARGET) $(TARGET): $(OBJ_LIST) - $(AR) $@ $(OBJ_LIST) + $(LD) -shared -Wl,--output-def=mpqlib.def -Wl,--out-implib=mpqlib.a -o mpqlib.dll $(OBJ_LIST) -g -fexceptions -Wl,--enable-auto-image-base -Wl,--export-dynamic --export-all-symbols -Wl,--enable-auto-import -fexceptions -lz.dll $(LDFLAGS) test-it.exe: $(TARGET) test-it.o $(LD) -o test-it.exe test-it.o $(TARGET) $(LDFLAGS) clean: - rm -f *.o *.dep $(TARGET) test-it.exe + rm -f *.o *.dep $(TARGET) test-it.exe *.dll *.a dep: $(DEP_LIST) -- cgit v1.2.3