]> git.saurik.com Git - wxWidgets.git/blob - src/makeenvs/sgi.env
Cured last focus bug (I hope); some wxMotif mods
[wxWidgets.git] / src / makeenvs / sgi.env
1 # sgi.env
2 # SGI
3 #
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).
7 # RCS-ID: $Id$
8 #
9 ########################### Programs #################################
10
11 # Replace this with your own path if necessary
12 WXWIN = /home/jds/wx2
13 WXDIR = $(WXWIN)
14
15 # C++ compiler
16 CC = CC
17
18 # C compiler
19 CCC = cc
20
21 # Compiler for lex/yacc .c programs
22 CCLEX = $(CCC)
23
24 LEX = lex
25 YACC = yacc
26 MAKE = make
27 AROPTIONS = ruv
28 RANLIB = echo
29
30 ############################ Switches #################################
31
32 # Debug/trace mode. 1 or more for debugging.
33 DEBUG = 0
34 GUI = -D__WXSTUBS__ -D__UNIX__
35 GUISUFFIX = _stubs
36
37 ########################## Compiler flags #############################
38
39 # Misc options
40 OPTIONS = -32 -D__WXDEBUG__ -D__SGI__ -D__SGI_CC__
41 COPTIONS = -32 -Xcpluscomm -D__SGI__ -D__SGI_CC__
42 DEBUGFLAGS = -g3
43 INCLUDE =
44 WARN = -w
45 CWARN = -w
46 OPT =
47
48 ############################ Includes #################################
49
50 # Compiler or system-specific include paths
51 COMPPATHS =
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
55
56 ############################ Libraries ################################
57
58 COMPLIBS =
59 #COMPLIBS = -lstdc++
60 #COMPLIBS = -lPW
61 GUILDLIBS = -lwx_stubs $(COMPLIBS) -lXm -lXmu -lXt -lXpm -lX11 -lm
62
63 ############################# Suffixes ################################
64
65 OBJSUFF =o
66 SRCSUFF =cpp
67 MAINSUFF =cpp
68
69 ####################### No changes below this line ####################
70
71 WXINC = $(WXDIR)/include
72 WXLIB = $(WXDIR)/lib/libwx$(GUISUFFIX).a
73 INC = -I$(WXINC) -I$(WXDIR)/src/png -I$(WXDIR)/src/zlib $(COMPPATHS)
74
75 # Directory for object files
76 OBJDIR = objects$(GUISUFFIX)
77
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)
82
83 # Clears all default suffixes
84 .SUFFIXES: .o .cpp .c
85
86 .c.o :
87 $(CCC) -c $(CFLAGS) -o $@ $<
88
89 .cpp.o :
90 $(CC) -c $(CPPFLAGS) -o $@ $<
91
92 .C.o :
93 $(CC) -c $(CPPFLAGS) -o $@ $<
94
95 ####################### Targets to allow multiple GUIs ####################
96
97 dummy:
98 echo Use a target: one of motif, stubs
99
100 stubs:
101 make -f makefile.unx all GUI='-D__WXSTUBS__ -D__UNIX__' GUISUFFIX='_stubs' GUILDLIBS='-lwx_stubs $(COMPLIBS) -lXm -lXmu -lXt -lX11 -lm'
102
103 motif:
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'
105
106 gtk:
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'
108
109 cleanstubs:
110 make -f makefile.unx clean GUI='-D__WXSTUBS__ -D__UNIX__' GUISUFFIX='_stubs' GUILDLIBS='-lwx_stubs $(COMPLIBS) -lXm -lXmu -lXt -lX11 -lm'
111
112 cleanmotif:
113 make -f makefile.unx clean GUI='-D__WXMOTIF__ -D__UNIX__' GUISUFFIX='_motif' GUILDLIBS='-lwx_motif $(COMPLIBS) -lXm -lXmu -lXt -lX11 -lm'
114
115 $(OBJDIR):
116 mkdir $(OBJDIR)
117