2 # Standard e2fsprogs prologue....
6 top_srcdir = @top_srcdir@
17 RESIZE_OBJS= inodemap.o resize2fs.o main.o
19 SRCS= $(srcdir)/inodemap.c \
20 $(srcdir)/resize2fs.c \
23 LIBS= $(LIBEXT2FS) $(LIBE2P) $(LIBCOM_ERR) $(LIBUUID)
24 DEPLIBS= $(LIBEXT2FS) $(LIBE2P) $(LIBCOM_ERR) $(LIBUUID)
27 $(CC) -c $(ALL_CFLAGS) $< -o $@
29 all:: $(PROGS) $(MANPAGES)
31 resize2fs: $(RESIZE_OBJS) $(DEPLIBS)
32 $(CC) $(ALL_LDFLAGS) -o resize2fs $(RESIZE_OBJS) $(LIBS)
34 resize2fs.8: $(SUBSTITUTE) $(srcdir)/resize2fs.8.in
35 -$(CHMOD) +x $(SUBSTITUTE)
36 $(SUBSTITUTE) $(srcdir)/resize2fs.8.in resize2fs.8
39 $(top_srcdir)/mkinstalldirs $(DESTDIR)$(usbindir) \
40 $(DESTDIR)$(man8dir) $(DESTDIR)$(cat8dir)
42 install: $(PROGS) $(MANPAGES) installdirs
43 for i in $(PROGS); do \
44 $(INSTALL_PROGRAM) $$i $(DESTDIR)$(usbindir)/$$i; \
45 $(STRIP) $(DESTDIR)$(usbindir)/$$i; \
47 for i in $(MANPAGES); do \
48 $(INSTALL_DATA) $$i $(DESTDIR)$(man8dir)/$$i; \
52 for i in $(PROGS); do \
53 $(RM) -f $(usbindir)/$$i; \
55 for i in $(MANPAGES); do \
56 $(RM) -f $(man8dir)/$$i; \
60 $(RM) -f $(PROGS) $(MANPAGES) \#* *.s *.o *.a *~ core
64 $(RM) -f .depend Makefile
66 # +++ Dependency line eater +++
68 # Makefile dependencies follow. This must be the last section in
69 # the Makefile.in file