summaryrefslogtreecommitdiffstats
path: root/tests/progs/Makefile.in
blob: e1325c619aef89db700565636ee72c0752e82856 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
#
# Standard e2fsprogs prologue....
#

srcdir = @srcdir@
top_srcdir = @top_srcdir@
VPATH = @srcdir@
top_builddir = ../..
my_dir = tests/progs
INSTALL = @INSTALL@
MKDIR_P = @MKDIR_P@

@MCONFIG@

MK_CMDS=	_SS_DIR_OVERRIDE=$(srcdir)/../../lib/ss ../../lib/ss/mk_cmds

PROGS=		test_icount crcsum

TEST_REL_OBJS=	test_rel.o test_rel_cmds.o

TEST_ICOUNT_OBJS=	test_icount.o test_icount_cmds.o

SRCS=	$(srcdir)/test_rel.c 

LIBS= $(LIBEXT2FS) $(LIBSS) $(LIBCOM_ERR) $(SYSLIBS)
DEPLIBS= $(LIBEXT2FS) $(DEPLIBSS) $(DEPLIBCOM_ERR)

.c.o:
	$(E) "	CC $<"
	$(Q) $(CC) -c $(ALL_CFLAGS) $< -o $@
	$(Q) $(CHECK_CMD) $(ALL_CFLAGS) $<
	$(Q) $(CPPCHECK_CMD) $(CPPFLAGS) $<

all:: $(PROGS)

test_rel: $(TEST_REL_OBJS) $(DEPLIBS)
	$(E) "	LD $@"
	$(Q) $(LD) $(ALL_LDFLAGS) -o test_rel $(TEST_REL_OBJS) $(LIBS)

crcsum: crcsum.o $(DEPLIBS)
	$(E) "	LD $@"
	$(Q) $(LD) $(ALL_LDFLAGS) -o crcsum crcsum.o $(LIBS)

test_rel_cmds.c: test_rel_cmds.ct
	$(E) "	MK_CMDS $@"
	$(Q) $(MK_CMDS) $(srcdir)/test_rel_cmds.ct

test_icount: $(TEST_ICOUNT_OBJS) $(DEPLIBS)
	$(E) "	LD $@"
	$(Q) $(LD) $(ALL_LDFLAGS) -o test_icount $(TEST_ICOUNT_OBJS) $(LIBS)

test_icount_cmds.c: test_icount_cmds.ct
	$(E) "	MK_CMDS $@"
	$(Q) $(MK_CMDS) $(srcdir)/test_icount_cmds.ct

clean::
	$(RM) -f $(PROGS) test_rel_cmds.c test_icount_cmds.c \
		\#* *.s *.o *.a *~ core

install:

install-strip:

uninstall:

mostlyclean: clean
distclean: clean
	$(RM) -f .depend Makefile $(srcdir)/TAGS $(srcdir)/Makefile.in.old

# +++ Dependency line eater +++
# 
# Makefile dependencies follow.  This must be the last section in
# the Makefile.in file
#
test_rel.o: $(srcdir)/test_rel.c $(top_builddir)/lib/config.h \
 $(top_builddir)/lib/dirpaths.h $(top_srcdir)/lib/et/com_err.h \
 $(top_srcdir)/lib/ss/ss.h $(top_builddir)/lib/ss/ss_err.h \
 $(top_srcdir)/lib/ext2fs/ext2_fs.h $(top_builddir)/lib/ext2fs/ext2_types.h \
 $(top_srcdir)/lib/ext2fs/ext2fs.h $(top_srcdir)/lib/ext2fs/ext3_extents.h \
 $(top_srcdir)/lib/ext2fs/ext2_io.h $(top_builddir)/lib/ext2fs/ext2_err.h \
 $(top_srcdir)/lib/ext2fs/ext2_ext_attr.h $(top_srcdir)/lib/ext2fs/hashmap.h \
 $(top_srcdir)/lib/ext2fs/bitops.h $(top_srcdir)/lib/ext2fs/irel.h \
 $(top_srcdir)/lib/ext2fs/brel.h $(srcdir)/test_rel.h