# Rename this file to make.env and put it in the directory # (your-wxWindows-directory)/src/make.env for a normal Linux # compilation environment, or edit the original out yourself. # # ps. To compile wx160.tgz w/ gcc, I had to change # Line 232 of file $(WXWINDIR)/src/base/wb_ps.cc # - pstream = new ofstream (wx_printer_file); # + pstream = new ofstream ((char*)&wx_printer_file); # # --------------------- # # make.env # Common makefile settings for wxWindows programs # This file is included by all the other makefiles, thus changes # made here take effect everywhere (except where overriden). # # An alternative to editing this file is to create a shell script # to export specific variables, and call make with the -e switch # to override makefile variables. See wx/install/install.txt. # And you can override specific variables on the make command line, e.g. # # make -f makefile.unix DEBUG='' # ########################## Compiler ################################## # C++ compiler #CC = gcc-2.1 CC = gcc # C compiler for pure C programs # Typical: CC=g++ , CCC=gcc # CC=cl386 /Tp, CCC=cl386 # # (Used only for XView, file sb_scrol.c) # CCC = $(CC) # Compiler used for LEX generated C CCLEX=$(CC) ########################## Compiler flags ############################# # Miscellaneous compiler options # May need to add -D_HPUX_SOURCE_ for HPUX # Solaris: add -DSVR4 OPTIONS= # Debugging information #DEBUG = -ggdb DEBUG= # Warnings WARN = -Wall # Which GUI, -Dwx_xview or -Dwx_motif (don't change this) GUI = -Dwx_xview # Optimisation # For better optimization, -O2 would be nice. # use -m486 if you have a 486. # OPT = -O OPT = -O -m486 # Options for ar archiver # AROPTIONS = crs # For IRIX. Also, comment out ranlib line. AROPTIONS = ruv # System specific, points to the XVIEW & X11 libraries # Change to your own directories INCLUDE=-I/usr/openwin/include/xview #LIB=-L/usr/local/X11/lib -L/usr/openwin/lib -L/usr/X11/lib LIB=-L/usr/openwin/lib -L/usr/X11/lib # Compiler libraries: defaults to GCC libraries # Sun with Sun CC: -lc # Solaris: -lgen -ldl -lsocket -lnsl # and/or possibly -lucb, whatever that is... # SGI: -lPW COMPLIBS=-lg++ $(LIB) # Compiler or system-specific include paths # E.g. some SPARCStations need # -I/usr/ucbinclude/sys COMPPATHS=$(INCLUDE) # HP-specific compiler library: an AIAI convenience HPCOMPLIBS= # LDLIBS for specific GUIs MOTIFLDLIBS = -lwx_motif -lXm -lXt -lX11 -lm $(COMPLIBS) XVIEWLDLIBS = $(LIB) -lwx_ol -lxview -lolgx -lX11 -lm $(COMPLIBS) HPLDLIBS=-lwx_hp -lXm -lXt -lX11 -lm # Default LDLIBS for XView (don't change this) LDLIBS = $(XVIEWLDLIBS) # _ol or _motif (don't need to change, the makefiles will take # care of it if you use motif/hp/xview targets) GUISUFFIX=_ol ########################## Directories ############################### # Replace X include/lib directories with your own #INCLUDE=-I/usr/openwin/include #LIB=-L/usr/local/X11/lib -L/usr/openwin/lib #XINCLUDE=-I/aiai/packages/motif1.2.1/motif/include -I/aiai/packages/X.V11R5/inc lude #XLIB=-L/aiai/packages/motif1.2.1/motif/sun4/lib -L/aiai/packages/X.V11R5/lib # A convenience, for HP compilation #HPXINCLUDE=-I/usr/include/Motif1.2 -I/usr/include/X11R5 #HPXLIB=-L/usr/lib/Motif1.2 -L/usr/lib/X11R5 # Shouldn't need to change these... WXINC = $(WXDIR)/include/x WXBASEINC = $(WXDIR)/include/base WXLIB = $(WXDIR)/lib/libwx$(GUISUFFIX).a INC = -I$(WXBASEINC) -I$(WXINC) $(COMPPATHS) # Directory for object files (don't change) OBJDIR = objects$(GUISUFFIX) # You shouldn't need to change these... CPPFLAGS = $(XINCLUDE) $(INC) $(OPTIONS) $(GUI) $(DEBUG) $(WARN) $(OPT) CFLAGS = $(XINCLUDE) $(INC) $(OPTIONS) $(GUI) $(DEBUG) $(WARN) $(OPT) LDFLAGS = $(XLIB) -L$(WXDIR)/lib # Extra patch link for XView XVIEW_LINK = $(WXDIR)/src/x/objects_ol/sb_scrol.o