]> git.saurik.com Git - wxWidgets.git/blame - src/makeenvs/sgi.env
1. more keyboard navigation fixes - seems to work now
[wxWidgets.git] / src / makeenvs / sgi.env
CommitLineData
3266f831
JS
1# generic.env
2# Linux/generic
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#
8########################### Programs #################################
9
10# Replace this with your own path if necessary
11WXDIR = /home/mon/src/wx20
12
13# C++ compiler
14CC = CC -n32 -D__SGI__ -D__SGI_CC__
15
16# C compiler
17CCC = cc -n32 -Xcpluscomm -D__SGI__ -D__SGI_CC__
18
19# Compiler for lex/yacc .c programs
20CCLEX = $(CCC)
21
22LEX = flex
23YACC = yacc
24MAKE = make
25AROPTIONS = ruv
26RANLIB = echo ranlib not required on SGI
27
28############################ Switches #################################
29
30# Debug/trace mode. 1 or more for debugging.
31DEBUG = 0
32GUI = -D__WXSTUBS__ -D__UNIX__
33GUISUFFIX = _stubs
34
35########################## Compiler flags #############################
36
37# Misc options
38OPTIONS = -D__WXDEBUG__ # -DDEBUG='$(DEBUG)' # -DWXDEBUG
39COPTIONS =
40DEBUGFLAGS = -g
41INCLUDE =
42WARN =
43CWARN =
44OPT = # -O2
45
46############################ Includes #################################
47
48# Compiler or system-specific include paths
49COMPPATHS =
50XINCLUDE = -I/usr/include/X11 -I/usr/include/Xm \
51 -I/usr/include/X11/Xm -I/usr/include
52XLIB = -L/usr/local/X11/lib -L/usr/X11/lib -L/usr/X11R6/lib
53
54############################ Libraries ################################
55
56COMPLIBS = #-lstdc++
57GUILDLIBS = -lwx_stubs $(COMPLIBS) -lXm -lXmu -lXt -lXpm -lX11 -lm
58
59############################# Suffixes ################################
60
61# Change cpp to c if you want to use main.c instead of main.cpp.
62# Edit wx_setup.h accordingly (USE_C_MAIN=1)
63
64OBJSUFF =o
65SRCSUFF =cpp
66MAINSUFF =cpp
67
68####################### No changes below this line ####################
69
70WXINC = $(WXDIR)/include
71WXLIB = $(WXDIR)/lib/libwx$(GUISUFFIX).a
72INC = -I$(WXINC) -I$(WXDIR)/src/png -I$(WXDIR)/src/zlib $(COMPPATHS)
73
74# Directory for object files
75OBJDIR = objects$(GUISUFFIX)
76
77CPPFLAGS = $(EXTRACPPFLAGS) $(XINCLUDE) $(INC) $(OPTIONS) $(GUI) $(DEBUGFLAGS) $(WARN) $(OPT)
78CFLAGS = $(EXTRACFLAGS) $(XINCLUDE) $(INC) $(COPTIONS) $(GUI) $(DEBUGFLAGS) $(CWARN) $(OPT)
79LDFLAGS = $(EXTRALDFLAGS) $(XLIB) -L$(WXDIR)/lib
80LDLIBS = $(EXTRALDLIBS) $(GUILDLIBS)
81
82# Clears all default suffixes
83.SUFFIXES: .o .cpp .c
84
85.c.o :
86 $(CCC) -c $(CFLAGS) -o $@ $<
87
88.cpp.o :
89 $(CC) -c $(CPPFLAGS) -o $@ $<
90
91.C.o :
92 $(CC) -c $(CPPFLAGS) -o $@ $<
93
94####################### Targets to allow multiple GUIs ####################
95
96dummy:
97 echo Use a target: one of motif, stubs
98
99stubs:
acbd13a3 100 make -f makefile.unx all GUI='-D__WXSTUBS__ -D__UNIX__' GUISUFFIX='_stubs' GUILDLIBS='-lwx_stubs $(COMPLIBS) -lXm -lXmu -lXt -lX11 -lm'
3266f831
JS
101
102motif:
acbd13a3 103 make -f makefile.unx all GUI='-D__WXMOTIF__ -D__UNIX__' GUISUFFIX='_motif' GUILDLIBS='-lwx_motif $(COMPLIBS) -lpng -lzlib -lXm -lXmu -lXt -lXpm -lX11 -lm'
3266f831
JS
104
105gtk:
acbd13a3 106 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'
3266f831
JS
107
108cleanstubs:
acbd13a3 109 make -f makefile.unx clean GUI='-D__WXSTUBS__ -D__UNIX__' GUISUFFIX='_stubs' GUILDLIBS='-lwx_stubs $(COMPLIBS) -lXm -lXmu -lXt -lX11 -lm'
3266f831
JS
110
111cleanmotif:
acbd13a3
JS
112 make -f makefile.unx clean GUI='-D__WXMOTIF__ -D__UNIX__' GUISUFFIX='_motif' GUILDLIBS='-lwx_motif $(COMPLIBS) -lXm -lXmu -lXt -lX11 -lm'
113
114cleangtk:
115 make -f makefile.unx clean GUI='-D__WXGTK__ -D__UNIX__' GUISUFFIX='_gtk'
3266f831
JS
116
117$(OBJDIR):
118 mkdir $(OBJDIR)
119