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
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)
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))
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)
install : all force
$(MKDIR) $(DESTDIR)$(libdir)
- $(LIBTOOL_INSTALL) $(INSTALL_DATA) libcln.la $(DESTDIR)$(libdir)/libcln.la
+ $(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