2 top_srcdir = @top_srcdir@
42 $(srcdir)/badblocks.c \
43 $(srcdir)/bb_inode.c \
47 $(srcdir)/check_desc.c \
49 $(srcdir)/cmp_bitmaps.c \
50 $(srcdir)/dirblock.c \
51 $(srcdir)/expanddir.c \
53 $(srcdir)/get_pathname.c \
55 $(srcdir)/initialize.c \
58 $(srcdir)/ismounted.c \
66 $(srcdir)/read_bb_file.c \
67 $(srcdir)/rw_bitmaps.c \
71 HFILES= bitops.h ext2fs.h io.h
76 DLL_ADDRESS = 0x66900000
82 DLL_LIBS = -L../.. -lcom_err
84 DLL_INSTALL_DIR = $(libdir)
90 ELF_INSTALL_DIR = $(libdir)
93 BSDLIB_IMAGE = libext2fs
95 BSDLIB_INSTALL_DIR = $(libdir)
105 $(CC) $(ALL_CFLAGS) -c $< -o $@
106 @PROFILE_CMT@ $(CC) $(ALL_CFLAGS) -pg -o profiled/$*.o -c $<
107 @CHECKER_CMT@ $(CC) $(ALL_CFLAGS) -checker -g -o checker/$*.o -c $<
108 @DLL_CMT@ (export JUMP_DIR=`pwd`/jump; $(CC) -B$(JUMP_PREFIX) $(ALL_CFLAGS) \
109 @DLL_CMT@ -o jump/$*.o -c $<)
110 @ELF_CMT@ $(CC) $(ALL_CFLAGS) -fPIC -o elfshared/$*.o -c $<
111 @BSDLIB_CMT@ $(CC) $(ALL_CFLAGS) -fpic -o pic/$*.o -c $<
113 COMPILE_ET=../et/compile_et
115 DISTFILES= Makefile *.c *.h image
117 ext2_err.et: $(SUBSTITUTE) $(srcdir)/ext2_err.et.in
118 -$(CHMOD) +x $(SUBSTITUTE)
119 $(SUBSTITUTE) $(srcdir)/ext2_err.et.in ext2_err.et
121 ext2_err.c ext2_err.h: ext2_err.et
122 $(COMPILE_ET) ext2_err.et
125 $(top_srcdir)/mkinstalldirs $(DESTDIR)$(ulibdir) \
126 $(DESTDIR)$(includedir)/ext2fs
128 install:: all $(HFILES) installdirs
129 $(INSTALL_DATA) libext2fs.a $(DESTDIR)$(ulibdir)/libext2fs.a
130 $(CHMOD) 644 $(DESTDIR)$(ulibdir)/libext2fs.a
131 -$(RANLIB) $(DESTDIR)$(ulibdir)/libext2fs.a
132 $(CHMOD) $(LIBMODE) $(DESTDIR)$(ulibdir)/libext2fs.a
133 for i in $(HFILES); do \
134 $(INSTALL_DATA) $(srcdir)/$$i $(DESTDIR)$(includedir)/ext2fs/$$i; \
136 $(INSTALL_DATA) ext2_err.h $(DESTDIR)$(includedir)/ext2fs/ext2_err.h
139 $(RM) -f $(ulibdir)/libext2fs.a
140 $(RM) -rf $(includedir)/ext2fs
143 $(RM) -f \#* *.s *.o *.a *~ *.bak core profiled/* checker/* \
144 ext2_err.et ext2_err.c ext2_err.h \
145 ../libext2fs.a ../libext2fs_p.a ../libext2fs_chk.a
149 $(RM) -f .depend ext2_err.c ext2_err.h Makefile
151 # +++ Dependency line eater +++
153 # Makefile dependencies follow. This must be the last section in
154 # the Makefile.in file
156 ext2_err.o: ext2_err.c
157 alloc.o: $(srcdir)/alloc.c $(srcdir)/ext2fs.h \
158 $(top_srcdir)/lib/et/com_err.h $(srcdir)/io.h \
159 $(top_builddir)/lib/ext2fs/ext2_err.h $(srcdir)/bitops.h
160 badblocks.o: $(srcdir)/badblocks.c $(srcdir)/ext2fs.h \
161 $(top_srcdir)/lib/et/com_err.h $(srcdir)/io.h \
162 $(top_builddir)/lib/ext2fs/ext2_err.h $(srcdir)/bitops.h
163 bb_inode.o: $(srcdir)/bb_inode.c $(srcdir)/ext2fs.h \
164 $(top_srcdir)/lib/et/com_err.h $(srcdir)/io.h \
165 $(top_builddir)/lib/ext2fs/ext2_err.h $(srcdir)/bitops.h
166 bitmaps.o: $(srcdir)/bitmaps.c $(srcdir)/ext2fs.h \
167 $(top_srcdir)/lib/et/com_err.h $(srcdir)/io.h \
168 $(top_builddir)/lib/ext2fs/ext2_err.h $(srcdir)/bitops.h
169 bitops.o: $(srcdir)/bitops.c $(srcdir)/ext2fs.h \
170 $(top_srcdir)/lib/et/com_err.h $(srcdir)/io.h \
171 $(top_builddir)/lib/ext2fs/ext2_err.h $(srcdir)/bitops.h
172 block.o: $(srcdir)/block.c $(srcdir)/ext2fs.h \
173 $(top_srcdir)/lib/et/com_err.h $(srcdir)/io.h \
174 $(top_builddir)/lib/ext2fs/ext2_err.h $(srcdir)/bitops.h
175 check_desc.o: $(srcdir)/check_desc.c $(srcdir)/ext2fs.h \
176 $(top_srcdir)/lib/et/com_err.h $(srcdir)/io.h \
177 $(top_builddir)/lib/ext2fs/ext2_err.h $(srcdir)/bitops.h
178 closefs.o: $(srcdir)/closefs.c $(srcdir)/ext2fs.h \
179 $(top_srcdir)/lib/et/com_err.h $(srcdir)/io.h \
180 $(top_builddir)/lib/ext2fs/ext2_err.h $(srcdir)/bitops.h
181 cmp_bitmaps.o: $(srcdir)/cmp_bitmaps.c $(srcdir)/ext2fs.h \
182 $(top_srcdir)/lib/et/com_err.h $(srcdir)/io.h \
183 $(top_builddir)/lib/ext2fs/ext2_err.h $(srcdir)/bitops.h
184 dirblock.o: $(srcdir)/dirblock.c $(srcdir)/ext2fs.h \
185 $(top_srcdir)/lib/et/com_err.h $(srcdir)/io.h \
186 $(top_builddir)/lib/ext2fs/ext2_err.h $(srcdir)/bitops.h
187 expanddir.o: $(srcdir)/expanddir.c $(srcdir)/ext2fs.h \
188 $(top_srcdir)/lib/et/com_err.h $(srcdir)/io.h \
189 $(top_builddir)/lib/ext2fs/ext2_err.h $(srcdir)/bitops.h
190 freefs.o: $(srcdir)/freefs.c $(srcdir)/ext2fs.h \
191 $(top_srcdir)/lib/et/com_err.h $(srcdir)/io.h \
192 $(top_builddir)/lib/ext2fs/ext2_err.h $(srcdir)/bitops.h
193 get_pathname.o: $(srcdir)/get_pathname.c $(srcdir)/ext2fs.h \
194 $(top_srcdir)/lib/et/com_err.h $(srcdir)/io.h \
195 $(top_builddir)/lib/ext2fs/ext2_err.h $(srcdir)/bitops.h
196 getsize.o: $(srcdir)/getsize.c $(srcdir)/ext2fs.h \
197 $(top_srcdir)/lib/et/com_err.h $(srcdir)/io.h \
198 $(top_builddir)/lib/ext2fs/ext2_err.h $(srcdir)/bitops.h
199 initialize.o: $(srcdir)/initialize.c $(srcdir)/ext2fs.h \
200 $(top_srcdir)/lib/et/com_err.h $(srcdir)/io.h \
201 $(top_builddir)/lib/ext2fs/ext2_err.h $(srcdir)/bitops.h
202 inline.o: $(srcdir)/inline.c $(srcdir)/ext2fs.h \
203 $(top_srcdir)/lib/et/com_err.h $(srcdir)/io.h \
204 $(top_builddir)/lib/ext2fs/ext2_err.h $(srcdir)/bitops.h
205 inode.o: $(srcdir)/inode.c $(srcdir)/ext2fs.h \
206 $(top_srcdir)/lib/et/com_err.h $(srcdir)/io.h \
207 $(top_builddir)/lib/ext2fs/ext2_err.h $(srcdir)/bitops.h
208 ismounted.o: $(srcdir)/ismounted.c $(srcdir)/ext2fs.h \
209 $(top_srcdir)/lib/et/com_err.h $(srcdir)/io.h \
210 $(top_builddir)/lib/ext2fs/ext2_err.h $(srcdir)/bitops.h
211 link.o: $(srcdir)/link.c $(srcdir)/ext2fs.h \
212 $(top_srcdir)/lib/et/com_err.h $(srcdir)/io.h \
213 $(top_builddir)/lib/ext2fs/ext2_err.h $(srcdir)/bitops.h
214 llseek.o: $(srcdir)/llseek.c $(top_srcdir)/lib/et/com_err.h $(srcdir)/io.h
215 mkdir.o: $(srcdir)/mkdir.c $(srcdir)/ext2fs.h \
216 $(top_srcdir)/lib/et/com_err.h $(srcdir)/io.h \
217 $(top_builddir)/lib/ext2fs/ext2_err.h $(srcdir)/bitops.h
218 namei.o: $(srcdir)/namei.c $(srcdir)/ext2fs.h \
219 $(top_srcdir)/lib/et/com_err.h $(srcdir)/io.h \
220 $(top_builddir)/lib/ext2fs/ext2_err.h $(srcdir)/bitops.h
221 newdir.o: $(srcdir)/newdir.c $(srcdir)/ext2fs.h \
222 $(top_srcdir)/lib/et/com_err.h $(srcdir)/io.h \
223 $(top_builddir)/lib/ext2fs/ext2_err.h $(srcdir)/bitops.h
224 openfs.o: $(srcdir)/openfs.c $(srcdir)/ext2fs.h \
225 $(top_srcdir)/lib/et/com_err.h $(srcdir)/io.h \
226 $(top_builddir)/lib/ext2fs/ext2_err.h $(srcdir)/bitops.h
227 read_bb.o: $(srcdir)/read_bb.c $(srcdir)/ext2fs.h \
228 $(top_srcdir)/lib/et/com_err.h $(srcdir)/io.h \
229 $(top_builddir)/lib/ext2fs/ext2_err.h $(srcdir)/bitops.h
230 read_bb_file.o: $(srcdir)/read_bb_file.c $(srcdir)/ext2fs.h \
231 $(top_srcdir)/lib/et/com_err.h $(srcdir)/io.h \
232 $(top_builddir)/lib/ext2fs/ext2_err.h $(srcdir)/bitops.h
233 rw_bitmaps.o: $(srcdir)/rw_bitmaps.c $(srcdir)/ext2fs.h \
234 $(top_srcdir)/lib/et/com_err.h $(srcdir)/io.h \
235 $(top_builddir)/lib/ext2fs/ext2_err.h $(srcdir)/bitops.h
236 swapfs.o: $(srcdir)/swapfs.c $(srcdir)/ext2fs.h \
237 $(top_srcdir)/lib/et/com_err.h $(srcdir)/io.h \
238 $(top_builddir)/lib/ext2fs/ext2_err.h $(srcdir)/bitops.h
239 unix_io.o: $(srcdir)/unix_io.c $(top_srcdir)/lib/et/com_err.h \
240 $(top_builddir)/lib/ext2fs/ext2_err.h $(srcdir)/io.h