2 # Standard e2fsprogs prologue....
6 top_srcdir = @top_srcdir@
14 MK_CMDS= _SS_DIR_OVERRIDE=$(srcdir)/../../lib/ss ../../lib/ss/mk_cmds
16 PROGS= test_icount crcsum
18 TEST_REL_OBJS= test_rel.o test_rel_cmds.o
20 TEST_ICOUNT_OBJS= test_icount.o test_icount_cmds.o
22 SRCS= $(srcdir)/test_rel.c
24 LIBS= $(LIBEXT2FS) $(LIBSS) $(LIBCOM_ERR) $(SYSLIBS)
25 DEPLIBS= $(LIBEXT2FS) $(DEPLIBSS) $(DEPLIBCOM_ERR)
29 $(Q) $(CC) -c $(ALL_CFLAGS) $< -o $@
30 $(Q) $(CHECK_CMD) $(ALL_CFLAGS) $<
31 $(Q) $(CPPCHECK_CMD) $(CPPFLAGS) $<
35 test_rel: $(TEST_REL_OBJS) $(DEPLIBS)
37 $(Q) $(LD) $(ALL_LDFLAGS) -o test_rel $(TEST_REL_OBJS) $(LIBS)
39 crcsum: crcsum.o $(DEPLIBS)
41 $(Q) $(LD) $(ALL_LDFLAGS) -o crcsum crcsum.o $(LIBS)
43 test_rel_cmds.c: test_rel_cmds.ct
45 $(Q) $(MK_CMDS) $(srcdir)/test_rel_cmds.ct
47 test_icount: $(TEST_ICOUNT_OBJS) $(DEPLIBS)
49 $(Q) $(LD) $(ALL_LDFLAGS) -o test_icount $(TEST_ICOUNT_OBJS) $(LIBS)
51 test_icount_cmds.c: test_icount_cmds.ct
53 $(Q) $(MK_CMDS) $(srcdir)/test_icount_cmds.ct
56 $(RM) -f $(PROGS) test_rel_cmds.c test_icount_cmds.c \
57 \#* *.s *.o *.a *~ core
67 $(RM) -f .depend Makefile $(srcdir)/TAGS $(srcdir)/Makefile.in.old
69 # +++ Dependency line eater +++
71 # Makefile dependencies follow. This must be the last section in
72 # the Makefile.in file
74 test_rel.o: $(srcdir)/test_rel.c $(top_builddir)/lib/config.h \
75 $(top_builddir)/lib/dirpaths.h $(top_srcdir)/lib/et/com_err.h \
76 $(top_srcdir)/lib/ss/ss.h $(top_builddir)/lib/ss/ss_err.h \
77 $(top_srcdir)/lib/ext2fs/ext2_fs.h $(top_builddir)/lib/ext2fs/ext2_types.h \
78 $(top_srcdir)/lib/ext2fs/ext2fs.h $(top_srcdir)/lib/ext2fs/ext3_extents.h \
79 $(top_srcdir)/lib/ext2fs/ext2_io.h $(top_builddir)/lib/ext2fs/ext2_err.h \
80 $(top_srcdir)/lib/ext2fs/ext2_ext_attr.h $(top_srcdir)/lib/ext2fs/hashmap.h \
81 $(top_srcdir)/lib/ext2fs/bitops.h $(top_srcdir)/lib/ext2fs/irel.h \
82 $(top_srcdir)/lib/ext2fs/brel.h $(srcdir)/test_rel.h