• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Makefile for e2fsprog's internal support
2#
3
4srcdir = @srcdir@
5top_srcdir = @top_srcdir@
6VPATH = @srcdir@
7top_builddir = ../..
8my_dir = lib/support
9INSTALL = @INSTALL@
10
11@MCONFIG@
12
13all::
14
15OBJS=		mkquota.o \
16		plausible.o \
17		profile.o \
18		parse_qtype.o \
19		profile_helpers.o \
20		prof_err.o \
21		quotaio.o \
22		quotaio_v2.o \
23		quotaio_tree.o \
24		dict.o
25
26SRCS=		$(srcdir)/argv_parse.c \
27		$(srcdir)/mkquota.c \
28		$(srcdir)/parse_qtype.c \
29		$(srcdir)/plausible.c \
30		$(srcdir)/profile.c \
31		$(srcdir)/profile_helpers.c \
32		prof_err.c \
33		$(srcdir)/quotaio.c \
34		$(srcdir)/quotaio_tree.c \
35		$(srcdir)/quotaio_v2.c \
36		$(srcdir)/dict.c
37
38LIBRARY= libsupport
39LIBDIR= support
40
41@MAKEFILE_LIBRARY@
42@MAKEFILE_PROFILE@
43
44COMPILE_ET=	_ET_DIR_OVERRIDE=$(srcdir)/../et ../et/compile_et
45
46.c.o:
47	$(E) "	CC $<"
48	$(Q) $(CC) $(ALL_CFLAGS) -c $< -o $@
49	$(Q) $(CHECK_CMD) $(ALL_CFLAGS) $<
50	$(Q) $(CPPCHECK_CMD) $(CPPFLAGS) $<
51@PROFILE_CMT@	$(Q) $(CC) $(ALL_CFLAGS) -g -pg -o profiled/$*.o -c $<
52
53installdirs::
54
55install:: all
56
57uninstall::
58
59prof_err.c prof_err.h: prof_err.et
60	$(E) "	COMPILE_ET prof_err.et"
61	$(Q) $(COMPILE_ET) $(srcdir)/prof_err.et
62
63test_profile: $(srcdir)/profile.c profile_helpers.o argv_parse.o \
64		prof_err.o profile.h $(DEPSTATIC_LIBCOM_ERR)
65	$(E) "	LD $@"
66	$(Q) $(CC) -o test_profile -DDEBUG_PROGRAM $(srcdir)/profile.c prof_err.o \
67		profile_helpers.o argv_parse.o $(STATIC_LIBCOM_ERR) \
68		$(ALL_CFLAGS)
69
70clean::
71	$(RM) -f \#* *.s *.o *.a *~ *.bak core profiled/* \
72		../libsupport.a ../libsupport_p.a $(SMANPAGES) \
73		prof_err.c prof_err.h test_profile
74
75#check:: tst_uuid
76#	LD_LIBRARY_PATH=$(LIB) DYLD_LIBRARY_PATH=$(LIB) ./tst_uuid
77
78mostlyclean:: clean
79distclean:: clean
80	$(RM) -f .depend Makefile \
81		$(srcdir)/TAGS $(srcdir)/Makefile.in.old
82
83#
84# Hack to parallel makes recognize dependencies correctly.
85#
86../../lib/libsupport.a: libsupport.a
87../../lib/libsupport.so: image
88../../lib/libsupport.dylib: image
89
90$(OBJS):
91
92# +++ Dependency line eater +++
93#
94# Makefile dependencies follow.  This must be the last section in
95# the Makefile.in file
96#
97argv_parse.o: $(srcdir)/argv_parse.c $(top_builddir)/lib/config.h \
98 $(top_builddir)/lib/dirpaths.h $(srcdir)/argv_parse.h
99mkquota.o: $(srcdir)/mkquota.c $(top_builddir)/lib/config.h \
100 $(top_builddir)/lib/dirpaths.h $(top_srcdir)/lib/ext2fs/ext2_fs.h \
101 $(top_builddir)/lib/ext2fs/ext2_types.h $(top_srcdir)/lib/ext2fs/ext2fs.h \
102 $(top_srcdir)/lib/ext2fs/ext3_extents.h $(top_srcdir)/lib/et/com_err.h \
103 $(top_srcdir)/lib/ext2fs/ext2_io.h $(top_builddir)/lib/ext2fs/ext2_err.h \
104 $(top_srcdir)/lib/ext2fs/ext2_ext_attr.h $(top_srcdir)/lib/ext2fs/bitops.h \
105 $(top_srcdir)/lib/e2p/e2p.h $(srcdir)/quotaio.h $(srcdir)/dqblk_v2.h \
106 $(srcdir)/quotaio_tree.h $(srcdir)/quotaio_v2.h $(srcdir)/common.h \
107 $(srcdir)/dict.h
108parse_qtype.o: $(srcdir)/parse_qtype.c $(top_builddir)/lib/config.h \
109 $(top_builddir)/lib/dirpaths.h $(srcdir)/quotaio.h \
110 $(top_srcdir)/lib/ext2fs/ext2_fs.h $(top_builddir)/lib/ext2fs/ext2_types.h \
111 $(top_srcdir)/lib/ext2fs/ext2fs.h $(top_srcdir)/lib/ext2fs/ext3_extents.h \
112 $(top_srcdir)/lib/et/com_err.h $(top_srcdir)/lib/ext2fs/ext2_io.h \
113 $(top_builddir)/lib/ext2fs/ext2_err.h \
114 $(top_srcdir)/lib/ext2fs/ext2_ext_attr.h $(top_srcdir)/lib/ext2fs/bitops.h \
115 $(srcdir)/dqblk_v2.h $(srcdir)/quotaio_tree.h
116plausible.o: $(srcdir)/plausible.c $(top_builddir)/lib/config.h \
117 $(top_builddir)/lib/dirpaths.h $(srcdir)/plausible.h \
118 $(top_srcdir)/lib/ext2fs/ext2fs.h $(top_builddir)/lib/ext2fs/ext2_types.h \
119 $(top_srcdir)/lib/ext2fs/ext2_fs.h $(top_srcdir)/lib/ext2fs/ext3_extents.h \
120 $(top_srcdir)/lib/et/com_err.h $(top_srcdir)/lib/ext2fs/ext2_io.h \
121 $(top_builddir)/lib/ext2fs/ext2_err.h \
122 $(top_srcdir)/lib/ext2fs/ext2_ext_attr.h $(top_srcdir)/lib/ext2fs/bitops.h \
123 $(srcdir)/nls-enable.h
124profile.o: $(srcdir)/profile.c $(top_builddir)/lib/config.h \
125 $(top_builddir)/lib/dirpaths.h $(top_srcdir)/lib/et/com_err.h \
126 $(srcdir)/profile.h prof_err.h
127profile_helpers.o: $(srcdir)/profile_helpers.c $(top_builddir)/lib/config.h \
128 $(top_builddir)/lib/dirpaths.h $(top_srcdir)/lib/et/com_err.h \
129 $(srcdir)/profile.h $(srcdir)/profile_helpers.h prof_err.h
130prof_err.o: prof_err.c
131quotaio.o: $(srcdir)/quotaio.c $(top_builddir)/lib/config.h \
132 $(top_builddir)/lib/dirpaths.h $(srcdir)/common.h \
133 $(top_builddir)/lib/ext2fs/ext2_types.h $(srcdir)/quotaio.h \
134 $(top_srcdir)/lib/ext2fs/ext2_fs.h $(top_srcdir)/lib/ext2fs/ext2fs.h \
135 $(top_srcdir)/lib/ext2fs/ext3_extents.h $(top_srcdir)/lib/et/com_err.h \
136 $(top_srcdir)/lib/ext2fs/ext2_io.h $(top_builddir)/lib/ext2fs/ext2_err.h \
137 $(top_srcdir)/lib/ext2fs/ext2_ext_attr.h $(top_srcdir)/lib/ext2fs/bitops.h \
138 $(srcdir)/dqblk_v2.h $(srcdir)/quotaio_tree.h
139quotaio_tree.o: $(srcdir)/quotaio_tree.c $(top_builddir)/lib/config.h \
140 $(top_builddir)/lib/dirpaths.h $(srcdir)/common.h \
141 $(top_builddir)/lib/ext2fs/ext2_types.h $(srcdir)/quotaio_tree.h \
142 $(srcdir)/quotaio.h $(top_srcdir)/lib/ext2fs/ext2_fs.h \
143 $(top_srcdir)/lib/ext2fs/ext2fs.h $(top_srcdir)/lib/ext2fs/ext3_extents.h \
144 $(top_srcdir)/lib/et/com_err.h $(top_srcdir)/lib/ext2fs/ext2_io.h \
145 $(top_builddir)/lib/ext2fs/ext2_err.h \
146 $(top_srcdir)/lib/ext2fs/ext2_ext_attr.h $(top_srcdir)/lib/ext2fs/bitops.h \
147 $(srcdir)/dqblk_v2.h
148quotaio_v2.o: $(srcdir)/quotaio_v2.c $(top_builddir)/lib/config.h \
149 $(top_builddir)/lib/dirpaths.h $(srcdir)/common.h \
150 $(top_builddir)/lib/ext2fs/ext2_types.h $(srcdir)/quotaio_v2.h \
151 $(srcdir)/quotaio.h $(top_srcdir)/lib/ext2fs/ext2_fs.h \
152 $(top_srcdir)/lib/ext2fs/ext2fs.h $(top_srcdir)/lib/ext2fs/ext3_extents.h \
153 $(top_srcdir)/lib/et/com_err.h $(top_srcdir)/lib/ext2fs/ext2_io.h \
154 $(top_builddir)/lib/ext2fs/ext2_err.h \
155 $(top_srcdir)/lib/ext2fs/ext2_ext_attr.h $(top_srcdir)/lib/ext2fs/bitops.h \
156 $(srcdir)/dqblk_v2.h $(srcdir)/quotaio_tree.h
157dict.o: $(srcdir)/dict.c $(top_builddir)/lib/config.h \
158 $(top_builddir)/lib/dirpaths.h $(srcdir)/dict.h
159