forked from maandree/util-linux
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakemodule.am
101 lines (81 loc) · 1.97 KB
/
Makemodule.am
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
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
usrbin_exec_PROGRAMS += \
col \
colcrt \
colrm \
column \
hexdump \
rev \
tailf
dist_man_MANS += \
text-utils/col.1 \
text-utils/colcrt.1 \
text-utils/colrm.1 \
text-utils/column.1 \
text-utils/hexdump.1 \
text-utils/rev.1 \
text-utils/tailf.1
col_SOURCES = text-utils/col.c
col_LDADD = $(LDADD) libcommon.la
colcrt_SOURCES = text-utils/colcrt.c
colrm_SOURCES = text-utils/colrm.c
colrm_LDADD = $(LDADD) libcommon.la
column_SOURCES = text-utils/column.c
column_LDADD = $(LDADD) libcommon.la
hexdump_SOURCES = \
text-utils/conv.c \
text-utils/display.c \
text-utils/hexdump.c \
text-utils/hexdump.h \
text-utils/hexsyntax.c \
text-utils/parse.c
hexdump_LDADD = $(LDADD) libcommon.la
rev_SOURCES = text-utils/rev.c
tailf_SOURCES = text-utils/tailf.c
tailf_LDADD = $(LDADD) libcommon.la
if BUILD_LINE
usrbin_exec_PROGRAMS += line
line_SOURCES = text-utils/line.c
dist_man_MANS += text-utils/line.1
endif
if BUILD_PG
usrbin_exec_PROGRAMS += pg
dist_man_MANS += text-utils/pg.1
pg_SOURCES = text-utils/pg.c
pg_CFLAGS = $(AM_CFLAGS) $(BSD_WARN_CFLAGS) $(NCURSES_CFLAGS) $(TINFO_CFLAGS)
pg_LDADD = $(LDADD) libcommon.la $(NCURSES_LIBS) $(TINFO_LIBS)
endif # BUILD_PG
if BUILD_UL
usrbin_exec_PROGRAMS += ul
dist_man_MANS += text-utils/ul.1
ul_SOURCES = text-utils/ul.c
ul_CFLAGS = $(AM_CFLAGS)
ul_LDADD = $(LDADD)
if HAVE_TINFO
ul_LDADD += $(TINFO_LIBS)
ul_LDADD += $(TINFO_CFLAGS)
else
ul_CFLAGS += $(NCURSES_CFLAGS)
ul_LDADD += $(NCURSES_LIBS)
endif
endif # BUILD_UL
if BUILD_MORE
bin_PROGRAMS += more
dist_man_MANS += text-utils/more.1
more_SOURCES = text-utils/more.c
more_CFLAGS = $(AM_CFLAGS) $(BSD_WARN_CFLAGS)
more_LDADD = $(LDADD)
if HAVE_TINFO
more_LDADD += $(TINFO_LIBS)
more_LDADD += $(TINFO_CFLAGS)
else
more_CFLAGS += $(NCURSES_CFLAGS)
more_LDADD += $(NCURSES_LIBS)
endif
if HAVE_TERMCAP
more_LDADD += -ltermcap
endif
check_PROGRAMS += test_more
test_more_SOURCES = $(more_SOURCES)
test_more_CFLAGS = -DTEST_PROGRAM
test_more_LDADD = $(more_LDADD)
endif # BUILD_MORE