]> git.saurik.com Git - wxWidgets.git/blob - src/makeg95.env
Updates to memcheck
[wxWidgets.git] / src / makeg95.env
1 # makeg95.env
2 # Common makefile settings for wxWindows programs
3 # This file is included by all the other makefiles, thus changes
4 # made here take effect everywhere (except where overriden).
5 #
6 # An alternative to editing this file is to create a shell script
7 # to export specific variables, and call make with the -e switch
8 # to override makefile variables. See wx/install/install.txt.
9 # And you can override specific variables on the make command line, e.g.
10 #
11 # make -f makefile.unix WXDEBUG=''
12 #
13 # You may prefer to use the GNU configure script than raw makefiles -
14 # see contrib/wxshlib.
15 #
16
17 ########################## Compiler ##################################
18
19 # C++ compiler
20 # For AIX/CSet++: use CC = xlC
21 # For IRIX: use CC = CC
22 # CC = gcc-2.6.2
23 CC = gcc
24
25 # C compiler for pure C programs
26 # Typical: CC=g++ , CCC=gcc
27 # CC=cl386 /Tp, CCC=cl386
28 #
29 # (Used only for XView, file sb_scrol.c)
30 #
31 CCC = $(CC)
32
33 # Compiler used for LEX generated C
34 # AIX: use $(CCC)
35 CCLEX=$(CC)
36
37 MAKE=make
38
39 # LEX
40 LEX=flex.exe -t -L
41
42 # YACC. byacc or bison
43 # YACC=byacc.exe
44 YACC=bison.exe
45
46 # Resource compiler
47 RESCOMP=windres.exe
48
49 RESFLAGS=--include-dir $(WXDIR)/include --define __WIN32__ --define __WIN95__ --define __GNUWIN32__
50
51 ########################## Compiler flags #############################
52
53 # Miscellaneous compiler options
54 OPTIONS= # -D__MINGW32__ # -D__EGCS__
55
56 # Debugging information
57 # AIX: comment out.
58 # IRIX: -g3
59 DEBUGFLAGS = -ggdb -D__WXDEBUG__
60
61 # Debug/trace mode. 1 or more for debugging.
62 WXDEBUG=0
63
64 WIN95=1
65
66 ifeq ($(WIN95),0)
67 # With 3.50, Win95 will use your existing icons to show smaller ones.
68 # With 4.0, you'll have to follow Win95 procedures for icons or you'll get the
69 # default Windows icon.
70 APPVER=3.50
71 WINVERSION=-DWINVER=0x0350 -D__GNUWIN32__ -D__WIN32__ # Generic WIN32
72 else
73 APPVER=3.50 # 4.0
74 # This means 'enable Windows 95 features' (in wxWindows and in VC++ 4.0).
75 WINVERSION=-DWINVER=0x0400 -D__WIN95__ -D__GNUWIN32__ -D__WIN32__
76 endif
77
78 CPU=i386
79
80 # Suffixes
81 OBJSUFF=o
82 SRCSUFF=cpp
83 LIBPREFIX=lib
84 LIBSUFF=a
85 EXESUFF=.exe
86 RESSUFF=res
87 RSCSUFF=rsc
88
89 # Warnings
90 WARN = -Wall
91
92 # Which GUI, -Dwx_xview or -Dwx_motif (don't change this)
93 GUI = -D__WXMSW__ -D__WINDOWS__
94
95 # Optimization
96 # OPT = -O
97 OPT =
98
99 # Options for ar archiver
100 # AROPTIONS = crs # For IRIX and Solaris (both SYSVR4).
101 AROPTIONS = ruv
102 RANLIB = ranlib
103
104 # Compiler libraries: defaults to GCC libraries
105 #COMPLIBS=-lg++
106 #for win95
107 #COMPLIBS=-lgcc
108
109 # Compiler or system-specific include paths
110 COMPPATHS=
111
112 ########################## Directories ###############################
113
114
115 WINLIBS=-lstdc++ -lgcc \
116 -lwinspool -lwinmm -lshell32 -loldnames \
117 -lcomctl32 -lctl3d32 -lodbc32 -ladvapi32
118
119 # Shouldn't need to change these...
120 WXSRC=$(WXDIR)/src/msw
121 WXINC=$(WXDIR)/include
122 WXBASESRC=$(WXDIR)/src/common
123 WXLIB=$(WXDIR)/lib/$(LIBPREFIX)wx.$(LIBSUFF)
124 INC = -I$(WXINC) -I$(WXDIR)/src/png -I$(WXDIR)/include/wx/msw/gnuwin32 -I$(WXDIR)/src/zlib $(EXTRAINC)$(COMPPATHS)
125 RCLFLAGS=-cpp "cpp -lang-c++ -DWIN32 -D_WIN32 -DRCL_INVOKED -I$(WXWIN)\include"
126
127 #LIBS = -lctl3d32 $(WXLIB) $(WINLIBS) $(COMPLIBS)
128 LIBS = $(WXLIB) $(WINLIBS) $(COMPLIBS)
129
130 WINFLAGS=-D_X86_=1 -DWIN32 -D_WIN32 $(WINVERSION)
131
132 #for windows 95
133 XINCLUDE=$(WINFLAGS)
134 XLIB=$(LIBS)
135 LDLIBS = $(LIBS)
136
137 # Directory for object files (don't change)
138 OBJDIR = objects$(GUISUFFIX)
139
140 # You shouldn't need to change these...
141 CPPFLAGS = $(XINCLUDE) $(INC) $(OPTIONS) $(GUI) $(DEBUGFLAGS) -DWXDEBUG='$(WXDEBUG)' $(WARN) $(OPT)
142 CFLAGS = $(XINCLUDE) $(INC) $(OPTIONS) $(GUI) $(DEBUGFLAGS) -DWXDEBUG='$(WXDEBUG)' $(WARN) $(OPT)
143 LDFLAGS = -Wl,--subsystem,windows -mwindows -L$(WXDIR)/lib
144
145 .SUFFIXES: .rc .$(RESSUFF) .$(RSCSUFF) .cpp .c
146
147 # Set these in a batch file instead e.g. install/cygnus.bat
148 # RCINCLUDE="$(WXDIR)/include/msw;$(WXDIR)/contrib/fafa;$(WXDIR)/contrib/itsybits"; \
149 # CPLUS_INCLUDE_PATH=/usr/H-i386-cygwin32/i386-cygwin32/include:/usr/H-i386-cygwin32/lib/gcc-lib/i386-cygwin32/cygnus-2.7.2-961023/include:$(WXDIR)/include/common:$(WXDIR)/include/msw:$(WXDIR)/contrib/fafa:$(WXDIR)/contrib/itsybits; \
150 # export CPLUS_INCLUDE_PATH RCINCLUDE; \
151
152 .rc.$(RESSUFF): $< $(WXDIR)/include/msw/wx.rc
153 $(RC) $(RESFLAGS1) $< $(RESFLAGS2) $*.$(RESSUFF) $(RCLFLAGS)
154
155 .$(RESSUFF).$(RSCSUFF): $<
156 $(CVTRES) $< $*.$(RSCSUFF)
157
158 .$(SRCSUFF).$(OBJSUFF):
159 $(CC) -c $(CPPFLAGS) -o $@ $*.$(SRCSUFF)
160
161 .c.o:
162 $(CC) -c $(CPPFLAGS) -o $@ $*.c
163
164