X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/f3ef286feebe70940b7db95f89eae01eabeee749..b4d1ebf058c64f5b9e0ddf3264ce8a801eae4f79:/src/makeg95.env diff --git a/src/makeg95.env b/src/makeg95.env index 2250b07a5c..9c40db3f39 100644 --- a/src/makeg95.env +++ b/src/makeg95.env @@ -9,15 +9,28 @@ # If using Mingw32, set this to 1. MINGW32=0 +# 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 ################################## # C++ compiler # 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)