]> git.saurik.com Git - wxWidgets.git/blame_incremental - src/makeenvs/sgi.env
some more src code reformatting
[wxWidgets.git] / src / makeenvs / sgi.env
... / ...
CommitLineData
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
12WXWIN = /home/jds/wx2
13WXDIR = $(WXWIN)
14
15# C++ compiler
16CC = CC
17
18# C compiler
19CCC = cc
20
21# Compiler for lex/yacc .c programs
22CCLEX = $(CCC)
23
24LEX = lex
25YACC = yacc
26# Note: if using bison, use -y option for yacc compatibility
27# YACC = bison -y
28MAKE = make
29AROPTIONS = ruv
30RANLIB = echo
31
32############################ Switches #################################
33
34# Debug/trace mode. 1 or more for debugging.
35DEBUG = 0
36GUI = -D__WXSTUBS__ -D__UNIX__
37GUISUFFIX = _stubs
38
39########################## Compiler flags #############################
40
41# Misc options
42OPTIONS = -32 -D__WXDEBUG__ -D__SGI__ -D__SGI_CC__
43COPTIONS = -32 -Xcpluscomm -D__SGI__ -D__SGI_CC__
44DEBUGFLAGS = -g3
45INCLUDE =
46WARN = -w
47CWARN = -w
48OPT =
49
50############################ Includes #################################
51
52# Compiler or system-specific include paths
53COMPPATHS =
54XINCLUDE = -I/usr/include/X11 -I/usr/include/Xm \
55 -I/usr/include/X11/Xm -I/usr/include
56XLIB = -L/usr/local/X11/lib -L/usr/X11/lib -L/usr/X11R6/lib
57
58############################ Libraries ################################
59
60COMPLIBS =
61#COMPLIBS = -lstdc++
62#COMPLIBS = -lPW
63GUILDLIBS = -lwx_stubs $(COMPLIBS) -lXm -lXmu -lXt -lXpm -lX11 -lm
64
65############################# Suffixes ################################
66
67OBJSUFF =o
68SRCSUFF =cpp
69MAINSUFF =cpp
70
71####################### No changes below this line ####################
72
73WXINC = $(WXDIR)/include
74WXLIB = $(WXDIR)/lib/libwx$(GUISUFFIX).a
75INC = -I$(WXINC) -I$(WXDIR)/src/png -I$(WXDIR)/src/zlib $(COMPPATHS)
76
77# Directory for object files
78OBJDIR = objects$(GUISUFFIX)
79
80CPPFLAGS = $(EXTRACPPFLAGS) $(INC) $(XINCLUDE) $(OPTIONS) $(GUI) $(DEBUGFLAGS) $(WARN) $(OPT)
81CFLAGS = $(EXTRACFLAGS) $(INC) $(XINCLUDE) $(COPTIONS) $(GUI) $(DEBUGFLAGS) $(CWARN) $(OPT)
82LDFLAGS = $(EXTRALDFLAGS) $(XLIB) -L$(WXDIR)/lib
83LDLIBS = $(EXTRALDLIBS) $(GUILDLIBS)
84
85# Clears all default suffixes
86.SUFFIXES: .o .cpp .c
87
88.c.o :
89 $(CCC) -c $(CFLAGS) -o $@ $<
90
91.cpp.o :
92 $(CC) -c $(CPPFLAGS) -o $@ $<
93
94.C.o :
95 $(CC) -c $(CPPFLAGS) -o $@ $<
96
97####################### Targets to allow multiple GUIs ####################
98
99dummy:
100 echo Use a target: one of motif, stubs
101
102stubs:
103 make -f makefile.unx all GUI='-D__WXSTUBS__ -D__UNIX__' GUISUFFIX='_stubs' GUILDLIBS='-lwx_stubs $(COMPLIBS) -lXm -lXmu -lXt -lX11 -lm'
104
105motif:
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'
107
108gtk:
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'
110
111cleanstubs:
112 make -f makefile.unx clean GUI='-D__WXSTUBS__ -D__UNIX__' GUISUFFIX='_stubs' GUILDLIBS='-lwx_stubs $(COMPLIBS) -lXm -lXmu -lXt -lX11 -lm'
113
114cleanmotif:
115 make -f makefile.unx clean GUI='-D__WXMOTIF__ -D__UNIX__' GUISUFFIX='_motif' GUILDLIBS='-lwx_motif $(COMPLIBS) -lXm -lXmu -lXt -lX11 -lm'
116
117$(OBJDIR):
118 mkdir $(OBJDIR)
119