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