summaryrefslogtreecommitdiffstats
path: root/dselect/Makefile.am
blob: ebf8c7616a4d21b2cfdfd0955385b3a9cc88f044 (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
## Process this file with automake to produce Makefile.in

SUBDIRS = methods po

AM_CPPFLAGS = \
	-DLOCALEDIR=\"$(localedir)\" \
	-DADMINDIR=\"$(admindir)\" \
	-DLIBDIR=\"$(pkglibexecdir)\" \
	-DLOCALLIBDIR=\"/usr/local/lib/dpkg\" \
	-idirafter $(top_srcdir)/lib/compat \
	-iquote $(builddir) \
	-I$(top_builddir) \
	-I$(top_srcdir)/lib \
	# EOL
AM_CXXFLAGS = \
	-fno-rtti \
	-fno-exceptions \
	# EOL
if HAVE_LINKER_AS_NEEDED
AM_LDFLAGS = \
	-Wl,--as-needed \
	# EOL
endif


bin_PROGRAMS = dselect

dselect_SOURCES = \
	cxx-support.cc \
	dselect.h \
	dselect-curses.h \
	basecmds.cc \
	baselist.cc \
	basetop.cc \
	bindings.cc bindings.h \
	curkeys.cc \
	helpmsgs.cc helpmsgs.h \
	main.cc \
	methkeys.cc \
	methlist.cc \
	method.cc method.h \
	methparse.cc \
	pkgcmds.cc \
	pkgdepcon.cc \
	pkgdisplay.cc \
	pkginfo.cc \
	pkgkeys.cc \
	pkglist.cc pkglist.h \
	pkgsublist.cc \
	pkgtop.cc \
	# EOL

dselect_LDADD = \
	$(CURSES_LIBS) \
	../lib/dpkg/libdpkg.la \
	$(LIBINTL) \
	../lib/compat/libcompat.la \
	# EOL


EXTRA_DIST = keyoverride mkcurkeys.pl
CLEANFILES = curkeys.hpp curkeys.h

curkeys.$(OBJEXT): curkeys.h
curkeys.hpp: dselect-curses.h
	$(AM_V_GEN) echo '#include "dselect-curses.h"' | \
	  $(CPP) -dD $(CPPFLAGS) -I$(top_builddir) -I $(srcdir) - >$@
curkeys.h: $(srcdir)/keyoverride $(srcdir)/mkcurkeys.pl curkeys.hpp
	$(AM_V_GEN) $(PERL) $(srcdir)/mkcurkeys.pl $< curkeys.hpp >$@

install-data-local:
	$(MKDIR_P) $(DESTDIR)$(pkgconfdir)/dselect.cfg.d