]> git.saurik.com Git - wxWidgets.git/blame - src/make.env
wxColour(const char *) ctor related modifications
[wxWidgets.git] / src / make.env
CommitLineData
7f555861
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#
7f555861
JS
8########################### Programs #################################
9
10# Replace this with your own path if necessary
11WXDIR = /home/jacs/wx2
12
13# C++ compiler
14CC = g++
15
16# C compiler
17CCC = gcc
18
19# Compiler for lex/yacc .c programs
20CCLEX = $(CCC)
21
22LEX = lex
23YACC = yacc
24MAKE = make
25AROPTIONS = ruv
26RANLIB = ranlib
27
28############################ Switches #################################
29
30# Debug/trace mode. 1 or more for debugging.
31DEBUG = 0
32GUI = -D__WXSTUBS__ -D__LINUX__ -D__UNIX__
33GUISUFFIX = _stubs
34
35########################## Compiler flags #############################
36
37# Misc options
38OPTIONS = -D__WXDEBUG__ -DWXDEBUG
39COPTIONS =
40DEBUGFLAGS = -ggdb
41INCLUDE =
42WARN = -Wall -Wno-unused # -w
43CWARN = -Wall -Wno-unused # -w
44OPT = # -O2
45
46############################ Includes #################################
47
48# Compiler or system-specific include paths
49COMPPATHS =
50XINCLUDE = -I/usr/openwin/include -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/openwin/lib -L/usr/X11/lib -L/usr/X11R6/lib
53
54############################ Libraries ################################
55
56COMPLIBS = -lstdc++
a4294b78 57GUILDLIBS = -lwx_stubs $(COMPLIBS) -lXm -lXmu -lXt -lXpm -lX11 -lm
7f555861
JS
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) -DDEBUG='$(DEBUG)' $(WARN) $(OPT)
78CFLAGS = $(EXTRACFLAGS) $(XINCLUDE) $(INC) $(COPTIONS) $(GUI) $(DEBUGFLAGS) -DDEBUG='$(DEBUG)' $(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 $(CC) -c $(CFLAGS) -o $@ $<
87
88.cpp.o :
89 $(CC) -c $(CPPFLAGS) -o $@ $<
90
8704bf74
JS
91.C.o :
92 $(CC) -c $(CPPFLAGS) -o $@ $<
93
7f555861
JS
94####################### Targets to allow multiple GUIs ####################
95
96dummy:
97 echo Use a target: one of motif, stubs
98
99stubs:
100 make -f makefile.unx all GUI='-D__WXSTUBS__ -D__LINUX__ -D__UNIX__' GUISUFFIX='_stubs' GUILDLIBS='-lwx_stubs $(COMPLIBS) -lXm -lXmu -lXt -lX11 -lm'
101
102motif:
a4294b78 103 make -f makefile.unx all GUI='-D__WXMOTIF__ -D__LINUX__ -D__UNIX__' GUISUFFIX='_motif' GUILDLIBS='-lwx_motif $(COMPLIBS) -lXm -lXmu -lXt -lXpm -lX11 -lm'
7f555861 104
f97c9854 105gtk:
a4294b78 106 make -f makefile.unx all GUI='-D__WXGTK__ -D__LINUX__ -D__UNIX__' GUISUFFIX='_gtk' GUILDLIBS='-lwx_gtk $(COMPLIBS) -lXm -lXmu -lXpm -lX11 -lm'
f97c9854 107
7f555861
JS
108cleanstubs:
109 make -f makefile.unx clean GUI='-D__WXSTUBS__ -D__LINUX__ -D__UNIX__' GUISUFFIX='_stubs' GUILDLIBS='-lwx_stubs $(COMPLIBS) -lXm -lXmu -lXt -lX11 -lm'
110
111cleanmotif:
112 make -f makefile.unx clean GUI='-D__WXMOTIF__ -D__LINUX__ -D__UNIX__' GUISUFFIX='_motif' GUILDLIBS='-lwx_motif $(COMPLIBS) -lXm -lXmu -lXt -lX11 -lm'
113
114$(OBJDIR):
115 mkdir $(OBJDIR)
116