]> git.ipfire.org Git - thirdparty/util-linux.git/blob - text-utils/Makemodule.am
wipefs: add --lock and LOCK_BLOCK_DEVICE
[thirdparty/util-linux.git] / text-utils / Makemodule.am
1 if BUILD_COL
2 usrbin_exec_PROGRAMS += col
3 dist_man_MANS += text-utils/col.1
4 col_SOURCES = text-utils/col.c
5 col_LDADD = $(LDADD) libcommon.la
6 endif
7
8 if BUILD_COLCRT
9 usrbin_exec_PROGRAMS += colcrt
10 dist_man_MANS += text-utils/colcrt.1
11 colcrt_SOURCES = text-utils/colcrt.c
12 endif
13
14 if BUILD_COLRM
15 usrbin_exec_PROGRAMS += colrm
16 dist_man_MANS += text-utils/colrm.1
17 colrm_SOURCES = text-utils/colrm.c
18 colrm_LDADD = $(LDADD) libcommon.la
19 endif
20
21 if BUILD_COLUMN
22 usrbin_exec_PROGRAMS += column
23 dist_man_MANS += text-utils/column.1
24 column_SOURCES = text-utils/column.c
25 column_LDADD = $(LDADD) libcommon.la libsmartcols.la
26 column_CFLAGS = $(AM_CFLAGS) -I$(ul_libsmartcols_incdir)
27 endif
28
29 if BUILD_HEXDUMP
30 usrbin_exec_PROGRAMS += hexdump
31 dist_man_MANS += text-utils/hexdump.1
32 hexdump_SOURCES = \
33 text-utils/hexdump-conv.c \
34 text-utils/hexdump-display.c \
35 text-utils/hexdump.c \
36 text-utils/hexdump.h \
37 text-utils/hexdump-parse.c
38 hexdump_LDADD = $(LDADD) libcommon.la libtcolors.la
39 endif
40
41 if BUILD_REV
42 usrbin_exec_PROGRAMS += rev
43 dist_man_MANS += text-utils/rev.1
44 rev_SOURCES = text-utils/rev.c
45 endif
46
47 if BUILD_LINE
48 usrbin_exec_PROGRAMS += line
49 line_SOURCES = text-utils/line.c
50 dist_man_MANS += text-utils/line.1
51 endif
52
53 if BUILD_PG
54 usrbin_exec_PROGRAMS += pg
55 dist_man_MANS += text-utils/pg.1
56 pg_SOURCES = text-utils/pg.c
57 pg_CFLAGS = $(AM_CFLAGS) $(BSD_WARN_CFLAGS) $(NCURSES_CFLAGS) $(TINFO_CFLAGS)
58 pg_LDADD = $(LDADD) libcommon.la $(NCURSES_LIBS) $(TINFO_LIBS)
59 endif # BUILD_PG
60
61
62 if BUILD_UL
63 usrbin_exec_PROGRAMS += ul
64 dist_man_MANS += text-utils/ul.1
65 ul_SOURCES = text-utils/ul.c
66 ul_CFLAGS = $(AM_CFLAGS)
67 ul_LDADD = $(LDADD)
68 if HAVE_TINFO
69 ul_LDADD += $(TINFO_LIBS)
70 ul_LDADD += $(TINFO_CFLAGS)
71 else
72 ul_CFLAGS += $(NCURSES_CFLAGS)
73 ul_LDADD += $(NCURSES_LIBS)
74 endif
75 endif # BUILD_UL
76
77
78 if BUILD_MORE
79 bin_PROGRAMS += more
80 dist_man_MANS += text-utils/more.1
81 more_SOURCES = text-utils/more.c
82 more_CFLAGS = $(AM_CFLAGS) $(BSD_WARN_CFLAGS)
83 more_LDADD = $(LDADD) $(MAGIC_LIBS) libcommon.la
84 if HAVE_TINFO
85 more_LDADD += $(TINFO_LIBS)
86 more_LDADD += $(TINFO_CFLAGS)
87 else
88 more_CFLAGS += $(NCURSES_CFLAGS)
89 more_LDADD += $(NCURSES_LIBS)
90 endif
91
92 check_PROGRAMS += test_more
93 test_more_SOURCES = $(more_SOURCES)
94 test_more_CFLAGS = -DTEST_PROGRAM $(more_CFLAGS)
95 test_more_LDADD = $(more_LDADD)
96
97 endif # BUILD_MORE
98