awful debugging hacking
[dpkg] / dselect / Makefile.am
CommitLineData
1479465f
GJ
1## Process this file with automake to produce Makefile.in
2
3SUBDIRS = methods po
4
5localedir = $(datadir)/locale
6pkgconfdir = $(sysconfdir)/@PACKAGE@
7
8AM_CPPFLAGS = \
9 -DLOCALEDIR=\"$(localedir)\" \
10 -DADMINDIR=\"$(admindir)\" \
11 -DLIBDIR=\"$(pkglibexecdir)\" \
12 -DLOCALLIBDIR=\"/usr/local/lib/dpkg\" \
13 -idirafter $(top_srcdir)/lib/compat \
14 -iquote $(builddir) \
15 -I$(top_builddir) \
16 -I$(top_srcdir)/lib
17AM_CXXFLAGS = \
18 -fno-rtti \
19 -fno-exceptions \
20 $(nil)
21if HAVE_LINKER_AS_NEEDED
22AM_LDFLAGS = \
23 -Wl,--as-needed
24endif
25
26
27bin_PROGRAMS = dselect
28
29dselect_SOURCES = \
30 cxx-support.cc \
31 dselect.h \
32 dselect-curses.h \
33 basecmds.cc \
34 baselist.cc \
35 basetop.cc \
36 bindings.cc bindings.h \
37 curkeys.cc \
38 helpmsgs.cc helpmsgs.h \
39 main.cc \
40 methkeys.cc \
41 methlist.cc \
42 method.cc method.h \
43 methparse.cc \
44 pkgcmds.cc \
45 pkgdepcon.cc \
46 pkgdisplay.cc \
47 pkginfo.cc \
48 pkgkeys.cc \
49 pkglist.cc pkglist.h \
50 pkgsublist.cc \
51 pkgtop.cc
52
53dselect_LDADD = \
54 $(CURSES_LIBS) \
55 ../lib/dpkg/libdpkg.la \
56 $(LIBINTL)
57
58
59EXTRA_DIST = keyoverride mkcurkeys.pl
60CLEANFILES = curkeys.h
61
62curkeys.$(OBJEXT): curkeys.h
63curkeys.h: $(srcdir)/keyoverride $(srcdir)/mkcurkeys.pl
64 $(AM_V_GEN) cursesfile=`echo '#include "dselect-curses.h"' | \
65 $(CPP) $(CPPFLAGS) -I$(top_builddir) -I $(srcdir) - | \
66 grep '[^-]curses\.h' | head -n 1 | \
67 sed -e 's/^[^"]*"//; s/".*$$//'`; \
68 if [ "$$cursesfile" = "" ]; then \
69 echo "can't find curses file"; exit 1; \
70 fi; \
71 $(PERL) $(srcdir)/mkcurkeys.pl $< $$cursesfile >$@
72
73install-data-local:
74 $(MKDIR_P) $(DESTDIR)$(pkgconfdir)/dselect.cfg.d