]> www.ginac.de Git - cln.git/blobdiff - src/Makefile.in
* include/cln/config.h.in: Add support for PowerPC 64 CPU.
[cln.git] / src / Makefile.in
index f2041ee3279ee634aa664f8ba6cf2d327b26c701..885f27ffefe8da68f1777ca91527e4ef35f3e0d2 100644 (file)
@@ -26,7 +26,8 @@ CXX = @CXX@
 CXXFLAGS = @CXXFLAGS@
 CXXCPP = @CXXCPP@
 INCLUDES = -I../include -I$(top_srcdir)/include
-CPPFLAGS += $(INCLUDES)
+override CPPFLAGS += $(INCLUDES)
+LDFLAGS = @LDFLAGS@
 LIBS = @LIBS@
 LIBTOOL = @LIBTOOL@
 LIBTOOL_COMPILE = $(LIBTOOL) --mode=compile
@@ -39,6 +40,7 @@ RANLIB = @RANLIB@
 MV = mv
 LN = ln
 RM = rm -f
+MKDIR = mkdir -p
 @SET_MAKE@
 # Libtool's library interface versions:
 CL_CURRENT = @CL_CURRENT@
@@ -63,12 +65,14 @@ top_builddir = ..
 SUBDIR = .
 
 # Define the search path for sources.
-# The ":" below keeps config.status from removing this line.
-VPATH = $(srcdir)/$(SUBDIR) # :
+# The variable $(aux_srcdir) is needed because new versions of aufoconf tend to
+# remove $(srcdir), ${srcdir} and so on...
+aux_srcdir = @srcdir@
+VPATH = $(aux_srcdir)/$(SUBDIR)
 
 # Add subdirectory specific flags.
 include $(srcdir)/$(SUBDIR)/Makeflags
-CPPFLAGS += $(SUBDIR_INCLUDES)
+override CPPFLAGS += $(SUBDIR_INCLUDES)
 
 # Need to know the system name.
 SYSTEM := $(shell uname -s)
@@ -93,9 +97,9 @@ OBJECTS_LO = $(FILES_LO) $(ASMFILES_LO)
 SUBDIRS := $(patsubst $(srcdir)/%/.,%,$(wildcard $(srcdir)/$(SUBDIR)/*/.))
 # Avoid certain subdirectories:
 #   private/ and old/ don't contain valid sources,
-#   CVS/ and RCS/ are created when people put the sources under version control,
+#   CVS/, RCS/ and SCCS/ are created when people put the sources under version control,
 #   ii_files/ is created during "make" by SGI C++.
-SUBDIRS := $(filter-out old ./old private ./private CVS %/CVS RCS %/RCS ii_files ./ii_files,$(SUBDIRS))
+SUBDIRS := $(filter-out old ./old private ./private CVS %/CVS RCS %/RCS SCCS %/SCCS ii_files ./ii_files,$(SUBDIRS))
 
 SUBDIRS_TARGET := $(patsubst %,%.target,$(SUBDIRS))
 SUBDIRS_DIRDEP := $(patsubst %,%.dirdep,$(SUBDIRS))
@@ -196,29 +200,22 @@ $(SUBDIRS_DIRDEP) : %.dirdep :
 
 ifeq ($(SUBDIR),.)
 
+$(ALLOBJECTS_LO) : $(SUBDIRS_TARGET)
+
 libcln.la : $(LIBTOOL) $(ALLOBJECTS_LO)
-       $(LIBTOOL_LINK) $(CC) -o libcln.la -rpath $(libdir) -version-info $(CL_CURRENT):$(CL_REVISION):$(CL_AGE) $(LDFLAGS) $(LIBS) $(ALLOBJECTS_LO)
+       echo $(ALLOBJECTS_LO) | tr ' ' '\n' > libcln.objectlist
+       $(LIBTOOL_LINK) $(CXX) -o libcln.la -rpath $(libdir) -version-info $(CL_CURRENT):$(CL_REVISION):$(CL_AGE) $(LDFLAGS) $(LIBS) -objectlist libcln.objectlist
 
 install : all force
-       if [ ! -d $(DESTDIR)$(libdir) ] ; then mkdir $(DESTDIR)$(libdir) ; fi
-       $(LIBTOOL_INSTALL) $(INSTALL_DATA) libcln.la $(DESTDIR)$(libdir)/libcln.la
-       if [ ! -d $(DESTDIR)$(includedir) ] ; then mkdir $(DESTDIR)$(includedir) ; fi
-       if [ ! -d $(DESTDIR)$(includedir)/cln ] ; then mkdir $(DESTDIR)$(includedir)/cln ; fi
+       $(MKDIR) $(DESTDIR)$(libdir)
+       $(LIBTOOL_INSTALL) $(INSTALL_PROGRAM) libcln.la $(DESTDIR)$(libdir)/libcln.la
+       $(MKDIR) $(DESTDIR)$(includedir)/cln
        $(INSTALL_DATA) $(top_srcdir)/include/cln/*.h $(DESTDIR)$(includedir)/cln
        $(INSTALL_DATA) ../include/cln/*.h $(DESTDIR)$(includedir)/cln
-#      if [ ! -d $(DESTDIR)$(mandir) ] ; then mkdir $(DESTDIR)$(mandir) ; fi
-#      if [ ! -d $(DESTDIR)$(mandir)/man3 ] ; then mkdir $(DESTDIR)$(mandir)/man3 ; fi
-#      if [ ! -d $(DESTDIR)$(datadir) ] ; then mkdir $(DESTDIR)$(datadir) ; fi
-#      if [ ! -d $(DESTDIR)$(datadir)/html ] ; then mkdir $(DESTDIR)$(datadir)/html ; fi
 
 installdirs : force
-       if [ ! -d $(DESTDIR)$(libdir) ] ; then mkdir $(DESTDIR)$(libdir) ; fi
-       if [ ! -d $(DESTDIR)$(includedir) ] ; then mkdir $(DESTDIR)$(includedir) ; fi
-       if [ ! -d $(DESTDIR)$(includedir)/cln ] ; then mkdir $(DESTDIR)$(includedir)/cln ; fi
-#      if [ ! -d $(DESTDIR)$(mandir) ] ; then mkdir $(DESTDIR)$(mandir) ; fi
-#      if [ ! -d $(DESTDIR)$(mandir)/man3 ] ; then mkdir $(DESTDIR)$(mandir)/man3 ; fi
-#      if [ ! -d $(DESTDIR)$(datadir) ] ; then mkdir $(DESTDIR)$(datadir) ; fi
-#      if [ ! -d $(DESTDIR)$(datadir)/html ] ; then mkdir $(DESTDIR)$(datadir)/html ; fi
+       $(MKDIR) $(DESTDIR)$(libdir)
+       $(MKDIR) $(DESTDIR)$(includedir)/cln
 
 uninstall : force
        $(LIBTOOL_UNINSTALL) $(RM) $(DESTDIR)$(libdir)/libcln.la
@@ -229,7 +226,7 @@ check : all
 mostlyclean : clean
 
 clean : force
-       $(RM) *.s *.o *.lo *.a *.la core
+       $(RM) *.s *.o *.lo *.a *.la *.objectlist core
        $(RM) -r .libs _libs
 
 distclean : clean