4 # Common makefile settings for wxWindows programs
5 # This file is included by all the other makefiles, thus changes
6 # made here take effect everywhere (except where overriden).
9 ########################### Programs #################################
11 # Replace this with your own path if necessary
21 # Compiler for lex/yacc .c programs
26 # Note: if using bison, use -y option for yacc compatibility
32 ############################ Switches #################################
34 # Debug/trace mode. 1 or more for debugging.
36 GUI = -D__WXSTUBS__ -D__UNIX__
39 ########################## Compiler flags #############################
42 OPTIONS = -32 -D__WXDEBUG__ -D__SGI__ -D__SGI_CC__
43 COPTIONS = -32 -Xcpluscomm -D__SGI__ -D__SGI_CC__
50 ############################ Includes #################################
52 # Compiler or system-specific include paths
54 XINCLUDE = -I/usr/include/X11 -I/usr/include/Xm \
55 -I/usr/include/X11/Xm -I/usr/include
56 XLIB = -L/usr/local/X11/lib -L/usr/X11/lib -L/usr/X11R6/lib
58 ############################ Libraries ################################
63 GUILDLIBS = -lwx_stubs $(COMPLIBS) -lXm -lXmu -lXt -lXpm -lX11 -lm
65 ############################# Suffixes ################################
71 ####################### No changes below this line ####################
73 WXINC = $(WXDIR)/include
74 WXLIB = $(WXDIR)/lib/libwx$(GUISUFFIX).a
75 INC = -I$(WXINC) -I$(WXDIR)/src/png -I$(WXDIR)/src/zlib $(COMPPATHS)
77 # Directory for object files
78 OBJDIR = objects$(GUISUFFIX)
80 CPPFLAGS = $(EXTRACPPFLAGS) $(XINCLUDE) $(INC) $(OPTIONS) $(GUI) $(DEBUGFLAGS) $(WARN) $(OPT)
81 CFLAGS = $(EXTRACFLAGS) $(XINCLUDE) $(INC) $(COPTIONS) $(GUI) $(DEBUGFLAGS) $(CWARN) $(OPT)
82 LDFLAGS = $(EXTRALDFLAGS) $(XLIB) -L$(WXDIR)/lib
83 LDLIBS = $(EXTRALDLIBS) $(GUILDLIBS)
85 # Clears all default suffixes
89 $(CCC) -c $(CFLAGS) -o $@ $<
92 $(CC) -c $(CPPFLAGS) -o $@ $<
95 $(CC) -c $(CPPFLAGS) -o $@ $<
97 ####################### Targets to allow multiple GUIs ####################
100 echo Use a target: one of motif, stubs
103 make -f makefile.unx all GUI='-D__WXSTUBS__ -D__UNIX__' GUISUFFIX='_stubs' GUILDLIBS='-lwx_stubs $(COMPLIBS) -lXm -lXmu -lXt -lX11 -lm'
106 make -f makefile.unx all GUI='-D__WXMOTIF__ -D__UNIX__' GUISUFFIX='_motif' GUILDLIBS='-lwx_motif $(COMPLIBS) -lpng -lzlib -lXm -lXmu -lXt -lXpm -lX11 -lm'
109 make -f makefile.unx all GUI='-D__WXGTK__ -D__UNIX__' GUISUFFIX='_gtk' GUILDLIBS='-lwx_gtk2 $(COMPLIBS) -ldl -lgtk -lgdk -lglib -lpng -lzlib -lX11 -lm -pthread'
112 make -f makefile.unx clean GUI='-D__WXSTUBS__ -D__UNIX__' GUISUFFIX='_stubs' GUILDLIBS='-lwx_stubs $(COMPLIBS) -lXm -lXmu -lXt -lX11 -lm'
115 make -f makefile.unx clean GUI='-D__WXMOTIF__ -D__UNIX__' GUISUFFIX='_motif' GUILDLIBS='-lwx_motif $(COMPLIBS) -lXm -lXmu -lXt -lX11 -lm'