diff options
author | Fabian Groffen <grobian@gentoo.org> | 2019-03-27 11:53:58 +0100 |
---|---|---|
committer | Fabian Groffen <grobian@gentoo.org> | 2019-03-27 11:53:58 +0100 |
commit | d0a8d231167adddb80a73849d3bc70edbfda3507 (patch) | |
tree | 387e1ffea50f8da37063ce5be638fe35f7397712 /qcheck.c | |
parent | libq: split out cache-related funcs from main/qsearch (diff) | |
download | portage-utils-d0a8d231167adddb80a73849d3bc70edbfda3507.tar.gz portage-utils-d0a8d231167adddb80a73849d3bc70edbfda3507.tar.bz2 portage-utils-d0a8d231167adddb80a73849d3bc70edbfda3507.zip |
build: compile applets as separate objects
Instead of including everything from a single file, compile each applet
separately. This standardises things somewhat, and allows for parallel
compilation.
Signed-off-by: Fabian Groffen <grobian@gentoo.org>
Diffstat (limited to 'qcheck.c')
-rw-r--r-- | qcheck.c | 20 |
1 files changed, 15 insertions, 5 deletions
@@ -7,9 +7,23 @@ * Copyright 2018- Fabian Groffen - <grobian@gentoo.org> */ -#ifdef APPLET_qcheck +#include "main.h" +#include "applets.h" +#include <sys/types.h> #include <inttypes.h> +#include <sys/stat.h> +#include <fcntl.h> + +#include "atom.h" +#include "contents.h" +#include "md5_sha1_sum.h" +#include "prelink.h" +#include "set.h" +#include "vdb.h" +#include "xarray.h" +#include "xasprintf.h" +#include "xregex.h" #define QCHECK_FLAGS "s:uABHTPp" COMMON_FLAGS static struct option const qcheck_long_opts[] = { @@ -437,7 +451,3 @@ int qcheck_main(int argc, char **argv) xarrayfree_int(atoms); return ret; } - -#else -DEFINE_APPLET_STUB(qcheck) -#endif |