/*
$Id: gcc.def,v 1.6 1996/10/18 07:43:29 bheide Exp $

$Log: gcc.def,v $
Revision 1.6  1996/10/18 07:43:29  bheide
added UseGcc macro

Revision 1.5  1996/10/17 05:55:10  hleitner
Added support for shared libraries;
new imake-defines:  SharedCCFlags,  SharedCCLdLibFlags,  SharedCCLdFlags

Revision 1.4  1996/08/02 12:56:09  hleitner
changed  DependCmd to hgmakedep -V2.7.2.

Revision 1.3  1996/08/01 14:54:06  hleitner
Default CCDriver and CcCmd now set to: gcc V2.7.2 !!!

Revision 1.2  1996/02/16 07:37:11  hleitner
Use gccmakedep for DependCmd (gcc -M).

Revision 1.1  1995/11/13 09:55:03  hleitner
Initial revision

*/

#ifndef HasGcc
#define HasGcc YES
#endif

#ifndef HasGcc2
#define HasGcc2 YES
#endif


#undef LanguageCCDefines
#define LanguageCCDefines -Dcplusplus_2_1

/* We should use the same compiler version on all platforms; for now it is
   GCC 2.6.3, because we don't trust version 2.7.0 -- bheide180895 */
#ifndef CcCmd
#define CcCmd gcc
#endif
  
#ifndef CCDriver
#define CCDriver g++
#endif

#ifndef UseGcc
#define UseGcc()                                                        @@\
         CCDRIVER = CcCmd                                               @@\
         CCSUFFIX = c
#endif

#ifndef DependCmd
#define DependCmd hgmakedep
#endif


#ifndef SharedCCFlags
#define SharedCCFlags -fPIC
#endif

#ifndef SharedCCLdLibFlags
#define SharedCCLdLibFlags -fPIC -shared
#endif

#ifndef SharedCCLdFlags
#define SharedCCLdFlags  -Xlinker -R -Xlinker /usr/local/Hyper-G/shlib:/usr/local/Harmony/shlib -L$(HGSHAREDLIBDIR)
#endif


#ifndef DependCCFlags
/* mgais 11.9.95 -I/usr/local/lib/gcc-lib/include added */
/*
  #define DependCCFlags -D__GNUC__ $(CCDEFINES) $(CCINCLUDES) -I/usr/local/lib/g++-include -I/usr/local/lib/gcc-lib/include
  */
/* With gccmakedep -D__GNUC__, -I/usr/local/lib/g++-include and
   -I/usr/local/lib/gcc-lib/include should not be neccessary anymore.
   H. Leitner: 16.02.1996 */
#define DependCCFlags $(CCDEFINES) $(CCINCLUDES) 
#endif

#ifndef HasGcc2ForCplusplus
#define HasGcc2ForCplusplus YES
#endif

