2 ## Author: Lasse Collin
4 ## This file has been put into the public domain.
5 ## You can do whatever you want with this file.
34 xz_SOURCES += xz_w32res.rc
38 -DLOCALEDIR=\"$(localedir)\" \
39 -I$(top_srcdir)/src/common \
40 -I$(top_srcdir)/src/liblzma/api \
41 -I$(top_builddir)/lib \
44 xz_LDFLAGS = $(STATIC_LDFLAGS)
45 xz_LDADD = $(top_builddir)/src/liblzma/liblzma.la
48 xz_LDADD += $(top_builddir)/lib/libgnu.a
51 # libgnu.a may need these libs, so this must be after libgnu.a.
52 xz_LDADD += $(LTLIBINTL)
55 # Windows resource compiler support
57 $(RC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \
58 $(xz_CPPFLAGS) $(CPPFLAGS) $(RCFLAGS) -i $< -o $@
64 ## Create symlinks for unxz and xzcat for convenience. Create symlinks also
65 ## for lzma, unlzma, and lzcat for compatibility with LZMA Utils 4.32.x.
66 xzlinks = unxz xzcat lzma unlzma lzcat
69 cd $(DESTDIR)$(bindir) && \
70 target=`echo xz | sed '$(transform)'`$(EXEEXT) && \
71 for name in $(xzlinks); do \
72 link=`echo $$name | sed '$(transform)'`$(LN_EXEEXT) && \
74 $(LN_S) $$target $$link; \
78 cd $(DESTDIR)$(mandir)/man1 && \
79 target=`echo xz | sed '$(transform)'` && \
80 for name in $(xzlinks); do \
81 link=`echo $$name | sed '$(transform)'` && \
83 $(LN_S) $$target.1 $$link.1; \
87 cd $(DESTDIR)$(bindir) && \
88 for name in $(xzlinks); do \
89 link=`echo $$name | sed '$(transform)'`$(LN_EXEEXT) && \
92 cd $(DESTDIR)$(mandir)/man1 && \
93 for name in $(xzlinks); do \
94 link=`echo $$name | sed '$(transform)'` && \