1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68
|
/* base directory for software projects */
#define ProjectDir /proj
/* gcc command line with -V for version and -O for optimize */
#define CCDriver g++
#undef HasDynamicSharedLibraries
#define HasDynamicSharedLibraries YES
#undef SharedCCFlags
#define SharedCCFlags -fPIC
#undef SharedCCLdFlags
#define SharedCCLdFlags
#undef TroffCmd
#define TroffCmd groff
/*
* build RPC classes -- requires iostreams & TCP sockets
*/
#undef BuildRPCClasses
#define BuildRPCClasses (YES&&!LibStdCPlusPlusV3)
#define SOMAXCONN 5
/* override -ansi -pedantic from xfree86.cf */
#undef DefaultCCOptions
#define DefaultCCOptions /**/
/* machine-specific gcc include directory -- does not change with each new version of gcc */
#define ToolIncludeDir /usr/local/include
/* link libraries for the above */
#undef ExtraCCLdLibs
#define ExtraCCLdLibs -lstdc++ -lm
/* command to create shared libraries */
#define SharedLibraryCmd(ldobjs,extra_flags) gcc -shared extra_flags -o $@ ldobjs
/*
* Install a shared library on NetBSD.
*/
#ifndef InstallDynamicSharedLibrary
#define InstallDynamicSharedLibrary(libname,rev,dest) @@\
install:: Concat(lib,libname.so.rev) @@\
MakeDir(dest) @@\
$(INSTALL) -c $(INSTLIBFLAGS) Concat(lib,libname.so.rev) dest @@\
-@$(RM) dest/Concat(lib,libname.so) @@\
-@(cd dest;$(LN) Concat(lib,libname.so.rev) \ @@\
Concat(lib,libname.so)) @@\
@@\
uninstall:: @@\
$(RM) dest/Concat(lib,libname.so.rev) @@\
$(RM) dest/Concat(lib,libname.so)
#endif
#ifndef ImakeFlags
#define ImakeFlags \ @@\
-T IMAKE_TEMPLATE -U$(MACHINE_ARCH) \ @@\
ImakeIncludes\ @@\
$(SPECIAL_IMAKEFLAGS)
#endif
/* file output by configure script */
#include "config-netbsd-gcc.defs"
|