-# generic.env
-# Linux/generic
#
-# Common makefile settings for wxWindows programs
-# This file is included by all the other makefiles, thus changes
-# made here take effect everywhere (except where overriden).
+# File: make.env
+# Author: Julian Smart, Robert Roebling, Vadim Zeitlin
+# Created: 1993
+# Updated: 1999
+# Copyright:(c) 1993, AIAI, University of Edinburgh,
+# Copyright:(c) 1999, Vadim Zeitlin
+# Copyright:(c) 1999, Robert Roebling
#
-########################### Programs #################################
-# Replace this with your own path if necessary
-#WXDIR = /home/karl/wxWindows
-WXDIR = /home/jacs/wx2
+########################### VERSION #################################
-# C++ compiler
-CC = g++
+LIBS = ${top_builddir}/src/motif/libwx_motif.la -lpthread -L/usr/X11R6/lib -lXm -lXpm -lXmu -lXt -lX11 -ldl -lm
-# C compiler
-CCC = gcc
+TOOLKIT = MOTIF
-# Compiler for lex/yacc .c programs
-CCLEX = $(CCC)
+WXLIB = libwx_motif.a
-LEX = lex
-YACC = yacc
-MAKE = make
-AROPTIONS = ruv
-RANLIB = ranlib
+########################### VERSION #################################
+
+WX_MAJOR_VERSION_NUMBER = 2
+WX_MINOR_VERSION_NUMBER = 1
+WX_RELEASE_NUMBER = 0
+
+########################### Misc #################################
+
+SHELL = /bin/sh
+
+########################### Paths #################################
+
+srcdir = ../src/motif
-############################ Switches #################################
+top_srcdir = ..
+prefix = /usr/local
+exec_prefix = ${prefix}
-# Debug/trace mode. 1 or more for debugging.
-DEBUG = 0
-GUI = -D__WXSTUBS__ -D__LINUX__ -D__UNIX__
-GUISUFFIX = _stubs
+bindir = ${exec_prefix}/bin
+sbindir = ${exec_prefix}/sbin
+libexecdir = ${exec_prefix}/libexec
+datadir = ${prefix}/share
+sysconfdir = ${prefix}/etc
+sharedstatedir = ${prefix}/com
+localstatedir = ${prefix}/var
+libdir = ${exec_prefix}/lib
+infodir = ${prefix}/info
+mandir = ${prefix}/man
+includedir = ${prefix}/include
+oldincludedir = /usr/include
-########################## Compiler flags #############################
+DESTDIR =
-# Misc options
-OPTIONS = -D__WXDEBUG__
-COPTIONS =
-DEBUGFLAGS = -ggdb
-INCLUDE =
-WARN = -Wall -Wno-unused # -w
-CWARN = -Wall -Wno-unused # -w
-OPT = # -O2
+pkgdatadir = $(datadir)/wxWindows
+pkglibdir = $(libdir)/wxWindows
+pkgincludedir = $(includedir)/wxWindows
-############################ Includes #################################
+top_builddir = .
-# Compiler or system-specific include paths
-COMPPATHS =
-XINCLUDE = -I/usr/openwin/include -I/usr/include/X11 -I/usr/include/Xm \
- -I/usr/include/X11/Xm -I/usr/include
-XLIB = -L/usr/local/X11/lib -L/usr/openwin/lib -L/usr/X11/lib -L/usr/X11R6/lib
+INSTALL = /usr/bin/install -c
+INSTALL_PROGRAM = ${INSTALL}
+INSTALL_DATA = ${INSTALL} -m 644
+INSTALL_SCRIPT = ${INSTALL_PROGRAM}
+transform = s,x,x,
-############################ Libraries ################################
+NORMAL_INSTALL = :
+PRE_INSTALL = :
+POST_INSTALL = :
+NORMAL_UNINSTALL = :
+PRE_UNINSTALL = :
+POST_UNINSTALL = :
+build_alias = i586-pc-linux-gnu
+build_triplet = i586-pc-linux-gnu
+host_alias = i586-pc-linux-gnu
+host_triplet = i586-pc-linux-gnu
+target_alias = i586-pc-linux-gnu
+target_triplet = i586-pc-linux-gnu
-COMPLIBS = -lstdc++
-GUILDLIBS = -lwx_stubs $(COMPLIBS) -lXm -lXmu -lXt -lXpm -lX11 -lm
+EXTRA_VPATH = :$(srcdir)/../unix:${srcdir}/../zlib:${srcdir}/../png:${srcdir}/../jpeg
-############################# Suffixes ################################
+VPATH = .:${srcdir}:${srcdir}/../common:${srcdir}/../generic:${srcdir}/../html:${EXTRA_VPATH}
-# Change cpp to c if you want to use main.c instead of main.cpp.
-# Edit wx_setup.h accordingly (USE_C_MAIN=1)
+########################### Programs #################################
-OBJSUFF =o
-SRCSUFF =cpp
-MAINSUFF =cpp
+# C++ compiler
+CC = c++
+CCPP = c++ -E
-####################### No changes below this line ####################
+# C compiler
+CCC = gcc
+CCCPP = gcc -E
-WXINC = $(WXDIR)/include
-WXLIB = $(WXDIR)/lib/libwx$(GUISUFFIX).a
-INC = -I$(WXINC) -I$(WXDIR)/src/png -I$(WXDIR)/src/zlib $(COMPPATHS)
+# Compiler for lex/yacc .c programs
+CCLEX = gcc
+
+LEX = flex
+YACC = bison -y
+AR = ar
+AS =
+NM = /usr/bin/nm -B
+LN_S = ln -s
+STRIP = strip
+MAKE = make
+AROPTIONS = ruv
+RANLIB = ranlib
+LD = /usr/i486-linux/bin/ld
+MAKEINFO = makeinfo
+
+########################### Flags #################################
-# Directory for object files
-OBJDIR = objects$(GUISUFFIX)
+CFLAGS = -D__WXMOTIF__ -fno-rtti -fno-exceptions -D_REENTRANT -O2 -I. -I${top_builddir}/include -I${top_srcdir}/include -I${srcdir}/../zlib -I${srcdir}/../png -I${srcdir}/../jpeg -I/usr/X11R6/include -I/usr/local/include
+CPPFLAGS = -D__WXMOTIF__ -fno-rtti -fno-exceptions -D_REENTRANT -O2 -I. -I${top_builddir}/include -I${top_srcdir}/include -I${srcdir}/../zlib -I${srcdir}/../png -I${srcdir}/../jpeg -I/usr/X11R6/include -I/usr/local/include -Wall
-CPPFLAGS = $(EXTRACPPFLAGS) $(XINCLUDE) $(INC) $(OPTIONS) $(GUI) $(DEBUGFLAGS) $(WARN) $(OPT)
-CFLAGS = $(EXTRACFLAGS) $(XINCLUDE) $(INC) $(COPTIONS) $(GUI) $(DEBUGFLAGS) $(CWARN) $(OPT)
-LDFLAGS = $(EXTRALDFLAGS) $(XLIB) -L$(WXDIR)/lib
-LDLIBS = $(EXTRALDLIBS) $(GUILDLIBS)
+########################### Rules #################################
# Clears all default suffixes
.SUFFIXES: .o .cpp .c
.cpp.o :
$(CC) -c $(CPPFLAGS) -o $@ $<
-.C.o :
- $(CC) -c $(CPPFLAGS) -o $@ $<
-
-####################### Targets to allow multiple GUIs ####################
-
-dummy:
- echo Use a target: one of motif, stubs
-
-stubs:
- make -f makefile.unx all GUI='-D__WXSTUBS__ -D__LINUX__ -D__UNIX__' GUISUFFIX='_stubs' GUILDLIBS='-lwx_stubs $(COMPLIBS) -lXm -lXmu -lXt -lX11 -lm'
+########################### Files #################################
-motif:
- make -f makefile.unx all GUI='-D__WXMOTIF__ -D__LINUX__ -D__UNIX__' GUISUFFIX='_motif' GUILDLIBS='-lwx_motif $(COMPLIBS) -lXm -lXmu -lXt -lXpm -lX11 -lm'
+WXDIR = $(srcdir)/../..
-gtk:
- make -f makefile.unx all GUI='-D__WXGTK__ -D__LINUX__ -D__UNIX__' GUISUFFIX='_gtk' GUILDLIBS='-lwx_gtk $(COMPLIBS) -lXm -lXmu -lXpm -lX11 -lm'
+# Subordinate library possibilities
-cleanstubs:
- make -f makefile.unx clean GUI='-D__WXSTUBS__ -D__LINUX__ -D__UNIX__' GUISUFFIX='_stubs' GUILDLIBS='-lwx_stubs $(COMPLIBS) -lXm -lXmu -lXt -lX11 -lm'
+GENDIR = $(WXDIR)/src/generic
+COMMDIR = $(WXDIR)/src/common
+HTMLDIR = $(WXDIR)/src/html
+UNIXDIR = $(WXDIR)/src/unix
+PNGDIR = $(WXDIR)/src/png
+JPEGDIR = $(WXDIR)/src/jpeg
+ZLIBDIR = $(WXDIR)/src/zlib
+GTKDIR = $(WXDIR)/src/gtk
+MOTIFDIR = $(WXDIR)/src/motif
+INCDIR = $(WXDIR)/include
-cleanmotif:
- make -f makefile.unx clean GUI='-D__WXMOTIF__ -D__LINUX__ -D__UNIX__' GUISUFFIX='_motif' GUILDLIBS='-lwx_motif $(COMPLIBS) -lXm -lXmu -lXt -lX11 -lm'
+DOCDIR = $(WXDIR)/docs
-$(OBJDIR):
- mkdir $(OBJDIR)