]> git.saurik.com Git - wxWidgets.git/blob - src/gtk.env
m_Style was bool by mistake, fixed
[wxWidgets.git] / src / gtk.env
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
15 GUI = gtk
16
17 # The library version number
18 MAX_VER = 2
19 MIN_VER = 1
20 MIC_VER = 0
21
22 WXLIB =
23
24 ########################### Programs #################################
25
26 # C++ compiler
27 CC = gcc
28
29 # C compiler
30 CCC = gcc
31
32 # Compiler for lex/yacc .c programs
33 CCLEX = $(CCC)
34
35 LEX = lex
36 YACC = yacc
37 # Note: if using bison, use -y option for yacc compatibility
38 # YACC = bison -y
39 MAKE = make
40 AROPTIONS = ruv
41 RANLIB = ranlib
42
43 ############################ Switches #################################
44
45 # Debug/trace mode. 1 or more for debugging.
46 DEBUG = 1
47 GUI_OPT = -D__WXGTK__ -D__UNIX__
48
49 ########################## Compiler flags #############################
50
51 # Misc options
52 CPP_EXTRA = -D_REENTRANT
53 C_EXTRA = -D_REENTRANT
54 LEX_EXTRA = -D_REENTRANT
55
56 # Optimisation
57 CPP_OPT = -O2 -fno-strength-reduce -DGTK_NO_CHECK_CASTS -fno-rtti -fno-exceptions
58 C_OPT = -O2 -fno-strength-reduce -DGTK_NO_CHECK_CASTS
59 LEX_OPT = -O2 -fno-strength-reduce
60
61 # Debug
62 CPP_DEBUG = -D__WXDEBUG__ # -g
63 C_DEBUG = -D__WXDEBUG__
64 LEX_DEBUG = -D__WXDEBUG__
65
66 # Warning level
67 CPP_WARN = -Wall
68 C_WARN = -Wall -Wno-unused
69 LEX_WARN = -Wall
70
71 # Link flag
72 LD_EXTRA =
73
74 ############################ Includes #################################
75
76 WX_INC = -I$(WXDIR)/include
77 GUI_INC = `gtk-config --cflags`
78 EXTRA_INC = -I$(WXDIR)/src/png -I$(WXDIR)/src/jpeg -I$(WXDIR)/src/zlib -I$(WXDIR)/src/odbc
79
80 ############################ Libraries ################################
81
82 WXLIB = $(WXDIR)/lib/libwx_$(GUI).a
83
84 LD_LIBS = $(WXLIB) `gtk-config --libs` -L/usr/lib -ldl -lpthread
85
86 ############################# Suffixes ################################
87
88 OBJSUFF = o
89
90 ####################### No changes below this line ####################
91
92 CPPFLAGS = $(GUI_OPT) $(CPP_EXTRA) $(CPP_OPT) $(CPP_DEBUG) $(CPP_WARN) $(WX_INC) $(EXTRA_INC) $(GUI_INC)
93 CFLAGS = $(GUI_OPT) $(C_EXTRA) $(C_OPT) $(C_DEBUG) $(C_WARN) $(WX_INC) $(EXTRA_INC) $(GUI_INC)
94 LDFLAGS = $(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