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