]>
Commit | Line | Data |
---|---|---|
19c78dc0 TT |
1 | # |
2 | # Standard e2fsprogs prologue.... | |
3 | # | |
4 | ||
5 | srcdir = @srcdir@ | |
6 | top_srcdir = @top_srcdir@ | |
7 | VPATH = @srcdir@ | |
8 | top_builddir = ../.. | |
9 | my_dir = tests/progs | |
10 | INSTALL = @INSTALL@ | |
11 | ||
12 | @MCONFIG@ | |
13 | ||
1f00aafd | 14 | MK_CMDS= _SS_DIR_OVERRIDE=../../lib/ss ../../lib/ss/mk_cmds |
19c78dc0 | 15 | |
4e27d764 | 16 | PROGS= test_icount |
19c78dc0 TT |
17 | |
18 | TEST_REL_OBJS= test_rel.o test_rel_cmds.o | |
19 | ||
521e3685 TT |
20 | TEST_ICOUNT_OBJS= test_icount.o test_icount_cmds.o |
21 | ||
19c78dc0 TT |
22 | SRCS= $(srcdir)/test_rel.c |
23 | ||
24 | LIBS= $(LIBEXT2FS) $(LIBSS) $(LIBCOM_ERR) | |
25 | DEPLIBS= $(LIBEXT2FS) $(LIBSS) $(LIBCOM_ERR) | |
26 | ||
27 | .c.o: | |
28 | $(CC) -c $(ALL_CFLAGS) $< -o $@ | |
29 | ||
30 | all:: $(PROGS) | |
31 | ||
521e3685 | 32 | test_rel: $(TEST_REL_OBJS) $(DEPLIBS) |
19c78dc0 TT |
33 | $(LD) $(ALL_LDFLAGS) -o test_rel $(TEST_REL_OBJS) $(LIBS) |
34 | ||
35 | test_rel_cmds.c: test_rel_cmds.ct | |
36 | $(MK_CMDS) $(srcdir)/test_rel_cmds.ct | |
37 | ||
521e3685 TT |
38 | test_icount: $(TEST_ICOUNT_OBJS) $(DEPLIBS) |
39 | $(LD) $(ALL_LDFLAGS) -o test_icount $(TEST_ICOUNT_OBJS) $(LIBS) | |
40 | ||
41 | test_icount_cmds.c: test_icount_cmds.ct | |
42 | $(MK_CMDS) $(srcdir)/test_icount_cmds.ct | |
43 | ||
19c78dc0 | 44 | clean: |
521e3685 TT |
45 | $(RM) -f $(PROGS) test_rel_cmds.c test_icount_cmds.c \ |
46 | \#* *.s *.o *.a *~ core | |
19c78dc0 TT |
47 | |
48 | install: | |
49 | ||
a4b2d3ce TT |
50 | uninstall: |
51 | ||
19c78dc0 TT |
52 | mostlyclean: clean |
53 | distclean: clean | |
5c36a2f8 | 54 | $(RM) -f .depend Makefile $(srcdir)/TAGS $(srcdir)/Makefile.in.old |
19c78dc0 TT |
55 | |
56 | # +++ Dependency line eater +++ | |
57 | # | |
58 | # Makefile dependencies follow. This must be the last section in | |
59 | # the Makefile.in file | |
60 | # | |
54c637d4 TT |
61 | test_rel.o: $(srcdir)/test_rel.c $(top_srcdir)/lib/et/com_err.h \ |
62 | $(top_srcdir)/lib/ss/ss.h $(top_builddir)/lib/ss/ss_err.h \ | |
797f5ef1 TT |
63 | $(top_srcdir)/lib/ext2fs/ext2_fs.h $(top_builddir)/lib/ext2fs/ext2_types.h \ |
64 | $(top_srcdir)/lib/ext2fs/ext2fs.h $(top_srcdir)/lib/ext2fs/ext2_io.h \ | |
65 | $(top_builddir)/lib/ext2fs/ext2_err.h $(top_srcdir)/lib/ext2fs/bitops.h \ | |
66 | $(top_srcdir)/lib/ext2fs/irel.h $(top_srcdir)/lib/ext2fs/brel.h \ | |
67 | $(srcdir)/test_rel.h |