]> git.ipfire.org Git - thirdparty/e2fsprogs.git/blob - Makefile.in
Use $(LDFLAGS) when generating shared libraries
[thirdparty/e2fsprogs.git] / Makefile.in
1 srcdir = @srcdir@
2 top_srcdir = @top_srcdir@
3 VPATH = @srcdir@
4 top_builddir = .
5 my_dir = .
6 INSTALL = @INSTALL@
7
8 @MCONFIG@
9
10 @RESIZER_CMT@RESIZE_DIR= resize
11 @DEBUGFS_CMT@DEBUGFS_DIR= debugfs
12
13 LIB_SUBDIRS=lib/et lib/ss lib/e2p lib/ext2fs lib/uuid lib/blkid intl
14 PROG_SUBDIRS=e2fsck $(DEBUGFS_DIR) misc $(RESIZE_DIR) tests/progs po
15 SUBDIRS=util $(LIB_SUBDIRS) $(PROG_SUBDIRS) tests
16
17 SUBS= lib/ext2fs/ext2_types.h lib/blkid/blkid_types.h lib/uuid/uuid_types.h
18
19 TAR=tar
20
21 all:: subs
22 $(MAKE) libs
23 $(MAKE) progs
24 $(MAKE) docs
25
26 subs:
27 @for i in $(SUBS) ; do if test -d `dirname $$i` ; then $(MAKE) $$i ; fi ; done
28
29 progs: subs all-progs-recursive
30 libs: subs all-libs-recursive
31
32 docs:
33 -@test -d doc && cd doc && $(MAKE) libext2fs.info
34
35 install-doc-libs:
36 -@test -d doc && cd doc && $(MAKE) install-doc-libs
37
38 uninstall-doc-libs:
39 -@test -d doc && cd doc && $(MAKE) uninstall-doc-libs
40
41 clean-doc:
42 -@test -d doc && cd doc && $(MAKE) clean
43
44 distclean-doc:
45 -test -d doc && cd doc && $(MAKE) distclean
46
47 install: subs all-libs-recursive install-progs-recursive \
48 install-shlibs-libs-recursive install-doc-libs
49 if test ! -d e2fsck && test ! -d debugfs && test ! -d misc && test ! -d ext2ed ; then $(MAKE) install-libs ; fi
50
51 install-strip: subs all-libs-recursive install-strip-progs-recursive \
52 install-shlibs-strip-libs-recursive install-doc-libs
53
54 uninstall: uninstall-progs-recursive uninstall-shlibs-libs-recursive uninstall-doc-libs
55
56 install-libs: install-libs-recursive
57
58 uninstall-libs: uninstall-libs-recursive
59
60 TAGS clean-recursive distclean-recursive depend-recursive check-recursive \
61 mostlyclean-recursive realclean-recursive:
62 @for subdir in $(SUBDIRS); do \
63 if test -d $$subdir ; then \
64 target=`echo $@|$(SED) 's/-recursive//'`; \
65 echo making $$target in $$subdir; \
66 (cd $$subdir && $(MAKE) $$target) || exit 1; \
67 fi ; \
68 done
69
70 all-progs-recursive install-progs-recursive install-strip-progs-recursive \
71 uninstall-progs-recursive:
72 @for subdir in $(PROG_SUBDIRS); do \
73 if test -d $$subdir ; then \
74 target=`echo $@|$(SED) 's/-progs-recursive//'`; \
75 echo making $$target in $$subdir; \
76 (cd $$subdir && $(MAKE) $$target) || exit 1; \
77 fi ; \
78 done
79
80 all-libs-recursive install-libs-recursive install-strip-libs-recursive \
81 uninstall-libs-recursive install-shlibs-libs-recursive \
82 install-shlibs-strip-libs-recursive uninstall-shlibs-libs-recursive:
83 @for subdir in $(LIB_SUBDIRS); do \
84 if test -d $$subdir ; then \
85 target=`echo $@|$(SED) 's/-libs-recursive//'`; \
86 echo making $$target in $$subdir; \
87 (cd $$subdir && $(MAKE) $$target) || exit 1; \
88 fi ; \
89 done
90
91 mostlyclean: mostlyclean-recursive mostlyclean-local
92
93 clean: clean-recursive clean-local clean-doc
94 $(RM) -f $(SUBS)
95
96 distclean: distclean-doc distclean-recursive distclean-local
97 $(RM) -rf autom4te.cache e2fsprogs.spec ext2ed/Makefile po/stamp-po
98
99 realclean: realclean-recursive realclean-local
100
101 depend:: depend-recursive
102
103 lib/ext2fs/ext2_types.h: $(DEP_SUBSTITUTE) $(srcdir)/lib/ext2fs/ext2_types.h.in
104 @echo " SUBST $@"
105 @$(SUBSTITUTE) $(srcdir)/lib/ext2fs/ext2_types.h.in \
106 > lib/ext2fs/ext2_types.h
107
108 lib/blkid/blkid_types.h: $(DEP_SUBSTITUTE) $(srcdir)/lib/blkid/blkid_types.h.in
109 @echo " SUBST $@"
110 @$(SUBSTITUTE) $(srcdir)/lib/blkid/blkid_types.h.in \
111 > lib/blkid/blkid_types.h
112
113 lib/uuid/uuid_types.h: $(DEP_SUBSTITUTE) $(srcdir)/lib/uuid/uuid_types.h.in
114 @echo " SUBST $@"
115 @$(SUBSTITUTE) $(srcdir)/lib/uuid/uuid_types.h.in \
116 > lib/uuid/uuid_types.h
117
118 mostlyclean-local:
119 $(RM) -f \#* *~ *.orig core MAKELOG
120
121 clean-local: mostlyclean-local
122
123 distclean-local: clean-local
124 $(RM) -f $(SUBS) $(SUBST_CONF) \
125 config.status config.log config.cache MCONFIG Makefile \
126 $(srcdir)/TAGS $(srcdir)/Makefile.in.old
127
128 realclean-local: distclean-local
129 $(RM) -f configure
130
131 check:: subs check-recursive
132