GUI: Fix Tomato RAF theme for all builds. Compilation typo.
[tomato.git] / release / src-rt-6.x.4708 / tools / misc / xz / src / xz / Makefile.am
blob10ceee75a65b1ccc06e8ef38abb20efc9e52c062
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 ##
8 bin_PROGRAMS = xz
10 xz_SOURCES = \
11         args.c \
12         args.h \
13         coder.c \
14         coder.h \
15         file_io.c \
16         file_io.h \
17         hardware.c \
18         hardware.h \
19         list.c \
20         list.h \
21         main.c \
22         main.h \
23         message.c \
24         message.h \
25         options.c \
26         options.h \
27         private.h \
28         signals.c \
29         signals.h \
30         suffix.c \
31         suffix.h \
32         util.c \
33         util.h \
34         $(top_srcdir)/src/common/tuklib_open_stdxxx.c \
35         $(top_srcdir)/src/common/tuklib_progname.c \
36         $(top_srcdir)/src/common/tuklib_exit.c \
37         $(top_srcdir)/src/common/tuklib_cpucores.c \
38         $(top_srcdir)/src/common/tuklib_mbstr_width.c \
39         $(top_srcdir)/src/common/tuklib_mbstr_fw.c
41 if COND_W32
42 xz_SOURCES += xz_w32res.rc
43 endif
45 xz_CPPFLAGS = \
46         -DLOCALEDIR=\"$(localedir)\" \
47         -I$(top_srcdir)/src/common \
48         -I$(top_srcdir)/src/liblzma/api \
49         -I$(top_builddir)/lib
51 xz_LDADD = $(top_builddir)/src/liblzma/liblzma.la
53 if COND_GNULIB
54 xz_LDADD += $(top_builddir)/lib/libgnu.a
55 endif
57 # libgnu.a may need these libs, so this must be after libgnu.a.
58 xz_LDADD += $(LTLIBINTL)
61 # Windows resource compiler support
62 .rc.o:
63         $(RC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \
64                 $(xz_CPPFLAGS) $(CPPFLAGS) $(RCFLAGS) -i $< -o $@
67 dist_man_MANS = xz.1
70 ## Create symlinks for unxz and xzcat for convenience. Create symlinks also
71 ## for lzma, unlzma, and lzcat for compatibility with LZMA Utils 4.32.x.
72 xzlinks = unxz xzcat
74 if COND_LZMALINKS
75 xzlinks += lzma unlzma lzcat
76 endif
78 install-exec-hook:
79         cd $(DESTDIR)$(bindir) && \
80         target=`echo xz | sed '$(transform)'`$(EXEEXT) && \
81         for name in $(xzlinks); do \
82                 link=`echo $$name | sed '$(transform)'`$(LN_EXEEXT) && \
83                 rm -f $$link && \
84                 $(LN_S) $$target $$link; \
85         done
87 install-data-hook:
88         cd $(DESTDIR)$(mandir)/man1 && \
89         target=`echo xz | sed '$(transform)'` && \
90         for name in $(xzlinks); do \
91                 link=`echo $$name | sed '$(transform)'` && \
92                 rm -f $$link.1 && \
93                 $(LN_S) $$target.1 $$link.1; \
94         done
96 uninstall-hook:
97         cd $(DESTDIR)$(bindir) && \
98         for name in $(xzlinks); do \
99                 link=`echo $$name | sed '$(transform)'`$(LN_EXEEXT) && \
100                 rm -f $$link; \
101         done
102         cd $(DESTDIR)$(mandir)/man1 && \
103         for name in $(xzlinks); do \
104                 link=`echo $$name | sed '$(transform)'` && \
105                 rm -f $$link.1; \
106         done