chiark / gitweb /
awful debugging hacking
[dpkg] / dselect / Makefile.am
1 ## Process this file with automake to produce Makefile.in
2
3 SUBDIRS = methods po
4
5 localedir = $(datadir)/locale
6 pkgconfdir = $(sysconfdir)/@PACKAGE@
7
8 AM_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
17 AM_CXXFLAGS = \
18         -fno-rtti \
19         -fno-exceptions \
20         $(nil)
21 if HAVE_LINKER_AS_NEEDED
22 AM_LDFLAGS = \
23         -Wl,--as-needed
24 endif
25
26
27 bin_PROGRAMS = dselect
28
29 dselect_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
53 dselect_LDADD = \
54         $(CURSES_LIBS) \
55         ../lib/dpkg/libdpkg.la \
56         $(LIBINTL)
57
58
59 EXTRA_DIST = keyoverride mkcurkeys.pl
60 CLEANFILES = curkeys.h
61
62 curkeys.$(OBJEXT): curkeys.h
63 curkeys.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
73 install-data-local:
74         $(MKDIR_P) $(DESTDIR)$(pkgconfdir)/dselect.cfg.d