]>
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 | |
28e66624 | 16 | PROGS= test_icount crcsum |
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 | ||
6c59a665 | 24 | LIBS= $(LIBEXT2FS) $(LIBSS) $(LIBCOM_ERR) $(SYSLIBS) |
a6a1c081 | 25 | DEPLIBS= $(LIBEXT2FS) $(DEPLIBSS) $(DEPLIBCOM_ERR) |
19c78dc0 TT |
26 | |
27 | .c.o: | |
c13351f6 TT |
28 | $(E) " CC $<" |
29 | $(Q) $(CC) -c $(ALL_CFLAGS) $< -o $@ | |
832cb612 | 30 | $(Q) $(CHECK_CMD) $(ALL_CFLAGS) $< |
19c78dc0 TT |
31 | |
32 | all:: $(PROGS) | |
33 | ||
521e3685 | 34 | test_rel: $(TEST_REL_OBJS) $(DEPLIBS) |
c13351f6 TT |
35 | $(E) " LD $@" |
36 | $(Q) $(LD) $(ALL_LDFLAGS) -o test_rel $(TEST_REL_OBJS) $(LIBS) | |
19c78dc0 | 37 | |
28e66624 TT |
38 | crcsum: crcsum.o $(DEPLIBS) |
39 | $(E) " LD $@" | |
40 | $(Q) $(LD) $(ALL_LDFLAGS) -o crcsum crcsum.o $(LIBS) | |
41 | ||
19c78dc0 | 42 | test_rel_cmds.c: test_rel_cmds.ct |
c13351f6 TT |
43 | $(E) " MK_CMDS $@" |
44 | $(Q) $(MK_CMDS) $(srcdir)/test_rel_cmds.ct | |
19c78dc0 | 45 | |
521e3685 | 46 | test_icount: $(TEST_ICOUNT_OBJS) $(DEPLIBS) |
c13351f6 TT |
47 | $(E) " LD $@" |
48 | $(Q) $(LD) $(ALL_LDFLAGS) -o test_icount $(TEST_ICOUNT_OBJS) $(LIBS) | |
521e3685 TT |
49 | |
50 | test_icount_cmds.c: test_icount_cmds.ct | |
c13351f6 TT |
51 | $(E) " MK_CMDS $@" |
52 | $(Q) $(MK_CMDS) $(srcdir)/test_icount_cmds.ct | |
521e3685 | 53 | |
fedfb27f | 54 | clean:: |
521e3685 TT |
55 | $(RM) -f $(PROGS) test_rel_cmds.c test_icount_cmds.c \ |
56 | \#* *.s *.o *.a *~ core | |
19c78dc0 TT |
57 | |
58 | install: | |
59 | ||
522798d3 TT |
60 | install-strip: |
61 | ||
a4b2d3ce TT |
62 | uninstall: |
63 | ||
19c78dc0 TT |
64 | mostlyclean: clean |
65 | distclean: clean | |
5c36a2f8 | 66 | $(RM) -f .depend Makefile $(srcdir)/TAGS $(srcdir)/Makefile.in.old |
19c78dc0 TT |
67 | |
68 | # +++ Dependency line eater +++ | |
69 | # | |
70 | # Makefile dependencies follow. This must be the last section in | |
71 | # the Makefile.in file | |
72 | # | |
54c637d4 TT |
73 | test_rel.o: $(srcdir)/test_rel.c $(top_srcdir)/lib/et/com_err.h \ |
74 | $(top_srcdir)/lib/ss/ss.h $(top_builddir)/lib/ss/ss_err.h \ | |
797f5ef1 TT |
75 | $(top_srcdir)/lib/ext2fs/ext2_fs.h $(top_builddir)/lib/ext2fs/ext2_types.h \ |
76 | $(top_srcdir)/lib/ext2fs/ext2fs.h $(top_srcdir)/lib/ext2fs/ext2_io.h \ | |
77 | $(top_builddir)/lib/ext2fs/ext2_err.h $(top_srcdir)/lib/ext2fs/bitops.h \ | |
78 | $(top_srcdir)/lib/ext2fs/irel.h $(top_srcdir)/lib/ext2fs/brel.h \ | |
79 | $(srcdir)/test_rel.h |