From: Cass W. E. <ca...@r3...> - 2000-01-22 04:47:01
|
ak...@po... wrote: > > | I may look into doing a bit of major work on the Makefiles... > > Sounds like it might be necessary. Let's make a separate version for > BeOS, though; sharing Makefiles across different operating systems is > *very* difficult if all developers don't have access to all the > operating systems so that they can verify changes. > We regularly build the same source tree under Win32 and Linux, and have built a set of GNU Makefile facilities called "makeLib" using this approach, we have very simple makefiles. Here's an example of a makefile that builds a library called libsoftLibOpenGL.so or softLibOpenGL.dll depending on the build platform, and has dependencies on the "cost" package. --- TOPDIR := ../.. PACKAGE_DEPENDENCIES := cost SUBDIRS := mappers nids LIBTARGETS := softLibOpenGL include $(MAKELIB_HOME)/all.mk --- Here's an example of a makefile that builds an executable called display_nexrad_sites. It has package dependencies of cost, softLib, mysql (client libs), glut, and gl (glu is implicitly included with the gl package). Packages are defined in MakeLib and are user overridable. --- PACKAGE_DEPENDENCIES := cost softLib mysql glut gl BINTARGETS := display_nexrad_sites include $(MAKELIB_HOME)/all.mk --- We did a lot of work to try to make makeLib as configurable and simple as possible while supporting platform independence. We currently use it to build using gnu compilers on linux and the MSVC++ on Win32. We've found it helpful to not have to supply two sets of makefiles, but it does require installing the cygwin tools. We have pretty much made a commitment to provide this as open source, and it would probably be pretty easy for us to convert the glean makefiles to use makeLib. Would that be a worthwhile effort? Cass -- ---------------------------------------------------------- Cass W. Everitt Objectecture, Inc. Ph: 256/772-2365 112 Ketchum Way http://www.r3.nu/ Madison, AL 35758 |