]> git.saurik.com Git - wxWidgets.git/blame - src/gtk.env
Added wxApp::CheckForKeyUp
[wxWidgets.git] / src / gtk.env
CommitLineData
631fd412
RR
1# gtk.env
2#
3# Common makefile settings for wxGTK programs. You have to set
4# the WXDIR variable before including this file.
5#
6# This file is included by all the other makefiles, thus changes
7# made here take effect everywhere (except where overriden).
8#
9# RCS-ID: $Id$
10#
11
12########################### General #################################
13
14# The name of the GUI used in directory paths and library names
15GUI = gtk
16
17# The library version number
18MAX_VER = 2
19MIN_VER = 1
20MIC_VER = 0
21
9b61f868
RR
22WXLIB =
23
631fd412
RR
24########################### Programs #################################
25
26# C++ compiler
27CC = gcc
28
29# C compiler
30CCC = gcc
31
32# Compiler for lex/yacc .c programs
33CCLEX = $(CCC)
34
35LEX = lex
36YACC = yacc
37# Note: if using bison, use -y option for yacc compatibility
38# YACC = bison -y
39MAKE = make
40AROPTIONS = ruv
41RANLIB = ranlib
42
43############################ Switches #################################
44
45# Debug/trace mode. 1 or more for debugging.
46DEBUG = 1
47GUI_OPT = -D__WXGTK__ -D__UNIX__
48
49########################## Compiler flags #############################
50
51# Misc options
52CPP_EXTRA = -D_REENTRANT
53C_EXTRA = -D_REENTRANT
54LEX_EXTRA = -D_REENTRANT
55
56# Optimisation
57CPP_OPT = -O2 -fno-strength-reduce -DGTK_NO_CHECK_CASTS -fno-rtti -fno-exceptions
58C_OPT = -O2 -fno-strength-reduce -DGTK_NO_CHECK_CASTS
59LEX_OPT = -O2 -fno-strength-reduce
60
61# Debug
62CPP_DEBUG = -D__WXDEBUG__ # -g
63C_DEBUG = -D__WXDEBUG__
64LEX_DEBUG = -D__WXDEBUG__
65
66# Warning level
67CPP_WARN = -Wall
68C_WARN = -Wall -Wno-unused
69LEX_WARN = -Wall
70
71# Link flag
72LD_EXTRA =
73
74############################ Includes #################################
75
76WX_INC = -I$(WXDIR)/include
77GUI_INC = `gtk-config --cflags`
78EXTRA_INC = -I$(WXDIR)/src/png -I$(WXDIR)/src/jpeg -I$(WXDIR)/src/zlib -I$(WXDIR)/src/odbc
79
80############################ Libraries ################################
81
9b61f868
RR
82WXLIB = $(WXDIR)/lib/libwx_$(GUI).a
83
84LD_LIBS = $(WXLIB) `gtk-config --libs` -L/usr/lib -ldl -lpthread
631fd412
RR
85
86############################# Suffixes ################################
87
88OBJSUFF = o
89
90####################### No changes below this line ####################
91
9b61f868
RR
92CPPFLAGS = $(GUI_OPT) $(CPP_EXTRA) $(CPP_OPT) $(CPP_DEBUG) $(CPP_WARN) $(WX_INC) $(EXTRA_INC) $(GUI_INC)
93CFLAGS = $(GUI_OPT) $(C_EXTRA) $(C_OPT) $(C_DEBUG) $(C_WARN) $(WX_INC) $(EXTRA_INC) $(GUI_INC)
631fd412
RR
94LDFLAGS = $(LD_EXTRA) $(LD_LIBS)
95
96# Clears all default suffixes
97.SUFFIXES: .o .cpp .c
98
99.c.o :
100 $(CCC) -c $(CFLAGS) -o $@ $<
101
102.cpp.o :
103 $(CC) -c $(CPPFLAGS) -o $@ $<
104
105.C.o :
106 $(CC) -c $(CPPFLAGS) -o $@ $<
107