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 $@
61 ## Create symlinks for unxz and xzcat for convenience. Create symlinks also
62 ## for lzma, unlzma, and lzcat for compatibility with LZMA Utils 4.32.x.
63 xzlinks = unxz xzcat lzma unlzma lzcat
66 cd $(DESTDIR)$(bindir) && \
67 target=`echo xz | sed '$(transform)'`$(EXEEXT) && \
68 for name in $(xzlinks); do \
69 link=`echo $$name | sed '$(transform)'` && \
71 $(LN_S) $$target $$link; \
75 cd $(DESTDIR)$(bindir) && \
76 for name in $(xzlinks); do \
77 link=`echo $$name | sed '$(transform)'` && \