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 = ext2ed 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 WorkerPROGS= ext2ed 16*6a54128fSAndroid Build Coastguard WorkerMANPAGES= ext2ed.8 17*6a54128fSAndroid Build Coastguard Worker 18*6a54128fSAndroid Build Coastguard WorkerDOC_DIR = $datadir/doc/ext2ed 19*6a54128fSAndroid Build Coastguard Worker 20*6a54128fSAndroid Build Coastguard WorkerLIBS = -lncurses $(LIBEXT2FS) 21*6a54128fSAndroid Build Coastguard Worker 22*6a54128fSAndroid Build Coastguard WorkerSRCS= $(srcdir)/main.c $(srcdir)/init.c $(srcdir)/general_com.c \ 23*6a54128fSAndroid Build Coastguard Worker $(srcdir)/inode_com.c $(srcdir)/dir_com.c $(srcdir)/super_com.c \ 24*6a54128fSAndroid Build Coastguard Worker $(srcdir)/disk.c $(srcdir)/win.c $(srcdir)/group_com.c \ 25*6a54128fSAndroid Build Coastguard Worker $(srcdir)/file_com.c $(srcdir)/blockbitmap_com.c \ 26*6a54128fSAndroid Build Coastguard Worker $(srcdir)/ext2_com.c $(srcdir)/inodebitmap_com.c 27*6a54128fSAndroid Build Coastguard Worker 28*6a54128fSAndroid Build Coastguard WorkerOBJS= main.o init.o general_com.o inode_com.o dir_com.o super_com.o \ 29*6a54128fSAndroid Build Coastguard Worker disk.o win.o group_com.o file_com.o blockbitmap_com.o ext2_com.o \ 30*6a54128fSAndroid Build Coastguard Worker inodebitmap_com.o 31*6a54128fSAndroid Build Coastguard Worker 32*6a54128fSAndroid Build Coastguard WorkerDOCS= doc/ext2ed-design.pdf doc/user-guide.pdf doc/ext2fs-overview.pdf \ 33*6a54128fSAndroid Build Coastguard Worker doc/ext2ed-design.html doc/user-guide.html doc/ext2fs-overview.html 34*6a54128fSAndroid Build Coastguard Worker 35*6a54128fSAndroid Build Coastguard Worker.c.o: 36*6a54128fSAndroid Build Coastguard Worker $(CC) -c $(ALL_CFLAGS) $< -o $@ 37*6a54128fSAndroid Build Coastguard Worker $(CHECK_CMD) $(ALL_CFLAGS) $< 38*6a54128fSAndroid Build Coastguard Worker $(CPPCHECK_CMD) $(CPPFLAGS) $< 39*6a54128fSAndroid Build Coastguard Worker 40*6a54128fSAndroid Build Coastguard Worker.SUFFIXES: .sgml .ps .pdf .html 41*6a54128fSAndroid Build Coastguard Worker 42*6a54128fSAndroid Build Coastguard Worker.sgml.ps: 43*6a54128fSAndroid Build Coastguard Worker mkdir -p doc 44*6a54128fSAndroid Build Coastguard Worker sgmltools -b ps $< 45*6a54128fSAndroid Build Coastguard Worker -mv `echo $< | sed -e 's/.sgml$$/.ps/'` $@ 46*6a54128fSAndroid Build Coastguard Worker 47*6a54128fSAndroid Build Coastguard Worker.sgml.pdf: 48*6a54128fSAndroid Build Coastguard Worker mkdir -p doc 49*6a54128fSAndroid Build Coastguard Worker sgmltools -b pdf $< 50*6a54128fSAndroid Build Coastguard Worker -mv `echo $< | sed -e 's/.sgml$$/.pdf/'` $@ 51*6a54128fSAndroid Build Coastguard Worker 52*6a54128fSAndroid Build Coastguard Worker.sgml.html: 53*6a54128fSAndroid Build Coastguard Worker mkdir -p doc 54*6a54128fSAndroid Build Coastguard Worker sgmltools -b onehtml $< 55*6a54128fSAndroid Build Coastguard Worker -mv `echo $< | sed -e 's/.sgml$$/.html/'` $@ 56*6a54128fSAndroid Build Coastguard Worker 57*6a54128fSAndroid Build Coastguard Workerall:: $(PROGS) $(MANPAGES) ext2ed.conf 58*6a54128fSAndroid Build Coastguard Worker 59*6a54128fSAndroid Build Coastguard Workerdocs: $(DOCS) 60*6a54128fSAndroid Build Coastguard Worker 61*6a54128fSAndroid Build Coastguard Workerext2ed: $(OBJS) 62*6a54128fSAndroid Build Coastguard Worker $(CC) $(ALL_LDFLAGS) -o ext2ed $(OBJS) $(LIBS) 63*6a54128fSAndroid Build Coastguard Worker 64*6a54128fSAndroid Build Coastguard Workerext2ed.8: $(DEP_SUBSTITUTE) $(srcdir)/ext2ed.8.in 65*6a54128fSAndroid Build Coastguard Worker $(SUBSTITUTE_UPTIME) $(srcdir)/ext2ed.8.in ext2ed.8 66*6a54128fSAndroid Build Coastguard Worker 67*6a54128fSAndroid Build Coastguard Workerext2ed.conf: $(DEP_SUBSTITUTE) $(srcdir)/ext2ed.conf.in 68*6a54128fSAndroid Build Coastguard Worker $(SUBSTITUTE_UPTIME) $(srcdir)/ext2ed.conf.in ext2ed.conf 69*6a54128fSAndroid Build Coastguard Worker 70*6a54128fSAndroid Build Coastguard Workerclean:: 71*6a54128fSAndroid Build Coastguard Worker $(RM) -f ext2ed $(OBJS) $(DOCS) ext2ed.conf ext2ed.8 72*6a54128fSAndroid Build Coastguard Worker -rmdir doc 73*6a54128fSAndroid Build Coastguard Worker 74*6a54128fSAndroid Build Coastguard Workerinstall: ext2ed 75*6a54128fSAndroid Build Coastguard Worker install -d $(root_sysconfdir) 76*6a54128fSAndroid Build Coastguard Worker install -m 755 ext2ed $(sbindir) 77*6a54128fSAndroid Build Coastguard Worker install -m 644 $(srcdir)/ext2.descriptors $(datadir) 78*6a54128fSAndroid Build Coastguard Worker install -m 644 ext2ed.conf $(root_sysconfdir) 79*6a54128fSAndroid Build Coastguard Worker install -m 644 ext2ed.8 $(man8dir) 80*6a54128fSAndroid Build Coastguard Worker 81*6a54128fSAndroid Build Coastguard Worker# +++ Dependency line eater +++ 82*6a54128fSAndroid Build Coastguard Worker# 83*6a54128fSAndroid Build Coastguard Worker# Makefile dependencies follow. This must be the last section in 84*6a54128fSAndroid Build Coastguard Worker# the Makefile.in file 85*6a54128fSAndroid Build Coastguard Worker# 86*6a54128fSAndroid Build Coastguard Workermain.o: $(srcdir)/main.c $(srcdir)/ext2ed.h 87*6a54128fSAndroid Build Coastguard Workergeneral_com.o: $(srcdir)/general_com.c $(srcdir)/ext2ed.h 88*6a54128fSAndroid Build Coastguard Workerinode_com.o: $(srcdir)/inode_com.c $(srcdir)/ext2ed.h 89*6a54128fSAndroid Build Coastguard Workerdir_com.o: $(srcdir)/dir_com.c $(srcdir)/ext2ed.h 90*6a54128fSAndroid Build Coastguard Workersuper_com.o: $(srcdir)/super_com.c $(srcdir)/ext2ed.h 91*6a54128fSAndroid Build Coastguard Workerdisk.o: $(srcdir)/disk.c $(srcdir)/ext2ed.h 92*6a54128fSAndroid Build Coastguard Workerwin.o: $(srcdir)/win.c $(srcdir)/ext2ed.h 93*6a54128fSAndroid Build Coastguard Workergroup_com.o: $(srcdir)/group_com.c $(srcdir)/ext2ed.h 94*6a54128fSAndroid Build Coastguard Workerfile_com.o: $(srcdir)/file_com.c $(srcdir)/ext2ed.h 95*6a54128fSAndroid Build Coastguard Workerblockbitmap_com.o: $(srcdir)/blockbitmap_com.c $(srcdir)/ext2ed.h 96*6a54128fSAndroid Build Coastguard Workerext2_com.o: $(srcdir)/ext2_com.c $(srcdir)/ext2ed.h 97*6a54128fSAndroid Build Coastguard Workerinodebitmap_com.o: $(srcdir)/inodebitmap_com.c $(srcdir)/ext2ed.h 98