Whamcloud - gitweb
d5991f815dc0707f37c95ce218873f1928136cbe
[tools/e2fsprogs.git] / resize / Makefile.in
1 #
2 # Standard e2fsprogs prologue....
3 #
4
5 srcdir = @srcdir@
6 top_srcdir = @top_srcdir@
7 VPATH = @srcdir@
8 top_builddir = ..
9 my_dir = resize
10 INSTALL = @INSTALL@
11
12 @MCONFIG@
13
14 PROGS=          resize2fs
15 MANPAGES=       resize2fs.8
16
17 RESIZE_OBJS= inodemap.o resize2fs.o main.o
18
19 SRCS= $(srcdir)/inodemap.c \
20         $(srcdir)/resize2fs.c \
21         $(srcdir)/main.c 
22
23 LIBS= $(LIBEXT2FS) $(LIBE2P) $(LIBCOM_ERR)  $(LIBUUID)
24 DEPLIBS= $(LIBEXT2FS) $(LIBE2P) $(LIBCOM_ERR)  $(LIBUUID)
25
26 .c.o:
27         $(CC) -c $(ALL_CFLAGS) $< -o $@
28
29 all:: $(PROGS) $(MANPAGES)
30
31 resize2fs: $(RESIZE_OBJS) $(DEPLIBS)
32         $(CC) $(ALL_LDFLAGS) -o resize2fs $(RESIZE_OBJS) $(LIBS)
33
34 resize2fs.8: $(SUBSTITUTE) $(srcdir)/resize2fs.8.in
35         -$(CHMOD) +x $(SUBSTITUTE)
36         $(SUBSTITUTE) $(srcdir)/resize2fs.8.in resize2fs.8
37
38 installdirs:
39         $(top_srcdir)/mkinstalldirs $(DESTDIR)$(usbindir) \
40                 $(DESTDIR)$(man8dir) $(DESTDIR)$(cat8dir)
41
42 install: $(PROGS) $(MANPAGES) installdirs
43         for i in $(PROGS); do \
44                 $(INSTALL_PROGRAM) $$i $(DESTDIR)$(usbindir)/$$i; \
45                 $(STRIP) $(DESTDIR)$(usbindir)/$$i; \
46         done
47         for i in $(MANPAGES); do \
48                 $(INSTALL_DATA) $$i $(DESTDIR)$(man8dir)/$$i; \
49         done
50
51 uninstall:
52         for i in $(PROGS); do \
53                 $(RM) -f $(usbindir)/$$i; \
54         done
55         for i in $(MANPAGES); do \
56                 $(RM) -f $(man8dir)/$$i; \
57         done
58
59 clean:
60         $(RM) -f $(PROGS) $(MANPAGES) \#* *.s *.o *.a *~ core
61
62 mostlyclean: clean
63 distclean: clean
64         $(RM) -f .depend Makefile
65
66 # +++ Dependency line eater +++
67
68 # Makefile dependencies follow.  This must be the last section in
69 # the Makefile.in file
70 #