3 # Common makefile settings for wxGTK programs. You have to set
4 # the WXDIR variable before including this file.
6 # This file is included by all the other makefiles, thus changes
7 # made here take effect everywhere (except where overriden).
12 ########################### General #################################
14 # The name of the GUI used in directory paths and library names
17 # The library version number
22 ########################### Programs #################################
30 # Compiler for lex/yacc .c programs
35 # Note: if using bison, use -y option for yacc compatibility
41 ############################ Switches #################################
43 # Debug/trace mode. 1 or more for debugging.
45 GUI_OPT = -D__WXGTK__ -D__UNIX__
47 ########################## Compiler flags #############################
50 CPP_EXTRA = -D_REENTRANT
51 C_EXTRA = -D_REENTRANT
52 LEX_EXTRA = -D_REENTRANT
55 CPP_OPT = -O2 -fno-strength-reduce -DGTK_NO_CHECK_CASTS -fno-rtti -fno-exceptions
56 C_OPT = -O2 -fno-strength-reduce -DGTK_NO_CHECK_CASTS
57 LEX_OPT = -O2 -fno-strength-reduce
60 CPP_DEBUG = -D__WXDEBUG__ # -g
61 C_DEBUG = -D__WXDEBUG__
62 LEX_DEBUG = -D__WXDEBUG__
66 C_WARN = -Wall -Wno-unused
72 ############################ Includes #################################
74 WX_INC = -I$(WXDIR)/include
75 GUI_INC = `gtk-config --cflags`
76 EXTRA_INC = -I$(WXDIR)/src/png -I$(WXDIR)/src/jpeg -I$(WXDIR)/src/zlib -I$(WXDIR)/src/odbc
78 ############################ Libraries ################################
80 LD_LIBS = -L$(WXDIR)/lib -llibwx_$(GUI).a `gtk-config --libs` -L/usr/lib -ldl
82 ############################# Suffixes ################################
86 ####################### No changes below this line ####################
88 CPPFLAGS = $(GUI_OPT) $(CPP_EXTRA) $(CPP_OPT) $(CPP_DEBUG) $(CPP_WARN) $(WX_INC) $(EXTRA_INCLUDE) $(GUI_INC)
89 CFLAGS = $(GUI_OPT) $(C_EXTRA) $(C_OPT) $(C_DEBUG) $(C_WARN) $(WX_INC) $(EXTRA_INCLUDE) $(GUI_INC)
90 LDFLAGS = $(LD_EXTRA) $(LD_LIBS)
92 # Clears all default suffixes
96 $(CCC) -c $(CFLAGS) -o $@ $<
99 $(CC) -c $(CPPFLAGS) -o $@ $<
102 $(CC) -c $(CPPFLAGS) -o $@ $<