1*6a54128fSAndroid Build Coastguard Worker# 2*6a54128fSAndroid Build Coastguard Worker# Standard e2fsprogs prologue.... 3*6a54128fSAndroid Build Coastguard Worker# 4*6a54128fSAndroid Build Coastguard Worker 5*6a54128fSAndroid Build Coastguard Workersrcdir = @srcdir@ 6*6a54128fSAndroid Build Coastguard Workertop_srcdir = @top_srcdir@ 7*6a54128fSAndroid Build Coastguard WorkerVPATH = @srcdir@ 8*6a54128fSAndroid Build Coastguard Workertop_builddir = ../.. 9*6a54128fSAndroid Build Coastguard Workermy_dir = tests/progs 10*6a54128fSAndroid Build Coastguard WorkerINSTALL = @INSTALL@ 11*6a54128fSAndroid Build Coastguard WorkerMKDIR_P = @MKDIR_P@ 12*6a54128fSAndroid Build Coastguard Worker 13*6a54128fSAndroid Build Coastguard Worker@MCONFIG@ 14*6a54128fSAndroid Build Coastguard Worker 15*6a54128fSAndroid Build Coastguard WorkerMK_CMDS= _SS_DIR_OVERRIDE=$(srcdir)/../../lib/ss ../../lib/ss/mk_cmds 16*6a54128fSAndroid Build Coastguard Worker 17*6a54128fSAndroid Build Coastguard WorkerPROGS= test_icount crcsum 18*6a54128fSAndroid Build Coastguard Worker 19*6a54128fSAndroid Build Coastguard WorkerTEST_REL_OBJS= test_rel.o test_rel_cmds.o 20*6a54128fSAndroid Build Coastguard Worker 21*6a54128fSAndroid Build Coastguard WorkerTEST_ICOUNT_OBJS= test_icount.o test_icount_cmds.o 22*6a54128fSAndroid Build Coastguard Worker 23*6a54128fSAndroid Build Coastguard WorkerSRCS= $(srcdir)/test_rel.c 24*6a54128fSAndroid Build Coastguard Worker 25*6a54128fSAndroid Build Coastguard WorkerLIBS= $(LIBEXT2FS) $(LIBSS) $(LIBCOM_ERR) $(SYSLIBS) 26*6a54128fSAndroid Build Coastguard WorkerDEPLIBS= $(LIBEXT2FS) $(DEPLIBSS) $(DEPLIBCOM_ERR) 27*6a54128fSAndroid Build Coastguard Worker 28*6a54128fSAndroid Build Coastguard Worker.c.o: 29*6a54128fSAndroid Build Coastguard Worker $(E) " CC $<" 30*6a54128fSAndroid Build Coastguard Worker $(Q) $(CC) -c $(ALL_CFLAGS) $< -o $@ 31*6a54128fSAndroid Build Coastguard Worker $(Q) $(CHECK_CMD) $(ALL_CFLAGS) $< 32*6a54128fSAndroid Build Coastguard Worker $(Q) $(CPPCHECK_CMD) $(CPPFLAGS) $< 33*6a54128fSAndroid Build Coastguard Worker 34*6a54128fSAndroid Build Coastguard Workerall:: $(PROGS) 35*6a54128fSAndroid Build Coastguard Worker 36*6a54128fSAndroid Build Coastguard Workertest_rel: $(TEST_REL_OBJS) $(DEPLIBS) 37*6a54128fSAndroid Build Coastguard Worker $(E) " LD $@" 38*6a54128fSAndroid Build Coastguard Worker $(Q) $(LD) $(ALL_LDFLAGS) -o test_rel $(TEST_REL_OBJS) $(LIBS) 39*6a54128fSAndroid Build Coastguard Worker 40*6a54128fSAndroid Build Coastguard Workercrcsum: crcsum.o $(DEPLIBS) 41*6a54128fSAndroid Build Coastguard Worker $(E) " LD $@" 42*6a54128fSAndroid Build Coastguard Worker $(Q) $(LD) $(ALL_LDFLAGS) -o crcsum crcsum.o $(LIBS) 43*6a54128fSAndroid Build Coastguard Worker 44*6a54128fSAndroid Build Coastguard Workertest_rel_cmds.c: test_rel_cmds.ct 45*6a54128fSAndroid Build Coastguard Worker $(E) " MK_CMDS $@" 46*6a54128fSAndroid Build Coastguard Worker $(Q) $(MK_CMDS) $(srcdir)/test_rel_cmds.ct 47*6a54128fSAndroid Build Coastguard Worker 48*6a54128fSAndroid Build Coastguard Workertest_icount: $(TEST_ICOUNT_OBJS) $(DEPLIBS) 49*6a54128fSAndroid Build Coastguard Worker $(E) " LD $@" 50*6a54128fSAndroid Build Coastguard Worker $(Q) $(LD) $(ALL_LDFLAGS) -o test_icount $(TEST_ICOUNT_OBJS) $(LIBS) 51*6a54128fSAndroid Build Coastguard Worker 52*6a54128fSAndroid Build Coastguard Workertest_icount_cmds.c: test_icount_cmds.ct 53*6a54128fSAndroid Build Coastguard Worker $(E) " MK_CMDS $@" 54*6a54128fSAndroid Build Coastguard Worker $(Q) $(MK_CMDS) $(srcdir)/test_icount_cmds.ct 55*6a54128fSAndroid Build Coastguard Worker 56*6a54128fSAndroid Build Coastguard Workerclean:: 57*6a54128fSAndroid Build Coastguard Worker $(RM) -f $(PROGS) test_rel_cmds.c test_icount_cmds.c \ 58*6a54128fSAndroid Build Coastguard Worker \#* *.s *.o *.a *~ core 59*6a54128fSAndroid Build Coastguard Worker 60*6a54128fSAndroid Build Coastguard Workerinstall: 61*6a54128fSAndroid Build Coastguard Worker 62*6a54128fSAndroid Build Coastguard Workerinstall-strip: 63*6a54128fSAndroid Build Coastguard Worker 64*6a54128fSAndroid Build Coastguard Workeruninstall: 65*6a54128fSAndroid Build Coastguard Worker 66*6a54128fSAndroid Build Coastguard Workermostlyclean: clean 67*6a54128fSAndroid Build Coastguard Workerdistclean: clean 68*6a54128fSAndroid Build Coastguard Worker $(RM) -f .depend Makefile $(srcdir)/TAGS $(srcdir)/Makefile.in.old 69*6a54128fSAndroid Build Coastguard Worker 70*6a54128fSAndroid Build Coastguard Worker# +++ Dependency line eater +++ 71*6a54128fSAndroid Build Coastguard Worker# 72*6a54128fSAndroid Build Coastguard Worker# Makefile dependencies follow. This must be the last section in 73*6a54128fSAndroid Build Coastguard Worker# the Makefile.in file 74*6a54128fSAndroid Build Coastguard Worker# 75*6a54128fSAndroid Build Coastguard Workertest_rel.o: $(srcdir)/test_rel.c $(top_builddir)/lib/config.h \ 76*6a54128fSAndroid Build Coastguard Worker $(top_builddir)/lib/dirpaths.h $(top_srcdir)/lib/et/com_err.h \ 77*6a54128fSAndroid Build Coastguard Worker $(top_srcdir)/lib/ss/ss.h $(top_builddir)/lib/ss/ss_err.h \ 78*6a54128fSAndroid Build Coastguard Worker $(top_srcdir)/lib/ext2fs/ext2_fs.h $(top_builddir)/lib/ext2fs/ext2_types.h \ 79*6a54128fSAndroid Build Coastguard Worker $(top_srcdir)/lib/ext2fs/ext2fs.h $(top_srcdir)/lib/ext2fs/ext3_extents.h \ 80*6a54128fSAndroid Build Coastguard Worker $(top_srcdir)/lib/ext2fs/ext2_io.h $(top_builddir)/lib/ext2fs/ext2_err.h \ 81*6a54128fSAndroid Build Coastguard Worker $(top_srcdir)/lib/ext2fs/ext2_ext_attr.h $(top_srcdir)/lib/ext2fs/hashmap.h \ 82*6a54128fSAndroid Build Coastguard Worker $(top_srcdir)/lib/ext2fs/bitops.h $(top_srcdir)/lib/ext2fs/irel.h \ 83*6a54128fSAndroid Build Coastguard Worker $(top_srcdir)/lib/ext2fs/brel.h $(srcdir)/test_rel.h 84