]> icculus.org git repositories - icculus/xz.git/blob - src/xz/Makefile.am
Put the interesting parts of XZ Utils into the public domain.
[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 = \
43         @top_builddir@/src/liblzma/liblzma.la \
44         @LTLIBINTL@
45
46 if COND_GNULIB
47 xz_LDADD += @top_builddir@/lib/libgnu.a
48 endif
49
50
51 ## Create symlinks for unxz and xzcat for convenicen. Create symlinks also
52 ## for lzma, unlzma, and lzcat for compatibility with LZMA Utils 4.32.x.
53 install-exec-hook:
54         cd $(DESTDIR)$(bindir) && \
55         rm -f unxz xzcat lzma unlzma lzcat && \
56         $(LN_S) xz unxz && \
57         $(LN_S) xz xzcat && \
58         $(LN_S) xz lzma && \
59         $(LN_S) xz unlzma && \
60         $(LN_S) xz lzcat
61
62 uninstall-hook:
63         cd $(DESTDIR)$(bindir) && \
64         rm -f unxz xzcat lzma unlzma lzcat