summaryrefslogtreecommitdiffstats
path: root/Makefile.in
diff options
context:
space:
mode:
authorDaniel Baumann <mail@daniel-baumann.ch>2015-11-07 07:22:08 +0000
committerDaniel Baumann <mail@daniel-baumann.ch>2015-11-07 07:22:08 +0000
commitce537b6151b2105c25d979bf40f445051754b798 (patch)
treebb514ec997e349d51d1565d98e79297407c1339a /Makefile.in
parentInitial commit. (diff)
downloadlzip-ce537b6151b2105c25d979bf40f445051754b798.tar.xz
lzip-ce537b6151b2105c25d979bf40f445051754b798.zip
Adding upstream version 1.6~pre1.upstream/1.6_pre1
Signed-off-by: Daniel Baumann <mail@daniel-baumann.ch>
Diffstat (limited to '')
-rw-r--r--Makefile.in125
1 files changed, 125 insertions, 0 deletions
diff --git a/Makefile.in b/Makefile.in
new file mode 100644
index 0000000..644f141
--- /dev/null
+++ b/Makefile.in
@@ -0,0 +1,125 @@
+
+DISTNAME = $(progname)-$(progversion)
+INSTALL = install
+INSTALL_PROGRAM = $(INSTALL) -p -m 755
+INSTALL_SCRIPT = $(INSTALL) -p -m 755
+INSTALL_DATA = $(INSTALL) -p -m 644
+SHELL = /bin/sh
+
+objs = arg_parser.o decoder.o encoder.o main.o
+
+
+.PHONY : all doc check install install-info install-man install-extra \
+ uninstall uninstall-info uninstall-man uninstall-extra \
+ install-strip dist clean distclean
+
+all : $(progname) lziprecover
+
+$(progname) : $(objs)
+ $(CXX) $(LDFLAGS) -o $(progname) $(objs)
+
+profiled_$(progname) : $(objs)
+ $(CXX) $(LDFLAGS) -pg -o profiled_$(progname) $(objs)
+
+lziprecover : arg_parser.o lziprecover.o
+ $(CXX) $(LDFLAGS) -o lziprecover arg_parser.o lziprecover.o
+
+main.o : main.cc
+ $(CXX) $(CPPFLAGS) $(CXXFLAGS) -DPROGVERSION=\"$(progversion)\" -c -o $@ $<
+
+lziprecover.o : lziprecover.cc
+ $(CXX) $(CPPFLAGS) $(CXXFLAGS) -DPROGVERSION=\"$(progversion)\" -c -o $@ $<
+
+%.o : %.cc
+ $(CXX) $(CPPFLAGS) $(CXXFLAGS) -c -o $@ $<
+
+$(objs) : Makefile
+arg_parser.o : arg_parser.h
+decoder.o : lzip.h decoder.h
+encoder.o : lzip.h encoder.h
+main.o : arg_parser.h lzip.h decoder.h encoder.h
+lziprecover.o : arg_parser.h lzip.h Makefile
+
+doc : info $(VPATH)/doc/$(progname).1
+
+info : $(VPATH)/doc/$(progname).info
+
+$(VPATH)/doc/$(progname).info : $(VPATH)/doc/$(progname).texinfo
+ cd $(VPATH)/doc && makeinfo $(progname).texinfo
+
+$(VPATH)/doc/$(progname).1 : $(progname)
+ help2man -o $(VPATH)/doc/$(progname).1 ./$(progname)
+
+Makefile : $(VPATH)/configure $(VPATH)/Makefile.in
+ ./config.status
+
+check : all $(VPATH)/testsuite/check.sh
+ @$(VPATH)/testsuite/check.sh $(VPATH)/testsuite
+
+install : all install-info install-man install-extra
+ if test ! -d $(DESTDIR)$(bindir) ; then $(INSTALL) -d $(DESTDIR)$(bindir) ; fi
+ $(INSTALL_PROGRAM) ./$(progname) $(DESTDIR)$(bindir)/$(progname)
+
+install-info :
+ if test ! -d $(DESTDIR)$(infodir) ; then $(INSTALL) -d $(DESTDIR)$(infodir) ; fi
+ $(INSTALL_DATA) $(VPATH)/doc/$(progname).info $(DESTDIR)$(infodir)/$(progname).info
+ -install-info --info-dir=$(DESTDIR)$(infodir) $(DESTDIR)$(infodir)/$(progname).info
+
+install-man :
+ if test ! -d $(DESTDIR)$(mandir)/man1 ; then $(INSTALL) -d $(DESTDIR)$(mandir)/man1 ; fi
+ $(INSTALL_DATA) $(VPATH)/doc/$(progname).1 $(DESTDIR)$(mandir)/man1/$(progname).1
+
+install-extra : lziprecover
+ if test ! -d $(DESTDIR)$(bindir) ; then $(INSTALL) -d $(DESTDIR)$(bindir) ; fi
+ $(INSTALL_SCRIPT) $(VPATH)/lzdiff $(DESTDIR)$(bindir)/lzdiff
+ $(INSTALL_SCRIPT) $(VPATH)/lzgrep $(DESTDIR)$(bindir)/lzgrep
+ $(INSTALL_PROGRAM) ./lziprecover $(DESTDIR)$(bindir)/lziprecover
+
+install-strip : all
+ $(MAKE) INSTALL_PROGRAM='$(INSTALL_PROGRAM) -s' install
+
+uninstall : uninstall-info uninstall-man uninstall-extra
+ -rm -f $(DESTDIR)$(bindir)/$(progname)
+
+uninstall-info :
+ -install-info --info-dir=$(DESTDIR)$(infodir) --remove $(DESTDIR)$(infodir)/$(progname).info
+ -rm -f $(DESTDIR)$(infodir)/$(progname).info
+
+uninstall-man :
+ -rm -f $(DESTDIR)$(mandir)/man1/$(progname).1
+
+uninstall-extra :
+ -rm -f $(DESTDIR)$(bindir)/lzdiff
+ -rm -f $(DESTDIR)$(bindir)/lzgrep
+ -rm -f $(DESTDIR)$(bindir)/lziprecover
+
+dist :
+ ln -sf $(VPATH) $(DISTNAME)
+ tar -cvf $(DISTNAME).tar \
+ $(DISTNAME)/AUTHORS \
+ $(DISTNAME)/COPYING \
+ $(DISTNAME)/ChangeLog \
+ $(DISTNAME)/INSTALL \
+ $(DISTNAME)/Makefile.in \
+ $(DISTNAME)/NEWS \
+ $(DISTNAME)/README \
+ $(DISTNAME)/configure \
+ $(DISTNAME)/doc/$(progname).1 \
+ $(DISTNAME)/doc/$(progname).info \
+ $(DISTNAME)/doc/$(progname).texinfo \
+ $(DISTNAME)/lzdiff \
+ $(DISTNAME)/lzgrep \
+ $(DISTNAME)/testsuite/COPYING.lz \
+ $(DISTNAME)/testsuite/check.sh \
+ $(DISTNAME)/testsuite/unzcrash.cc \
+ $(DISTNAME)/*.h \
+ $(DISTNAME)/*.cc
+ rm -f $(DISTNAME)
+ lzip -v -9 $(DISTNAME).tar
+
+clean :
+ -rm -f $(progname) profiled_$(progname) $(objs)
+ -rm -f lziprecover lziprecover.o
+
+distclean : clean
+ -rm -f Makefile config.status *.tar *.tar.lz