X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/f3ef286feebe70940b7db95f89eae01eabeee749..f21a7f94fc140318308cc1c5bc1d63ea2b4c62c7:/src/makeg95.env diff --git a/src/makeg95.env b/src/makeg95.env index 2250b07a5c..36a2a1d03a 100644 --- a/src/makeg95.env +++ b/src/makeg95.env @@ -7,7 +7,16 @@ # If using Cygwin, set this to 0. # If using Mingw32, set this to 1. -MINGW32=0 +MINGW32=1 + +# Set to the version you have +MINGW32VERSION=2.95 + +# Set to the appropriate remove command +RM=rm -f + +# Set to the appropriate copy command +COPY=cp ########################## Compiler ################################## @@ -15,9 +24,13 @@ MINGW32=0 # Put a comment before --pipe for Cygwin, remove comment for Mingw32 2.95 ifeq ($(MINGW32),1) -CC = gcc --pipe -fvtable-thunks + ifeq ($(MINGW32VERSION),2.95) + CC = gcc --pipe -fvtable-thunks + else + CC = gcc + endif else -CC = gcc + CC = gcc endif # C compiler for pure C programs @@ -119,6 +132,14 @@ WXINC=$(WXDIR)/include WXBASESRC=$(WXDIR)/src/common WXLIB=$(WXDIR)/lib/$(LIBPREFIX)wx.$(LIBSUFF) +GNUWIN32EXTRA=-I$(WXDIR)/include/wx/msw/gnuwin32 + +ifeq ($(MINGW32),1) + ifeq ($(MINGW32),2.95) + GNUWIN32EXTRA= + endif +endif + ifeq ($(MINGW32),1) INC = -I$(WXINC) -I$(WXDIR)/src/png -I$(WXDIR)/src/jpeg -I$(WXDIR)/src/zlib $(EXTRAINC) $(COMPPATHS) else @@ -127,7 +148,8 @@ endif RCLFLAGS=-cpp "cpp -lang-c++ -DWIN32 -D_WIN32 -DRCL_INVOKED -I$(WXWIN)/include" -LIBS = $(WXLIB) $(WINLIBS) $(COMPLIBS) $(EXTRALIBS) +#LIBS = $(WXLIB) $(WXDIR)/lib/libzlib.a $(WXDIR)/lib/libpng.a $(WXDIR)/lib/libjpeg.a $(WINLIBS) $(COMPLIBS) $(EXTRALIBS) +LIBS = $(WXLIB) -lpng -ljpeg -lzlib $(WINLIBS) $(COMPLIBS) $(EXTRALIBS) WINFLAGS=-D_X86_=1 -DWIN32 -D_WIN32 $(WINVERSION)