]> icculus.org git repositories - icculus/xz.git/blob - src/xz/Makefile.am
Fix @variables@ to $(variables) in Makefile.am files.
[icculus/xz.git] / src / xz / Makefile.am
1 ##
2 ## Author: Lasse Collin
3 ##
4 ## This file has been put into the public domain.
5 ## You can do whatever you want with this file.
6 ##
7
8 bin_PROGRAMS = xz
9
10 xz_SOURCES = \
11         args.c \
12         args.h \
13         hardware.c \
14         hardware.h \
15         io.c \
16         io.h \
17         main.c \
18         main.h \
19         message.c \
20         message.h \
21         options.c \
22         options.h \
23         private.h \
24         process.c \
25         process.h \
26         signals.c \
27         signals.h \
28         suffix.c \
29         suffix.h \
30         util.c \
31         util.h
32
33 xz_CPPFLAGS = \
34         -DLOCALEDIR=\"$(localedir)\" \
35         -I$(top_srcdir)/src/common \
36         -I$(top_srcdir)/src/liblzma/api \
37         -I$(top_builddir)/lib \
38         -I$(top_srcdir)/lib \
39         $(STATIC_CPPFLAGS)
40
41 xz_LDFLAGS = $(STATIC_LDFLAGS)
42 xz_LDADD = $(top_builddir)/src/liblzma/liblzma.la
43
44 if COND_GNULIB
45 xz_LDADD += $(top_builddir)/lib/libgnu.a
46 endif
47
48 # libgnu.a may need these libs, so this must be after libgnu.a.
49 xz_LDADD += $(LTLIBINTL)
50
51
52 ## Create symlinks for unxz and xzcat for convenicen. Create symlinks also
53 ## for lzma, unlzma, and lzcat for compatibility with LZMA Utils 4.32.x.
54 install-exec-hook:
55         cd $(DESTDIR)$(bindir) && \
56         rm -f unxz xzcat lzma unlzma lzcat && \
57         $(LN_S) xz unxz && \
58         $(LN_S) xz xzcat && \
59         $(LN_S) xz lzma && \
60         $(LN_S) xz unlzma && \
61         $(LN_S) xz lzcat
62
63 uninstall-hook:
64         cd $(DESTDIR)$(bindir) && \
65         rm -f unxz xzcat lzma unlzma lzcat