]> git.saurik.com Git - wxWidgets.git/blame - src/maketwin.env
Updated to new PyCrust
[wxWidgets.git] / src / maketwin.env
CommitLineData
3266f831
JS
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
23CC = 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#
31CCC = $(CC)
32
33# Compiler used for LEX generated C
34CCLEX=gcc
35
36MAKE=make
37
38# LEX
39LEX=flex -t -L
40
41# YACC. yacc or bison
42YACC=yacc
43
44# Settings for TWIN32
45RESCOMP=rc
46RCINPUTSWITCH=
47RCOUTPUTSWITCH=-o
48RCINCSWITCH=-I
49RCDEFSWITCH=-D
50
51RESFLAGS=$(RCINCSWITCH) $(WXDIR)/include $(RCDEFSWITCH) __WIN32__ $(RCDEFSWITCH) __WIN95__ $(RCDEFSWITCH) __GNUWIN32__
52
53########################## Compiler flags #############################
54
55# Miscellaneous compiler options
56OPTIONS= # -D__MINGW32__ # -D__EGCS__
57
58# Debugging information
59# AIX: comment out.
60# IRIX: -g3
61DEBUGFLAGS = -ggdb -D__WXDEBUG__
62
63WIN95=1
64
65ifeq ($(WIN95),0)
66# With 3.50, Win95 will use your existing icons to show smaller ones.
67# With 4.0, you'll have to follow Win95 procedures for icons or you'll get the
68# default Windows icon.
69APPVER=3.50
70WINVERSION=-DWINVER=0x0350 -D__GNUWIN32__ -D__WIN32__ # Generic WIN32
71else
72APPVER=3.50 # 4.0
73# This means 'enable Windows 95 features' (in wxWindows and in VC++ 4.0).
74WINVERSION=-DWINVER=0x0400 -D__WIN95__ -D__GNUWIN32__ -D__WIN32__
75endif
76
77CPU=i386
78
79# Suffixes
80OBJSUFF=o
81SRCSUFF=cpp
82LIBPREFIX=lib
83LIBSUFF=a
84EXESUFF=.exe
85RESSUFF=res
86RSCSUFF=rsc
87
88# Warnings
89WARN = -Wall
90
91# Which GUI, -Dwx_xview or -Dwx_motif (don't change this)
92GUI = -D__WXMSW__ -D__WINDOWS__
93
94# Optimization
95# OPT = -O
96OPT =
97
98# Options for ar archiver
99# AROPTIONS = crs # For IRIX and Solaris (both SYSVR4).
100AROPTIONS = ruv
101RANLIB = ranlib
102
103# Compiler libraries: defaults to GCC libraries
104#COMPLIBS=-lg++
105#for win95
106#COMPLIBS=-lgcc
107
108# Compiler or system-specific include paths
109COMPPATHS=-I$(TWINDIR)/include
110
111########################## Directories ###############################
112
113
114WINLIBS=-lstdc++ -lgcc -lm -ldl -ltwin32 -lcomctl32 -lcommdlg -lddeml -lmmsystem -lshell -lXpm -lX11 -lm
115
116# -lwinspool -lwinmm -lshell32 -loldnames \
117# -lcomctl32 -lctl3d32 -lodbc32 -ladvapi32
118
119# Shouldn't need to change these...
120WXSRC=$(WXDIR)/src/msw
121WXINC=$(WXDIR)/include
122WXBASESRC=$(WXDIR)/src/common
123WXLIB=$(WXDIR)/lib/$(LIBPREFIX)wx.$(LIBSUFF)
124INC = -I$(WXINC) -I$(WXDIR)/src/png -I$(WXDIR)/include/wx/msw/gnuwin32 -I$(WXDIR)/src/zlib $(EXTRAINC)$(COMPPATHS)
125RCLFLAGS=-cpp "cpp -lang-c++ -DWIN32 -D_WIN32 -DRCL_INVOKED -I$(WXWIN)\include"
126
127#LIBS = -lctl3d32 $(WXLIB) $(WINLIBS) $(COMPLIBS)
128LIBS = $(WXLIB) $(WINLIBS) $(COMPLIBS)
129
130WINFLAGS=-DX386 -DWIN32 -D_WIN32 $(WINVERSION) -DTWIN32 -D__TWIN32__
131
132#for windows 95
133XINCLUDE=$(WINFLAGS)
134XLIB=$(LIBS)
135LDLIBS = $(LIBS)
136
137# Directory for object files (don't change)
138OBJDIR = objects$(GUISUFFIX)
139
140# You shouldn't need to change these...
141CPPFLAGS = $(XINCLUDE) $(INC) $(OPTIONS) $(GUI) $(DEBUGFLAGS) $(WARN) $(OPT)
142CFLAGS = $(XINCLUDE) $(INC) $(OPTIONS) $(GUI) $(DEBUGFLAGS) $(WARN) $(OPT)
143WINDOWSLDFLAGS=
144LDFLAGS = $(WINDOWSLDFLAGS) -L$(WXDIR)/lib -L/usr/X11R6/lib -L$(TWINDIR)/win
145
146.SUFFIXES: .rc .$(RESSUFF) .$(RSCSUFF) .cpp .c
147
148.rc.$(RESSUFF): $< $(WXDIR)/include/msw/wx.rc
149 $(RC) $(RESFLAGS1) $< $(RESFLAGS2) $*.$(RESSUFF) $(RCLFLAGS)
150
151.$(RESSUFF).$(RSCSUFF): $<
152 $(CVTRES) $< $*.$(RSCSUFF)
153
154.$(SRCSUFF).$(OBJSUFF):
155 $(CC) -c $(CPPFLAGS) -o $@ $*.$(SRCSUFF)
156
157.c.o:
158 $(CC) -c $(CPPFLAGS) -o $@ $*.c
159
160