aboutsummaryrefslogtreecommitdiff
blob: d3ebafcc189cc12ded2cc7942b3939265e37ec68 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
ACLOCAL_AMFLAGS = -I autotools/m4

SUBDIRS = \
	autotools/gnulib \
	libq \
	. \
	tests \
	$(NULL)

APPLETS = \
	q \
	qatom \
	qcheck \
	qdepends \
	qfile \
	qgrep \
	qkeyword \
	qlist \
	qlop \
	qmerge \
	qpkg \
	qsearch \
	qsize \
	qtbz2 \
	qtegrity \
	quse \
	qwhich \
	qxpak \
	$(NULL)

dist_man_MANS = \
	man/q.1 \
	man/qatom.1 \
	man/qcheck.1 \
	man/qdepends.1 \
	man/qfile.1 \
	man/qgrep.1 \
	man/qkeyword.1 \
	man/qlist.1 \
	man/qlop.1 \
	man/qmerge.1 \
	man/qpkg.1 \
	man/qsearch.1 \
	man/qsize.1 \
	man/qtbz2.1 \
	man/qtegrity.1 \
	man/quse.1 \
	man/qwhich.1 \
	man/qxpak.1 \
	$(NULL)

bin_PROGRAMS = q
q_SOURCES = \
	main.c \
	q.c \
	qatom.c \
	qcheck.c \
	qdepends.c \
	qfile.c \
	qgrep.c \
	qkeyword.c \
	qlist.c \
	qlop.c \
	qmerge.c \
	qpkg.c \
	qsearch.c \
	qsize.c \
	qtbz2.c \
	qtegrity.c \
	quse.c \
	qwhich.c \
	qxpak.c \
	$(NULL)
q_CPPFLAGS = \
	-I$(top_srcdir)/libq \
	-I$(top_builddir)/autotools/gnulib \
	-I$(top_srcdir)/autotools/gnulib \
	$(OPENMP_CFLAGS) \
	$(LIBBL2_CFLAGS) \
	$(LIBZ_CFLAGS) \
	$(NULL)
q_LDADD = \
	$(top_builddir)/libq/libq.a \
	$(top_builddir)/autotools/gnulib/libgnu.a \
	$(OPENMP_CFLAGS) \
	$(LIBBL2_LIBS) \
	$(LIBZ_LIBS) \
	$(GPGME_LIBS) \
	$(LIB_CRYPTO) \
	$(LIB_CLOCK_GETTIME) \
	$(LIB_EACCESS) \
	$(SENDFILE_LIBS) \
	$(NULL)

if QMANIFEST_ENABLED
q_SOURCES += qmanifest.c
q_CPPFLAGS += \
	$(GPGME_CFLAGS)
dist_man_MANS += man/qmanifest.1
APPLETS += qmanifest
endif


install-exec-hook:
	cd $(DESTDIR)$(bindir); \
	for applet in $(APPLETS) ; do \
		[ ! -e "$${applet}" ] && $(LN_S) q $${applet} ; \
	done

clean-local:
	rm -f $(APPLETS)

EXTRA_DIST = \
	autotools/m4/gnulib-cache.m4 \
	applets.h \
	tests \
	$(NULL)