OLD | NEW |
(Empty) | |
| 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 # Windows resource compiler support. It's fine to use xz_CPPFLAGS |
| 9 # also for lzmadec. |
| 10 .rc.o: |
| 11 $(RC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \ |
| 12 $(xzdec_CPPFLAGS) $(CPPFLAGS) $(RCFLAGS) -i $< -o $@ |
| 13 |
| 14 |
| 15 bin_PROGRAMS = xzdec lzmadec |
| 16 |
| 17 xzdec_SOURCES = \ |
| 18 xzdec.c \ |
| 19 $(top_srcdir)/src/common/tuklib_progname.c \ |
| 20 $(top_srcdir)/src/common/tuklib_exit.c |
| 21 |
| 22 if COND_W32 |
| 23 xzdec_SOURCES += xzdec_w32res.rc |
| 24 endif |
| 25 |
| 26 xzdec_CPPFLAGS = \ |
| 27 -DTUKLIB_GETTEXT=0 \ |
| 28 -I$(top_srcdir)/src/common \ |
| 29 -I$(top_srcdir)/src/liblzma/api \ |
| 30 -I$(top_builddir)/lib \ |
| 31 $(STATIC_CPPFLAGS) |
| 32 xzdec_LDFLAGS = $(STATIC_LDFLAGS) |
| 33 xzdec_LDADD = $(top_builddir)/src/liblzma/liblzma.la |
| 34 |
| 35 if COND_GNULIB |
| 36 xzdec_LDADD += $(top_builddir)/lib/libgnu.a |
| 37 endif |
| 38 |
| 39 xzdec_LDADD += $(LTLIBINTL) |
| 40 |
| 41 |
| 42 lzmadec_SOURCES = \ |
| 43 xzdec.c \ |
| 44 $(top_srcdir)/src/common/tuklib_progname.c \ |
| 45 $(top_srcdir)/src/common/tuklib_exit.c |
| 46 |
| 47 if COND_W32 |
| 48 lzmadec_SOURCES += lzmadec_w32res.rc |
| 49 endif |
| 50 |
| 51 lzmadec_CPPFLAGS = $(xzdec_CPPFLAGS) -DLZMADEC |
| 52 lzmadec_LDFLAGS = $(xzdec_LDFLAGS) |
| 53 lzmadec_LDADD = $(xzdec_LDADD) |
| 54 |
| 55 |
| 56 dist_man_MANS = xzdec.1 |
| 57 |
| 58 install-data-hook: |
| 59 cd $(DESTDIR)$(mandir)/man1 && \ |
| 60 target=`echo xzdec | sed '$(transform)'` && \ |
| 61 link=`echo lzmadec | sed '$(transform)'` && \ |
| 62 rm -f $$link.1 && \ |
| 63 $(LN_S) $$target.1 $$link.1 |
| 64 |
| 65 uninstall-hook: |
| 66 cd $(DESTDIR)$(mandir)/man1 && \ |
| 67 link=`echo lzmadec | sed '$(transform)'` && \ |
| 68 rm -f $$link.1 |
OLD | NEW |