diff --git a/Cockpit/Makefile.am b/Cockpit/Makefile.am index 2b3be56a3..b09ad7fb3 100644 --- a/Cockpit/Makefile.am +++ b/Cockpit/Makefile.am @@ -1,7 +1,6 @@ -libdir = ${exec_prefix}/lib +noinst_LIBRARIES = libCockpit.a -lib_LTLIBRARIES = libCockpit.la -libCockpit_la_SOURCES = \ +libCockpit_a_SOURCES = \ cockpit.cxx cockpit.hxx \ hud.cxx hud.hxx diff --git a/Cockpit/hud.cxx b/Cockpit/hud.cxx index bfad1f39d..6dc3a86e6 100644 --- a/Cockpit/hud.cxx +++ b/Cockpit/hud.cxx @@ -53,13 +53,6 @@ #include "hud.hxx" -#ifdef __sun__ -extern "C" { - extern void *memmove(void *, const void *, size_t); -} -#endif - - // The following routines obtain information concerntin the aircraft's // current state and return it to calling instrument display routines. // They should eventually be member functions of the aircraft. @@ -1923,10 +1916,14 @@ void fgUpdateHUD( void ) { } /* $Log$ -/* Revision 1.11 1998/06/05 18:17:10 curt -/* Added the declaration of memmove needed by the stl which apparently -/* solaris only defines for cc compilations and not for c++ (__STDC__) +/* Revision 1.12 1998/06/12 00:55:59 curt +/* Build only static libraries. +/* Declare memmove/memset for Sloaris. /* + * Revision 1.11 1998/06/05 18:17:10 curt + * Added the declaration of memmove needed by the stl which apparently + * solaris only defines for cc compilations and not for c++ (__STDC__) + * * Revision 1.10 1998/05/17 16:58:12 curt * Added a View Frustum Culling ratio display to the hud. * diff --git a/Cockpit/hud.hxx b/Cockpit/hud.hxx index f62575bda..8ef19ca71 100644 --- a/Cockpit/hud.hxx +++ b/Cockpit/hud.hxx @@ -33,11 +33,18 @@ #endif -#include +#ifdef HAVE_CONFIG_H +# include +#endif +#ifdef __sun__ +extern "C" void *memmove(void *, const void *, size_t); +extern "C" void *memset(void *, int, size_t); +#endif #include #include + #include #include #include @@ -446,9 +453,13 @@ void fgHUDSetTimeMode( Hptr hud, int time_of_day ); #endif // _HUD_H /* $Log$ -/* Revision 1.6 1998/06/03 00:43:28 curt -/* No .h when including stl stuff. +/* Revision 1.7 1998/06/12 00:56:00 curt +/* Build only static libraries. +/* Declare memmove/memset for Sloaris. /* + * Revision 1.6 1998/06/03 00:43:28 curt + * No .h when including stl stuff. + * * Revision 1.5 1998/05/17 16:58:13 curt * Added a View Frustum Culling ratio display to the hud. * diff --git a/Scenery/Makefile.am b/Scenery/Makefile.am index 85edaa051..91a7ad6cc 100644 --- a/Scenery/Makefile.am +++ b/Scenery/Makefile.am @@ -1,8 +1,6 @@ -libdir = ${exec_prefix}/lib +noinst_LIBRARIES = libScenery.a -lib_LTLIBRARIES = libScenery.la - -libScenery_la_SOURCES = \ +libScenery_a_SOURCES = \ material.cxx material.hxx \ obj.cxx obj.hxx \ scenery.cxx scenery.hxx \ diff --git a/Scenery/material.cxx b/Scenery/material.cxx index 8f4a56761..fda7716ba 100644 --- a/Scenery/material.cxx +++ b/Scenery/material.cxx @@ -33,6 +33,8 @@ #include #include +#include + #include #include #include
@@ -207,6 +209,10 @@ fgMATERIAL_MGR::~fgMATERIAL_MGR ( void ) { // $Log$ +// Revision 1.4 1998/06/12 00:58:04 curt +// Build only static libraries. +// Declare memmove/memset for Sloaris. +// // Revision 1.3 1998/06/05 22:39:53 curt // Working on sorting by, and rendering by material properties. // diff --git a/Scenery/material.hxx b/Scenery/material.hxx index 83a882042..83a05a6fe 100644 --- a/Scenery/material.hxx +++ b/Scenery/material.hxx @@ -41,6 +41,11 @@ #include #include +#ifdef __sun__ +extern "C" void *memmove(void *, const void *, size_t); +extern "C" void *memset(void *, int, size_t); +#endif + #include // STL associative "array" #include // Standard C++ string library @@ -108,6 +113,10 @@ extern fgMATERIAL_MGR material_mgr; // $Log$ +// Revision 1.7 1998/06/12 00:58:04 curt +// Build only static libraries. +// Declare memmove/memset for Sloaris. +// // Revision 1.6 1998/06/06 01:09:31 curt // I goofed on the log message in the last commit ... now fixed. // diff --git a/Scenery/obj.cxx b/Scenery/obj.cxx index 4d09c8b12..4243d5595 100644 --- a/Scenery/obj.cxx +++ b/Scenery/obj.cxx @@ -35,6 +35,11 @@ #include #include +#ifdef __sun__ +extern "C" void *memmove(void *, const void *, size_t); +extern "C" void *memset(void *, int, size_t); +#endif + #include // STL #include // Standard C++ library @@ -431,6 +436,10 @@ int fgObjLoad(char *path, fgTILE *tile) { // $Log$ +// Revision 1.13 1998/06/12 00:58:05 curt +// Build only static libraries. +// Declare memmove/memset for Sloaris. +// // Revision 1.12 1998/06/08 17:57:54 curt // Working first pass at material proporty sorting. // diff --git a/Scenery/tile.hxx b/Scenery/tile.hxx index 3f4c8d96a..295117936 100644 --- a/Scenery/tile.hxx +++ b/Scenery/tile.hxx @@ -41,6 +41,11 @@ #include #include +#ifdef __sun__ +extern "C" void *memmove(void *, const void *, size_t); +extern "C" void *memset(void *, int, size_t); +#endif + #include // STL list #include @@ -105,6 +110,10 @@ public: // $Log$ +// Revision 1.7 1998/06/12 00:58:05 curt +// Build only static libraries. +// Declare memmove/memset for Sloaris. +// // Revision 1.6 1998/06/08 17:57:54 curt // Working first pass at material proporty sorting. //