• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1#
2# Standard e2fsprogs prologue....
3#
4
5srcdir = @srcdir@
6top_srcdir = @top_srcdir@
7VPATH = @srcdir@
8top_builddir = ../..
9my_dir = tests/progs
10INSTALL = @INSTALL@
11MKDIR_P = @MKDIR_P@
12
13@MCONFIG@
14
15MK_CMDS=	_SS_DIR_OVERRIDE=$(srcdir)/../../lib/ss ../../lib/ss/mk_cmds
16
17PROGS=		test_icount crcsum
18
19TEST_REL_OBJS=	test_rel.o test_rel_cmds.o
20
21TEST_ICOUNT_OBJS=	test_icount.o test_icount_cmds.o
22
23SRCS=	$(srcdir)/test_rel.c
24
25LIBS= $(LIBEXT2FS) $(LIBSS) $(LIBCOM_ERR) $(SYSLIBS)
26DEPLIBS= $(LIBEXT2FS) $(DEPLIBSS) $(DEPLIBCOM_ERR)
27
28.c.o:
29	$(E) "	CC $<"
30	$(Q) $(CC) -c $(ALL_CFLAGS) $< -o $@
31	$(Q) $(CHECK_CMD) $(ALL_CFLAGS) $<
32	$(Q) $(CPPCHECK_CMD) $(CPPFLAGS) $<
33
34all:: $(PROGS)
35
36test_rel: $(TEST_REL_OBJS) $(DEPLIBS)
37	$(E) "	LD $@"
38	$(Q) $(LD) $(ALL_LDFLAGS) -o test_rel $(TEST_REL_OBJS) $(LIBS)
39
40crcsum: crcsum.o $(DEPLIBS)
41	$(E) "	LD $@"
42	$(Q) $(LD) $(ALL_LDFLAGS) -o crcsum crcsum.o $(LIBS)
43
44test_rel_cmds.c: test_rel_cmds.ct
45	$(E) "	MK_CMDS $@"
46	$(Q) $(MK_CMDS) $(srcdir)/test_rel_cmds.ct
47
48test_icount: $(TEST_ICOUNT_OBJS) $(DEPLIBS)
49	$(E) "	LD $@"
50	$(Q) $(LD) $(ALL_LDFLAGS) -o test_icount $(TEST_ICOUNT_OBJS) $(LIBS)
51
52test_icount_cmds.c: test_icount_cmds.ct
53	$(E) "	MK_CMDS $@"
54	$(Q) $(MK_CMDS) $(srcdir)/test_icount_cmds.ct
55
56clean::
57	$(RM) -f $(PROGS) test_rel_cmds.c test_icount_cmds.c \
58		\#* *.s *.o *.a *~ core
59
60install:
61
62install-strip:
63
64uninstall:
65
66mostlyclean: clean
67distclean: clean
68	$(RM) -f .depend Makefile $(srcdir)/TAGS $(srcdir)/Makefile.in.old
69
70# +++ Dependency line eater +++
71#
72# Makefile dependencies follow.  This must be the last section in
73# the Makefile.in file
74#
75test_rel.o: $(srcdir)/test_rel.c $(top_builddir)/lib/config.h \
76 $(top_builddir)/lib/dirpaths.h $(top_srcdir)/lib/et/com_err.h \
77 $(top_srcdir)/lib/ss/ss.h $(top_builddir)/lib/ss/ss_err.h \
78 $(top_srcdir)/lib/ext2fs/ext2_fs.h $(top_builddir)/lib/ext2fs/ext2_types.h \
79 $(top_srcdir)/lib/ext2fs/ext2fs.h $(top_srcdir)/lib/ext2fs/ext3_extents.h \
80 $(top_srcdir)/lib/ext2fs/ext2_io.h $(top_builddir)/lib/ext2fs/ext2_err.h \
81 $(top_srcdir)/lib/ext2fs/ext2_ext_attr.h $(top_srcdir)/lib/ext2fs/hashmap.h \
82 $(top_srcdir)/lib/ext2fs/bitops.h $(top_srcdir)/lib/ext2fs/irel.h \
83 $(top_srcdir)/lib/ext2fs/brel.h $(srcdir)/test_rel.h
84