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
30 ############################ Switches #################################
32 # Debug/trace mode. 1 or more for debugging.
34 GUI = -D__WXSTUBS__ -D__UNIX__
37 ########################## Compiler flags #############################
40 OPTIONS = -32 -D__WXDEBUG__ -D__SGI__ -D__SGI_CC__
41 COPTIONS = -32 -Xcpluscomm -D__SGI__ -D__SGI_CC__
48 ############################ Includes #################################
50 # Compiler or system-specific include paths
52 XINCLUDE = -I/usr/include/X11 -I/usr/include/Xm \
53 -I/usr/include/X11/Xm -I/usr/include
54 XLIB = -L/usr/local/X11/lib -L/usr/X11/lib -L/usr/X11R6/lib
56 ############################ Libraries ################################
61 GUILDLIBS = -lwx_stubs $(COMPLIBS) -lXm -lXmu -lXt -lXpm -lX11 -lm
63 ############################# Suffixes ################################
69 ####################### No changes below this line ####################
71 WXINC = $(WXDIR)/include
72 WXLIB = $(WXDIR)/lib/libwx$(GUISUFFIX).a
73 INC = -I$(WXINC) -I$(WXDIR)/src/png -I$(WXDIR)/src/zlib $(COMPPATHS)
75 # Directory for object files
76 OBJDIR = objects$(GUISUFFIX)
78 CPPFLAGS = $(EXTRACPPFLAGS) $(XINCLUDE) $(INC) $(OPTIONS) $(GUI) $(DEBUGFLAGS) $(WARN) $(OPT)
79 CFLAGS = $(EXTRACFLAGS) $(XINCLUDE) $(INC) $(COPTIONS) $(GUI) $(DEBUGFLAGS) $(CWARN) $(OPT)
80 LDFLAGS = $(EXTRALDFLAGS) $(XLIB) -L$(WXDIR)/lib
81 LDLIBS = $(EXTRALDLIBS) $(GUILDLIBS)
83 # Clears all default suffixes
87 $(CCC) -c $(CFLAGS) -o $@ $<
90 $(CC) -c $(CPPFLAGS) -o $@ $<
93 $(CC) -c $(CPPFLAGS) -o $@ $<
95 ####################### Targets to allow multiple GUIs ####################
98 echo Use a target: one of motif, stubs
101 make -f makefile.unx all GUI='-D__WXSTUBS__ -D__UNIX__' GUISUFFIX='_stubs' GUILDLIBS='-lwx_stubs $(COMPLIBS) -lXm -lXmu -lXt -lX11 -lm'
104 make -f makefile.unx all GUI='-D__WXMOTIF__ -D__UNIX__' GUISUFFIX='_motif' GUILDLIBS='-lwx_motif $(COMPLIBS) -lpng -lzlib -lXm -lXmu -lXt -lXpm -lX11 -lm'
107 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'
110 make -f makefile.unx clean GUI='-D__WXSTUBS__ -D__UNIX__' GUISUFFIX='_stubs' GUILDLIBS='-lwx_stubs $(COMPLIBS) -lXm -lXmu -lXt -lX11 -lm'
113 make -f makefile.unx clean GUI='-D__WXMOTIF__ -D__UNIX__' GUISUFFIX='_motif' GUILDLIBS='-lwx_motif $(COMPLIBS) -lXm -lXmu -lXt -lX11 -lm'