From ca8e8accc459c9fb03053619a49629f7a1111302 Mon Sep 17 00:00:00 2001 From: Juan RP Date: Mon, 24 Oct 2011 09:05:16 +0200 Subject: [PATCH] Move external code used by libxbps into lib/external. --- lib/Makefile | 15 +++++++++------ lib/{ => external}/dewey.c | 0 lib/{ => external}/fexec.c | 0 lib/{ => external}/humanize_number.c | 0 lib/{ => external}/match.c | 0 lib/{ => external}/mkpath.c | 0 6 files changed, 9 insertions(+), 6 deletions(-) rename lib/{ => external}/dewey.c (100%) rename lib/{ => external}/fexec.c (100%) rename lib/{ => external}/humanize_number.c (100%) rename lib/{ => external}/match.c (100%) rename lib/{ => external}/mkpath.c (100%) diff --git a/lib/Makefile b/lib/Makefile index 729a167d..89e2c498 100644 --- a/lib/Makefile +++ b/lib/Makefile @@ -36,19 +36,22 @@ ifdef USE_EXTERNAL_LIBFETCH LIBFETCH_OBJS = endif +# External code used by libxbps +EXTOBJS = external/dewey.o external/fexec.o external/humanize_number.o +EXTOBJS += external/match.o external/mkpath.o + # libxbps OBJS = package_configure.o package_config_files.o package_orphans.o OBJS += package_remove.o package_remove_obsoletes.o package_state.o OBJS += package_unpack.o package_requiredby.o package_register.o OBJS += package_purge.o transaction_commit.o transaction_package_replace.o -OBJS += transaction_dictionary.o transaction_sortdeps.o -OBJS += download.o fexec.o humanize_number.o plist.o -OBJS += plist_archive_entry.o plist_find.o plist_match.o plist_remove.o -OBJS += plist_fetch.o util.o util_hash.o mkpath.o initend.o -OBJS += regpkgdb_dictionary.o match.o dewey.o init_virtualpkgs.o +OBJS += transaction_dictionary.o transaction_sortdeps.o download.o +OBJS += plist.o plist_archive_entry.o plist_find.o plist_match.o +OBJS += plist_remove.o plist_fetch.o util.o util_hash.o +OBJS += initend.o regpkgdb_dictionary.o init_virtualpkgs.o OBJS += repository_findpkg.o repository_finddeps.o OBJS += repository_pool.o repository_pool_find.o repository_sync_index.o -OBJS += $(COMPAT_SRCS) +OBJS += $(EXTOBJS) $(COMPAT_SRCS) .PHONY: all all: libxbps.so libxbps.a diff --git a/lib/dewey.c b/lib/external/dewey.c similarity index 100% rename from lib/dewey.c rename to lib/external/dewey.c diff --git a/lib/fexec.c b/lib/external/fexec.c similarity index 100% rename from lib/fexec.c rename to lib/external/fexec.c diff --git a/lib/humanize_number.c b/lib/external/humanize_number.c similarity index 100% rename from lib/humanize_number.c rename to lib/external/humanize_number.c diff --git a/lib/match.c b/lib/external/match.c similarity index 100% rename from lib/match.c rename to lib/external/match.c diff --git a/lib/mkpath.c b/lib/external/mkpath.c similarity index 100% rename from lib/mkpath.c rename to lib/external/mkpath.c