/******************************************************************* * $Log: Imakefile,v $ * Revision 1.17.4.3 2000/09/23 02:23:46 lechner * I did cvs ci bde, to be followed by cvs tag bde2alpha.2k0922 bde and cvs co; * checkin updates the repository, tag adds a new tag to current branch (tag bde2apha_rv), * in the repository but not locally, amd cvs co makes the local version have that tag. * * Revision 1.17.4.2 2000/04/06 07:08:02 lechner * I checked in 7 updated files and added tag bde2alpha_rjl * Files Include 3 Imakefiles, bde/{configure.h,aareadme,src/fileio.cc, * executables/bde} * * Revision 1.17.4.1 1999/05/19 22:19:15 vdhamoda * bde2alpha_rv_final * * Revision 1.20 1997/09/23 07:00:18 lechner * Removed the g++-include and gcc-include paths; * Added YuWong's separate path to the gif encoder. * * Revision 1.19 1997/03/22 06:37:03 lechner * Removed the #ifdef GENV6 condition - v6 is obsolete - RJL * * Revision 1.18 1996/12/18 19:37:29 cparisi * BDECODE project 96f523 * adds new "text" class that consolidates some of the test operations. * * Revision 1.17 1995/10/18 21:51:41 rdias * Commented out the g++-include and gcc-include paths in the IMAKE_CMD section. The IMAKE_CMD does not use these to make Makefiles in the subdirectories. * *Revision 1.16 1995/03/16 03:16:55 lechner *Updated BDEDEFINES (LIB_PATH --> BDE_LIB_PATH as in configure.h * *Revision 1.1.1.1 1995/01/04 06:03:42 lechner *Imported 94fbde tree to 95sbde * * Revision 1.6 1994/08/22 20:51:09 lechner * added -V 2.5.8 as per sysmsg 3124 94/7/21 (bug in latest release of g++) * * Revision 1.5 1994/04/16 20:03:36 jrichard * added warnings section * * Revision 1.4 1994/04/13 20:21:09 mtorpey * Modified configure.h to allow the developer to specify the default * lib path for the necessary run time files.. Imakefile needed to * be modified to reflect this change. * * Revision 1.3 1994/04/11 15:20:08 jrichard * added the bdegeo link coordinate system define USE94SLC * * Revision 1.2 1994/04/07 21:35:53 jrichard * version of Imakefile with support for GENV8 and many bugs fixed * *******************************************************************/ #include "configure.h" /* USEGENVxx in conf*.h and GENVERSION below should be consistent-RJL 2k0322 */ /******************************************************************* * the C and C++ compilers *******************************************************************/ #ifdef USEDECC CC = cc /* ansi C compiler */ CPLUSPLUS = cxx /* C++ compiler */ #else CC = gcc /* ansi C compiler */ CPLUSPLUS = g++ /* C++ compiler */ CXX = g++ /* added 011208 - RJL */ #endif /******************************************************************* * options to give the C++ compiler *******************************************************************/ #ifdef USEEXTRAWARN BDEWARNINGS = \ -Wall \ -Wunused \ -Wstrict-prototypes \ -Wmissing-prototypes \ -Wnested-externs \ -Wenum-clash \ -Woverloaded-virtual \ -W /*-ansi */ #endif /******************************************************************* * These are defines to be set during bde compilation * Note: bde/configure.h should #define USEGENVxx consistently-RJL 2k0322 * Why not #define GENVERSION there also? *******************************************************************/ /* GENVERSION = GENV10 */ GENVERSION = GENV11 #ifdef USELCWC DCLCDEFINE = -DLCWC #endif #ifdef USE94SLC S94LCDEFINE = -DS94LC #endif BDEDEFINES = -D$(GENVERSION) $(BDEUSERDEFINES) $(S94LCDEFINE) \ $(DCLCDEFINE) -DDEFAULT_LIB_PATH=\"$(BDE_LIB_PATH)\" /******************************************************************* * This is what will actually be used by the C++ compiler **************************************************************/ #ifdef USEDECC CPPOPTIONS = -g -std ansi /* set debug flag */ #else CPPOPTIONS = -g -Wall /* set debug flag */ #endif /* I added -Wall in ~/bdealpha_rjl - RJL 2k0523 */ /* see also BDEWARNINGS aand USEEXTRAWARN */ /* what about Linux? - see bde/src/Imakefile which contains: */ /* #ifdef LinuxArchitecture */ /* EXTRA_LIBRARIES = -lXm -lXt -lX11 -lm -lbsdmalloc */ CPLUSPLUSFLAGS = $(BDEDEFINES) $(CPPOPTIONS) /******************************************************************* * Tell imake that we have subdirs and what we want to pass to the * imake files in those subdirs *******************************************************************/ #define IHaveSubdirs #define PassCDebugFlags 'CDEBUGFLAGS=$(CDEBUGFLAGS)' \ 'CC=$(CC)' \ 'CPLUSPLUS=$(CPLUSPLUS)' \ 'CPLUSPLUSFLAGS=$(CPLUSPLUSFLAGS)' \ 'GENVERSION=$(GENVERSION)' /********* Add text subdirectory***********Haiyan************/ SUBDIRS = pr_util /*extern_code*/ src MakeSubdirs($(SUBDIRS)) DependSubdirs($(SUBDIRS)) IMAKE_CMD = $(IMAKE) -DUseInstalled -Dnostdinc\ -I/usr/lib/X11/config \ -I/usr/lib/Xm \ $(IMAKE_DEFINES) DEPXMLIB = /usr/include