1 ## -----------------------------------------------------------------------
3 ## Copyright 2001 H. Peter Anvin - All Rights Reserved
5 ## This program is free software; you can redistribute it and/or modify
6 ## it under the terms of the GNU General Public License as published by
7 ## the Free Software Foundation, Inc., 675 Mass Ave, Cambridge MA 02139,
8 ## USA; either version 2 of the License, or (at your option) any later
9 ## version; incorporated herein by reference.
11 ## -----------------------------------------------------------------------
14 ## Makefile for mkzftree
16 ## mkzftree mirrors a tree in a form suitable for "mkisofs -z".
23 MAN1PAGES = mkzftree.1
25 OBJS = mkzftree.o walk.o workers.o util.o hash.o iso9660.o copytime.o \
26 compress.o uncompress.o
30 spec: zisofs-tools.spec
33 rm -f *.o *.i *.s version.h $(PROGS)
36 rm -f MCONFIG config.status config.log config.h *~ \#*
37 rm -f core *.orig *.rej
46 $(CC) $(LDFLAGS) -o mkzftree $(OBJS) $(LIBS)
49 rm -f configure config.h.in zisofs-tools.spec
52 mkdir -p $(INSTALLROOT)$(bindir)
53 $(INSTALL_PROGRAM) $(PROGS) $(INSTALLROOT)$(bindir)
54 mkdir -p $(INSTALLROOT)$(mandir)/man1
55 $(INSTALL_DATA) $(MAN1PAGES) $(INSTALLROOT)$(mandir)/man1
59 MCONFIG: configure MCONFIG.in config.h.in
63 : Generated by side effect
65 config.h.in: configure.in
69 configure: configure.in aclocal.m4
71 rm -f MCONFIG config.cache config.log config.status config.h
76 VERSION = $(shell cat version)
79 echo "#define ZISOFS_TOOLS_VERSION \"$(VERSION)\"" > version.h
81 zisofs-tools.spec: zisofs-tools.spec.in version
82 sed -e 's/@@VERSION@@/$(VERSION)/g' < zisofs-tools.spec.in > $@
87 mkzftree.o: mkzftree.c mkzftree.h config.h version.h
88 workers.o: workers.c mkzftree.h config.h
89 compress.o: compress.c mkzftree.h config.h iso9660.h
90 copytime.o: copytime.c mkzftree.h config.h
91 hash.o: hash.c mkzftree.h config.h
92 iso9660.o: iso9660.c iso9660.h
93 uncompress.o: uncompress.c mkzftree.h config.h iso9660.h
94 util.o: util.c mkzftree.h config.h
95 walk.o: walk.c mkzftree.h config.h
96 workers.o: workers.c mkzftree.h config.h