From e4a1a341ccc4f315afe27cfe3195b915c31d2061 Mon Sep 17 00:00:00 2001 From: curt Date: Tue, 14 Apr 1998 02:43:57 +0000 Subject: [PATCH] Code reorganizations. Added a Lib/ directory for more general libraries. --- DEM/Makefile.am | 7 ++++++- DEM/Makefile.in | 18 +++++++++++------- 2 files changed, 17 insertions(+), 8 deletions(-) diff --git a/DEM/Makefile.am b/DEM/Makefile.am index d24cc6b35..aeb7ecf2c 100644 --- a/DEM/Makefile.am +++ b/DEM/Makefile.am @@ -4,5 +4,10 @@ lib_LTLIBRARIES = libDEM.la libDEM_la_SOURCES = dem.cxx dem.hxx leastsqs.cxx leastsqs.hxx -INCLUDES += -I../../Simulator +INCLUDES += -I$(top_builddir) -I$(top_builddir)/Lib + +# We can't build this with "-O2" (optimization) since this causes a seg fault +# I haven't found a way to strip this out of the CXXFLAGS, so I'm just +# setting it to "-g" +CXXFLAGS = -g diff --git a/DEM/Makefile.in b/DEM/Makefile.in index 81e385ab9..bd39aee3c 100644 --- a/DEM/Makefile.in +++ b/DEM/Makefile.in @@ -75,13 +75,18 @@ libdir = ${exec_prefix}/lib lib_LTLIBRARIES = libDEM.la libDEM_la_SOURCES = dem.cxx dem.hxx leastsqs.cxx leastsqs.hxx + +# We can't build this with "-O2" (optimization) since this causes a seg fault +# I haven't found a way to strip this out of the CXXFLAGS, so I'm just +# setting it to "-g" +CXXFLAGS = -g mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs -CONFIG_HEADER = ../../Simulator/Include/config.h +CONFIG_HEADER = ../../Include/config.h CONFIG_CLEAN_FILES = LTLIBRARIES = $(lib_LTLIBRARIES) -DEFS = @DEFS@ -I. -I$(srcdir) -I../../Simulator/Include +DEFS = @DEFS@ -I. -I$(srcdir) -I../../Include CPPFLAGS = @CPPFLAGS@ LDFLAGS = @LDFLAGS@ LIBS = @LIBS@ @@ -92,7 +97,6 @@ X_PRE_LIBS = @X_PRE_LIBS@ libDEM_la_LDFLAGS = libDEM_la_LIBADD = libDEM_la_OBJECTS = dem.lo leastsqs.lo -CXXFLAGS = @CXXFLAGS@ CXXCOMPILE = $(CXX) $(DEFS) $(INCLUDES) $(CPPFLAGS) $(CXXFLAGS) LTCXXCOMPILE = $(LIBTOOL) --mode=compile $(CXX) $(DEFS) $(INCLUDES) $(CPPFLAGS) $(CXXFLAGS) CXXLINK = $(LIBTOOL) --mode=link $(CXX) $(CXXFLAGS) $(LDFLAGS) -o $@ @@ -113,7 +117,7 @@ all: Makefile $(LTLIBRARIES) .SUFFIXES: .SUFFIXES: .S .c .cxx .lo .o .s $(srcdir)/Makefile.in: @MAINT@ Makefile.am $(top_srcdir)/configure.in $(ACLOCAL_M4) - cd $(top_srcdir) && $(AUTOMAKE) --gnu Tools/DEM/Makefile + cd $(top_srcdir) && $(AUTOMAKE) --gnu Lib/DEM/Makefile Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status $(BUILT_SOURCES) cd $(top_builddir) \ @@ -211,14 +215,14 @@ maintainer-clean-tags: distdir = $(top_builddir)/$(PACKAGE)-$(VERSION)/$(subdir) -subdir = Tools/DEM +subdir = Lib/DEM distdir: $(DISTFILES) here=`cd $(top_builddir) && pwd`; \ top_distdir=`cd $(top_distdir) && pwd`; \ distdir=`cd $(distdir) && pwd`; \ cd $(top_srcdir) \ - && $(AUTOMAKE) --include-deps --build-dir=$$here --srcdir-name=$(top_srcdir) --output-dir=$$top_distdir --gnu Tools/DEM/Makefile + && $(AUTOMAKE) --include-deps --build-dir=$$here --srcdir-name=$(top_srcdir) --output-dir=$$top_distdir --gnu Lib/DEM/Makefile @for file in $(DISTFILES); do \ d=$(srcdir); \ test -f $(distdir)/$$file \ @@ -328,7 +332,7 @@ installdirs mostlyclean-generic distclean-generic clean-generic \ maintainer-clean-generic clean mostlyclean distclean maintainer-clean -INCLUDES += -I../../Simulator +INCLUDES += -I$(top_builddir) -I$(top_builddir)/Lib # Tell versions [3.59,3.63) of GNU make to not export all variables. # Otherwise a system limit (for SysV at least) may be exceeded. -- 2.39.2