X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/75515c52a48086d39f1584caec03fefaacb37306..70aedad68fe4fc59134c55055b35f35a5ce3fd7a:/src/makeg95.env diff --git a/src/makeg95.env b/src/makeg95.env index 7dfcb53b0a..ace66917c3 100644 --- a/src/makeg95.env +++ b/src/makeg95.env @@ -27,9 +27,12 @@ LD_SUPPORTS_SHARED=yes # Set to the appropriate remove command RM=rm -f -# Set to the appropriate copy command and separator +# Set to the appropriate copy command COPY=cp +# Cross compiling? Provide the target prefix (eg., i386-mingw32-) +# CROSS=i386-mingw32- + ########################## Compiler ################################## # C++ compiler @@ -37,19 +40,19 @@ COPY=cp ifeq ($(MINGW32),1) ifneq "$(findstring 2.95, $(MINGW32VERSION))" "" - CC = gcc --pipe -fvtable-thunks + CC = $(CROSS)gcc --pipe -fvtable-thunks else - CC = gcc + CC = $(CROSS)gcc endif else - CC = gcc + CC = $(CROSS)gcc endif # C compiler for pure C programs CCC = $(CC) # Compiler used for LEX generated C -CCLEX=gcc +CCLEX=$(CROSS)gcc # GRG: This shouldn't be here! make is supposed to define the # MAKE variable itself. @@ -63,17 +66,18 @@ YACC=byacc #YACC=bison # Settings for Cyginw/Mingw32 -RESCOMP=windres +RESCOMP=$(CROSS)windres RCINPUTSWITCH=-i RCOUTPUTSWITCH=-o RCINCSWITCH=--include-dir RCDEFSWITCH=--define +RCPREPROCESSOR=--preprocessor "$(CC) -c -E -xc-header -DRC_INVOKED" -RESFLAGS=$(RCINCSWITCH) $(WXDIR)/include $(RCDEFSWITCH) __WIN32__ $(RCDEFSWITCH) __WIN95__ $(RCDEFSWITCH) __GNUWIN32__ +RESFLAGS=$(RCPREPROCESSOR) $(RCINCSWITCH) $(WXDIR)/include $(RCDEFSWITCH) __WIN32__ $(RCDEFSWITCH) __WIN95__ $(RCDEFSWITCH) __GNUWIN32__ # Needed to build a DLL if your linker does not support --shared option. -AS = as -DLLTOOL = dlltool +AS = $(CROSS)as +DLLTOOL = $(CROSS)dlltool ########################## Compiler flags ############################# @@ -124,9 +128,9 @@ OPT = -fno-pcc-struct-return -O2 -fno-rtti -fno-exceptions # Options for ar archiver # AROPTIONS = crs # For IRIX and Solaris (both SYSVR4). -AR = ar +AR = $(CROSS)ar AROPTIONS = ruv -RANLIB = ranlib +RANLIB = $(CROSS)ranlib # Extra compiler libraries COMPLIBS=