📄 makefile.am
字号:
## Process this file with automake to produce Makefile.in# Package: fistgen# Level: Top level Makefile# Author: Erez Zadok#SUBDIRS = .# temporary tests override SUBDIRS#SUBDIRS = foo# programssbin_PROGRAMS = fistgen# man pagesman_MANS = fistgen.8# headers this depends on, not to be installednoinst_HEADERS = fistgen.h# sourcesfistgen_SOURCES = \ bdt.c \ dollar_vars.c \ ecl.c \ expand.c \ fxns.c \ gen.c \ main.c \ misc.c \ pct_vars.c \ stk.c \ sym.c \ validate.cEXTRA_fistgen_OBJECTS = fparse.o ftok.o wparse.o wtok.oLDADD = $(EXTRA_fistgen_OBJECTS)# must manually add f/lex library to LIBS, and not to LDADD.LIBS = @LIBS@ @LEXLIB@# additional files to distribute and clean# extra fist files to distributeEXTRA_DIST_FIST = \ cryptfs/bf_cfb64.c \ cryptfs/bf_enc.c \ cryptfs/bf_locl.h \ cryptfs/bf_pi.h \ cryptfs/bf_skey.c \ cryptfs/blowfish.h \ cryptfs/cryptfs.fist \ cryptfs/fist_getiv.c \ cryptfs/fist_setkey.c \ \ copyfs/copyfs.fist \ copyfs/copyfs.mk \ copyfs/sca_code.c \ copyfs/sca_code.h \ \ gzipfs/adler32.c \ gzipfs/deflate.c \ gzipfs/deflate.h \ gzipfs/infblock.c \ gzipfs/infblock.h \ gzipfs/infcodes.c \ gzipfs/infcodes.h \ gzipfs/inffast.c \ gzipfs/inffast.h \ gzipfs/inffixed.h \ gzipfs/inflate.c \ gzipfs/inftrees.c \ gzipfs/inftrees.h \ gzipfs/infutil.c \ gzipfs/infutil.h \ gzipfs/trees.c \ gzipfs/trees.h \ gzipfs/zconf.h \ gzipfs/zlib.h \ gzipfs/zutil.c \ gzipfs/zutil.h \ gzipfs/gzipfs.fist \ gzipfs/gzipfs.mk \ gzipfs/sca_code.c \ gzipfs/sca_code.h \ \ uuencodefs/sca_code.c \ uuencodefs/sca_code.h \ uuencodefs/uuencodefs.fist \ uuencodefs/uuencodefs.mk \ \ tests/aclfs.fist \ tests/base0fs.fist \ tests/base1fs.fist \ tests/base2fs.fist \ tests/base3fs.fist \ tests/foofs.fist \ tests/rot13fs.fist \ tests/rot1fs.fist \ tests/snoopfs.fist \ tests/wrapfs.fistEXTRA_DIST_PATCHES = \ patches/README \ patches/fist-2.2.3.diff \ patches/fist-2.2.5.diff \ patches/fist-2.2.6.diff \ patches/fist-2.2.7.diff \ patches/fist-2.2.10.diff \ patches/fist-2.2.11.diff \ patches/fist-2.2.12.diff \ patches/fist-2.2.13.diff \ patches/fist-2.2.14.diff \ patches/fist-2.2.15.diff \ patches/fist-2.2.16.diff \ patches/fist-2.2.18.diff \ patches/fist-2.2.19.diff \ patches/fist-2.3.99-pre9.diffEXTRA_DIST_TEMPLATES = \ templates/FreeBSD-3.3-RELEASE/Makefile \ templates/FreeBSD-3.3-RELEASE/TODO \ templates/FreeBSD-3.3-RELEASE/aux.c \ templates/FreeBSD-3.3-RELEASE/extern.h \ templates/FreeBSD-3.3-RELEASE/fist.h \ templates/FreeBSD-3.3-RELEASE/fist_ioctl.c \ templates/FreeBSD-3.3-RELEASE/getmntopts.c \ templates/FreeBSD-3.3-RELEASE/mntopts.h \ templates/FreeBSD-3.3-RELEASE/mount_wrapfs.c \ templates/FreeBSD-3.3-RELEASE/print.c \ templates/FreeBSD-3.3-RELEASE/subr.c \ templates/FreeBSD-3.3-RELEASE/vfs.c \ templates/FreeBSD-3.3-RELEASE/vnode.c \ templates/FreeBSD-3.3-RELEASE/wrapfs.h \ \ templates/FreeBSD-3.4-RELEASE/Makefile \ templates/FreeBSD-3.4-RELEASE/TODO \ templates/FreeBSD-3.4-RELEASE/aux.c \ templates/FreeBSD-3.4-RELEASE/extern.h \ templates/FreeBSD-3.4-RELEASE/fist.h \ templates/FreeBSD-3.4-RELEASE/fist_ioctl.c \ templates/FreeBSD-3.4-RELEASE/getmntopts.c \ templates/FreeBSD-3.4-RELEASE/mntopts.h \ templates/FreeBSD-3.4-RELEASE/mount_wrapfs.c \ templates/FreeBSD-3.4-RELEASE/print.c \ templates/FreeBSD-3.4-RELEASE/subr.c \ templates/FreeBSD-3.4-RELEASE/vfs.c \ templates/FreeBSD-3.4-RELEASE/vnode.c \ templates/FreeBSD-3.4-RELEASE/wrapfs.h \ \ templates/FreeBSD-4.0-RELEASE/Makefile \ templates/FreeBSD-4.0-RELEASE/TODO \ templates/FreeBSD-4.0-RELEASE/aux.c \ templates/FreeBSD-4.0-RELEASE/extern.h \ templates/FreeBSD-4.0-RELEASE/fist.h \ templates/FreeBSD-4.0-RELEASE/fist_ioctl.c \ templates/FreeBSD-4.0-RELEASE/getmntopts.c \ templates/FreeBSD-4.0-RELEASE/mntopts.h \ templates/FreeBSD-4.0-RELEASE/mount_wrapfs.c \ templates/FreeBSD-4.0-RELEASE/print.c \ templates/FreeBSD-4.0-RELEASE/subr.c \ templates/FreeBSD-4.0-RELEASE/vfs.c \ templates/FreeBSD-4.0-RELEASE/vnode.c \ templates/FreeBSD-4.0-RELEASE/wrapfs.h \ \ templates/FreeBSD-4.5-RELEASE/ChangeLog \ templates/FreeBSD-4.5-RELEASE/Makefile \ templates/FreeBSD-4.5-RELEASE/aux.c \ templates/FreeBSD-4.5-RELEASE/extern.h \ templates/FreeBSD-4.5-RELEASE/fist.h \ templates/FreeBSD-4.5-RELEASE/fist_ioctl.c \ templates/FreeBSD-4.5-RELEASE/getmntopts.c \ templates/FreeBSD-4.5-RELEASE/mmap.c \ templates/FreeBSD-4.5-RELEASE/mntopts.h \ templates/FreeBSD-4.5-RELEASE/mount_wrapfs.c \ templates/FreeBSD-4.5-RELEASE/print.c \ templates/FreeBSD-4.5-RELEASE/subr.c \ templates/FreeBSD-4.5-RELEASE/vfs.c \ templates/FreeBSD-4.5-RELEASE/vnode.c \ templates/FreeBSD-4.5-RELEASE/wrapfs.h \ \ templates/FreeBSD-4.6-RELEASE/ChangeLog \ templates/FreeBSD-4.6-RELEASE/Makefile \ templates/FreeBSD-4.6-RELEASE/aux.c \ templates/FreeBSD-4.6-RELEASE/extern.h \ templates/FreeBSD-4.6-RELEASE/fist.h \ templates/FreeBSD-4.6-RELEASE/fist_ioctl.c \ templates/FreeBSD-4.6-RELEASE/getmntopts.c \ templates/FreeBSD-4.6-RELEASE/mmap.c \ templates/FreeBSD-4.6-RELEASE/mntopts.h \ templates/FreeBSD-4.6-RELEASE/mount_wrapfs.c \ templates/FreeBSD-4.6-RELEASE/print.c \ templates/FreeBSD-4.6-RELEASE/subr.c \ templates/FreeBSD-4.6-RELEASE/vfs.c \ templates/FreeBSD-4.6-RELEASE/vnode.c \ templates/FreeBSD-4.6-RELEASE/wrapfs.h \ \ templates/FreeBSD-5.0-RELEASE/ChangeLog \ templates/FreeBSD-5.0-RELEASE/Makefile \ templates/FreeBSD-5.0-RELEASE/TODO \ templates/FreeBSD-5.0-RELEASE/aux.c \ templates/FreeBSD-5.0-RELEASE/extern.h \ templates/FreeBSD-5.0-RELEASE/fist.h \ templates/FreeBSD-5.0-RELEASE/fist_ioctl.c \ templates/FreeBSD-5.0-RELEASE/getmntopts.c \ templates/FreeBSD-5.0-RELEASE/mntopts.h \ templates/FreeBSD-5.0-RELEASE/mount_wrapfs.c \ templates/FreeBSD-5.0-RELEASE/print.c \ templates/FreeBSD-5.0-RELEASE/subr.c \ templates/FreeBSD-5.0-RELEASE/vfs.c \ templates/FreeBSD-5.0-RELEASE/vnode.c \ templates/FreeBSD-5.0-RELEASE/wrapfs.h \ \ templates/Linux-2.2/ChangeLog \ templates/Linux-2.2/Makefile \ templates/Linux-2.2/WRAPFS-TODO \ templates/Linux-2.2/attach.c \ templates/Linux-2.2/aux.c \ templates/Linux-2.2/dentry.c \ templates/Linux-2.2/doit.sh \ templates/Linux-2.2/file.c \ templates/Linux-2.2/fist.h \ templates/Linux-2.2/fist_ioctl.c \ templates/Linux-2.2/inode.c \ templates/Linux-2.2/kwhich \ templates/Linux-2.2/main.c \ templates/Linux-2.2/print.c \ templates/Linux-2.2/subr.c \ templates/Linux-2.2/super.c \ templates/Linux-2.2/testit.sh \ templates/Linux-2.2/undoit.sh \ templates/Linux-2.2/vm_area.c \ templates/Linux-2.2/wrapfs.h \ \ templates/Linux-2.3/ChangeLog \ templates/Linux-2.3/Makefile \ templates/Linux-2.3/Makefile-4-kernel \ templates/Linux-2.3/WRAPFS-TODO \ templates/Linux-2.3/aux.c \ templates/Linux-2.3/dentry.c \ templates/Linux-2.3/doit.sh \ templates/Linux-2.3/file.c \ templates/Linux-2.3/fist.h \ templates/Linux-2.3/fist_ioctl.c \ templates/Linux-2.3/inode.c \ templates/Linux-2.3/main.c \ templates/Linux-2.3/mmap.c \ templates/Linux-2.3/print.c \ templates/Linux-2.3/sca_aux.c \ templates/Linux-2.3/sca_aux.h \ templates/Linux-2.3/sca_list_idx.c \ templates/Linux-2.3/sca_mk_idx.c \ templates/Linux-2.3/sca_read.c \ templates/Linux-2.3/sca_write.c \ templates/Linux-2.3/subr.c \ templates/Linux-2.3/super.c \ templates/Linux-2.3/testit.sh \ templates/Linux-2.3/undoit.sh \ templates/Linux-2.3/vm_area.c \ templates/Linux-2.3/wrapfs.h \ \ templates/Linux-2.4/ATTACH-TODO.txt \ templates/Linux-2.4/ChangeLog \ templates/Linux-2.4/Makefile \ templates/Linux-2.4/Makefile-4-kernel \ templates/Linux-2.4/README.attach \ templates/Linux-2.4/WRAPFS-TODO \ templates/Linux-2.4/attach.c \ templates/Linux-2.4/aux.c \ templates/Linux-2.4/dentry.c \ templates/Linux-2.4/doit-nfs.sh \ templates/Linux-2.4/doit.sh \ templates/Linux-2.4/file.c \ templates/Linux-2.4/fist.h \ templates/Linux-2.4/fist_ioctl.c \ templates/Linux-2.4/inode.c \ templates/Linux-2.4/main.c \ templates/Linux-2.4/mmap.c \ templates/Linux-2.4/print.c \ templates/Linux-2.4/sca_aux.c \ templates/Linux-2.4/sca_aux.h \ templates/Linux-2.4/sca_list_idx.c \ templates/Linux-2.4/sca_mk_idx.c \ templates/Linux-2.4/sca_read.c \ templates/Linux-2.4/sca_write.c \ templates/Linux-2.4/subr.c \ templates/Linux-2.4/super.c \ templates/Linux-2.4/testit.sh \ templates/Linux-2.4/undoit.sh \ templates/Linux-2.4/vm_area.c \ templates/Linux-2.4/wrapfs.h \ \ templates/SunOS-5.6/ChangeLog \ templates/SunOS-5.6/Makefile \ templates/SunOS-5.6/TODO \ templates/SunOS-5.6/aux.c \ templates/SunOS-5.6/fist.h \ templates/SunOS-5.6/fist_ioctl.c \ templates/SunOS-5.6/fist_mount.c \ templates/SunOS-5.6/fist_statvfs.c \ templates/SunOS-5.6/fist_umount.c \ templates/SunOS-5.6/ht.c \ templates/SunOS-5.6/mmap.c \ templates/SunOS-5.6/print.c \ templates/SunOS-5.6/subr.c-OFF \ templates/SunOS-5.6/vfs.c \ templates/SunOS-5.6/vnode.c \ templates/SunOS-5.6/wrapfs.h \ templates/SunOS-5.6/doit.sh \ templates/SunOS-5.6/testit.sh \ templates/SunOS-5.6/undoit.sh \ \ templates/SunOS-5.7/ChangeLog \ templates/SunOS-5.7/Makefile \ templates/SunOS-5.7/TODO \ templates/SunOS-5.7/aux.c \ templates/SunOS-5.7/fist.h \ templates/SunOS-5.7/fist_ioctl.c \ templates/SunOS-5.7/fist_mount.c \ templates/SunOS-5.7/fist_statvfs.c \ templates/SunOS-5.7/fist_umount.c \ templates/SunOS-5.7/ht.c \ templates/SunOS-5.7/mmap.c \ templates/SunOS-5.7/print.c \ templates/SunOS-5.7/subr.c-OFF \ templates/SunOS-5.7/vfs.c \ templates/SunOS-5.7/vnode.c \ templates/SunOS-5.7/wrapfs.h \ templates/SunOS-5.7/doit.sh \ templates/SunOS-5.7/testit.sh \ templates/SunOS-5.7/undoit.shEXTRA_DIST_M4 = \ m4/HEADER \ m4/TRAILER \ m4/host_macros.m4 \ m4/package_bugreport.m4 \ m4/package_name.m4 \ m4/package_version.m4EXTRA_DIST = \ BUGS \ basename.c \ bootstrap \ depcomp \ dirname.c \ fparse.y \ ftok.l \ tasks \ wparse.y \ wtok.l \ stamp-h.in \ $(man_MANS) \ $(EXTRA_DIST_FIST) \ $(EXTRA_DIST_PATCHES) \ $(EXTRA_DIST_TEMPLATES) \ $(EXTRA_DIST_M4)CLEANFILES = ftok.c fparse.c fparse.h wtok.c wparse.c wparse.hDISTCLEANFILES =# do not distribute files that should be generated by lex/yacc locallydist-hook: @echo "Removing yacc/lex-generated files..." (cd $(distdir) && rm -f $(CLEANFILES)) @echo "Protecting distribution directories..." chmod -R go-w $(distdir)# run yacc with -d flagAM_YFLAGS = -d# yacc/lex rulesftok.o: fparse.hftok.c: ftok.l $(LEX) -o$@ -Pfyy $?fparse.c fparse.h: fparse.y $(YACC) -d -p fyy -b fparse $? mv fparse.tab.c fparse.c mv fparse.tab.h fparse.hwtok.o: wparse.hwtok.c: wtok.l $(LEX) -o$@ -Pwyy $?wparse.c wparse.h: wparse.y $(YACC) -d -p wyy -b wparse $? mv wparse.tab.c wparse.c mv wparse.tab.h wparse.h# dependencies$(OBJECTS) $(EXTRA_amd_OBJECTS): \ config.h \ fistgen.h \ $(noinst_HEADERS)################################################################################# rules for testing various thingsALL_FIST_FILES= \ tests/aclfs.fist \ tests/base0fs.fist \ tests/base1fs.fist \ tests/base2fs.fist \ tests/base3fs.fist \ tests/rot13fs.fist \ tests/rot1fs.fist \ tests/snoopfs.fist \ tests/wrapfs.fist \ cryptfs/cryptfs.fist \ ncryptfs/ncryptfs.fistALL_SCA_FILES= \ copyfs/copyfs.fist \ uuencodefs/uuencodefs.fist \ gzipfs/gzipfs.fistgenall: fistgen for i in ${ALL_FIST_FILES}; do \ echo ${top_builddir}/fistgen ${FISTGEN_FLAGS} ${top_srcdir}/$$i; \ ${top_builddir}/fistgen ${FISTGEN_FLAGS} ${top_srcdir}/$$i; \ donegensca: fistgen for i in ${ALL_SCA_FILES}; do \ echo ${top_builddir}/fistgen ${FISTGEN_FLAGS} ${top_srcdir}/$$i; \ ${top_builddir}/fistgen ${FISTGEN_FLAGS} ${top_srcdir}/$$i; \ done# test a single fist file, useful for testing the parser and code generatortest: fistgen ${top_builddir}/fistgen ${FISTGEN_FLAGS} ${top_srcdir}/gzipfs/gzipfs (cd out/Linux-2.3/gzipfs && ${MAKE} ${MFLAGS})testgzipfs: fistgen ${top_builddir}/fistgen ${FISTGEN_FLAGS} ${top_srcdir}/gzipfs/gzipfs.fist################################################################################# Personal maintainer rules by Erez Zadok# make a snapshots and put them in the ftp snapshots directoryFTPTOP=/proj/bank/ftp/fistsnapshot: dist install-snapshotinstall-snapshot: snap=`/bin/ls -1 fistgen*.tar.gz` && \ echo COPYING SNAPSHOTS: $$snap && \ cp -pu $$snap $(FTPTOP)/snapshots && \ rm -f $(FTPTOP)/fistgen-snapshot.tar.gz && \ ln -s snapshots/$$snap $(FTPTOP)/fistgen-snapshot.tar.gz && \ (cd $(FTPTOP) && make) && \ (cd $(FTPTOP)/snapshots && make)test-snapshot: dist mv -f fistgen*.tar.gz /proj/bank/ftp/private/ezk##############################################################################
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -