.PHONY: headers library clean veryclean all binary program doc
all headers library clean veryclean binary program doc:
- $(MAKE) -C deity $@
$(MAKE) -C apt-pkg $@
$(MAKE) -C cmdline $@
+ $(MAKE) -C deity $@
+ $(MAKE) -C gui $@
$(MAKE) -C doc $@
# Linker stuff
PICFLAGS+= -fPIC -DPIC
-LFLAGS+= @LDFLAGS@
-XLIBS:=@X_LIBS@ @X_PRE_LIBS@ @X_EXTRA_LIBS@
+LFLAGS+= @LDFLAGS@
+XLIBS:=@X_LIBS@ @X_PRE_LIBS@ @X11LIB@ @X_EXTRA_LIBS@
# Dep generation - this only works for gnu stuff
INLINEDEPFLAG = -MD
X11LIB = @X11LIB@
GPMLIB = @GPMLIB@
SLANGLIB = @SLANGLIB@
+XPMLIB = @XPMLIB@
$(LOCAL)-DEP := $(addprefix $(DEP)/,$(addsuffix .d,$(notdir $(basename $(SOURCE)))))
$(LOCAL)-HEADERS := $(addprefix $(INCLUDE)/,$(HEADERS))
$(LOCAL)-SONAME := lib$(LIBRARY).so.$(MAJOR)
+$(LOCAL)-SLIBS := $(SLIBS)
# Install the command hooks
headers: $($(LOCAL)-HEADERS)
$(LIB)/lib$(LIBRARY).so.$(MAJOR).$(MINOR): $($(LOCAL)-HEADERS) $($(LOCAL)-OBJS)
echo Building shared library $@
$(CXX) $(CXXFLAGS) $(LDFLAGS) $(PICFLAGS) $(LFLAGS) -o $@ \
- -Wl,-soname -Wl,$($(@F)-SONAME) -shared $(filter %.opic,$^)
+ -Wl,-soname -Wl,$($(@F)-SONAME) -shared $(filter %.opic,$^) \
+ $($(@F)-SLIBS)
# Compilation rules
vpath %.cc $(SUBDIRS)
// -*- mode: cpp; mode: fold -*-
// Description /*{{{*/
-// $Id: apt-cache.cc,v 1.5 1998/07/21 05:33:21 jgg Exp $
+// $Id: apt-cache.cc,v 1.6 1998/07/26 23:11:56 jgg Exp $
/* ######################################################################
apt-cache - Manages the cache file.
#include <apt-pkg/deblistparser.h>
#include <apt-pkg/init.h>
#include <apt-pkg/progress.h>
+#include <apt-pkg/sourcelist.h>
#include <iostream.h>
#include <fstream.h>
return true;
}
/*}}}*/
+// GenCaches - Call the main cache generator /*{{{*/
+// ---------------------------------------------------------------------
+/* */
+bool GenCaches()
+{
+ OpTextProgress Progress;
+ pkgSourceList List;
+ List.ReadMainList();
+ return pkgMakeStatusCache(List,Progress);
+}
+ /*}}}*/
int main(int argc, char *argv[])
{
break;
}
+ if (strcmp(argv[1],"gencaches") == 0)
+ {
+ GenCaches();
+ break;
+ }
+
// Open the cache file
FileFd CacheF(CacheFile,FileFd::ReadOnly);
if (_error->PendingError() == true)
DumpAvail(Cache);
break;
}
-
+
_error->Error("Invalid operation %s", argv[1]);
break;
}
AC_SUBST(X11LIB)
X11LIB=
if test "$no_x" != "yes"; then
- X11LIB="-lx11"
+ X11LIB="-lX11"
AC_DEFINE(HAVE_X11)
+ dnl Checks for Slang
+ AC_CHECK_LIB(Xpm, XpmLibraryVersion,[AC_DEFINE(HAVE_LIBXPM) XPMLIB="-lXpm"],,$X_LIBS $X_PRE_LIBS $X11LIB $X_EXTRA_LIBS)
+ AC_SUBST(XPMLIB)
+ if test "$XPMLIB" != "-lXpm"; then
+ AC_MSG_ERROR(failed: I need xpm if you are building for X)
+ fi
fi
dnl Checks for Slang