test: Generate the pkg-old.deb from controlled parts
[dpkg.git] / dselect / Makefile.am
blobebf8c7616a4d21b2cfdfd0955385b3a9cc88f044
1 ## Process this file with automake to produce Makefile.in
3 SUBDIRS = methods po
5 AM_CPPFLAGS = \
6         -DLOCALEDIR=\"$(localedir)\" \
7         -DADMINDIR=\"$(admindir)\" \
8         -DLIBDIR=\"$(pkglibexecdir)\" \
9         -DLOCALLIBDIR=\"/usr/local/lib/dpkg\" \
10         -idirafter $(top_srcdir)/lib/compat \
11         -iquote $(builddir) \
12         -I$(top_builddir) \
13         -I$(top_srcdir)/lib \
14         # EOL
15 AM_CXXFLAGS = \
16         -fno-rtti \
17         -fno-exceptions \
18         # EOL
19 if HAVE_LINKER_AS_NEEDED
20 AM_LDFLAGS = \
21         -Wl,--as-needed \
22         # EOL
23 endif
26 bin_PROGRAMS = dselect
28 dselect_SOURCES = \
29         cxx-support.cc \
30         dselect.h \
31         dselect-curses.h \
32         basecmds.cc \
33         baselist.cc \
34         basetop.cc \
35         bindings.cc bindings.h \
36         curkeys.cc \
37         helpmsgs.cc helpmsgs.h \
38         main.cc \
39         methkeys.cc \
40         methlist.cc \
41         method.cc method.h \
42         methparse.cc \
43         pkgcmds.cc \
44         pkgdepcon.cc \
45         pkgdisplay.cc \
46         pkginfo.cc \
47         pkgkeys.cc \
48         pkglist.cc pkglist.h \
49         pkgsublist.cc \
50         pkgtop.cc \
51         # EOL
53 dselect_LDADD = \
54         $(CURSES_LIBS) \
55         ../lib/dpkg/libdpkg.la \
56         $(LIBINTL) \
57         ../lib/compat/libcompat.la \
58         # EOL
61 EXTRA_DIST = keyoverride mkcurkeys.pl
62 CLEANFILES = curkeys.hpp curkeys.h
64 curkeys.$(OBJEXT): curkeys.h
65 curkeys.hpp: dselect-curses.h
66         $(AM_V_GEN) echo '#include "dselect-curses.h"' | \
67           $(CPP) -dD $(CPPFLAGS) -I$(top_builddir) -I $(srcdir) - >$@
68 curkeys.h: $(srcdir)/keyoverride $(srcdir)/mkcurkeys.pl curkeys.hpp
69         $(AM_V_GEN) $(PERL) $(srcdir)/mkcurkeys.pl $< curkeys.hpp >$@
71 install-data-local:
72         $(MKDIR_P) $(DESTDIR)$(pkgconfdir)/dselect.cfg.d