aboutsummaryrefslogtreecommitdiff
path: root/src/lzmainfo/Makefile.am
blob: 4dc9a91c5d1c6a0b4bfacf463166aa395ff1f648 (plain) (blame)
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
## SPDX-License-Identifier: 0BSD
## Author: Lasse Collin

bin_PROGRAMS = lzmainfo

lzmainfo_SOURCES = \
	lzmainfo.c \
	../common/tuklib_progname.c \
	../common/tuklib_exit.c

if COND_W32
lzmainfo_SOURCES += lzmainfo_w32res.rc
endif

lzmainfo_CPPFLAGS = \
	-DLOCALEDIR=\"$(localedir)\" \
	-I$(top_srcdir)/src/common \
	-I$(top_srcdir)/src/liblzma/api \
	-I$(top_builddir)/lib

lzmainfo_LDADD = $(top_builddir)/src/liblzma/liblzma.la

if COND_GNULIB
lzmainfo_LDADD += $(top_builddir)/lib/libgnu.a
endif

lzmainfo_LDADD += $(LTLIBINTL)


dist_man_MANS = lzmainfo.1

# Windows resource compiler support
.rc.o:
	$(RC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \
		$(lzmainfo_CPPFLAGS) $(CPPFLAGS) $(RCFLAGS) -i $< -o $@