⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 make.honey

📁 早期freebsd实现
💻 HONEY
字号:
#!/bin/make -f# pathalias -- by steve bellovin, as told to peter honeyman### configuration section#### if you can't or don't intend to use dbm files,# don't bother with DBM or makedbDBM = -ldbm# or if you roll your own ...# DBM = dbm.o#### where is getopt (if not in the c library)?# GETOPT = -lgetopt#### where is the resolver (if not in the c library)?RESOLV = -lresolv### end of configuration section CC = cc -gCFLAGS =  LDFLAGS =$(DBM) $(GETOPT) $(RESOLV)YFLAGS = -dDYYDEBUG=0OBJ = addlink.o addnode.o domain.o local.o main.o mapit.o mapaux.o mem.o parse.o printit.oOFILES = addlink.O addnode.O domain.O local.O main.O mapit.O mapaux.O mem.O parse.O printit.OHDRS = def.h config.hCSRC = addlink.c addnode.c domain.c local.c main.c mapit.c mapaux.c mem.c printit.cLSRC = $(CSRC) parse.cSRC = $(CSRC) parse.y makedb.cpathalias: & $(OBJ)	$(CC) $(OBJ) $(LDFLAGS) -o pathaliasall: pathalias makedb$(OBJ):	$(HDRS)parse.c: parse.y $(HDRS)	$(YACC) $(YFLAGS) parse.y	mv y.tab.c parse.c#	echo '#define YYDEBUG' > parse.c#	sed -e '/^# line/d' -e 's/yydebug = 0/yydebug = $(YYDEBUG)/' y.tab.c >> parse.cmakedb: makedb.o	$(CC) makedb.o $(LDFLAGS) -o makedbmakedb.o: config.hclean:	rm -f *.o y.tab.? parse.ctags: $(SRC) $(HDRS)	ctags -w $(SRC) $(HDRS)bundle: README CHANGES pathalias.8 Makefile ${HDRS} ${SRC} make.honey	@bundle README CHANGES pathalias.8 Makefile ${HDRS} ${SRC} make.honeybundle1: README CHANGES pathalias.8 Makefile make.honey ${HDRS}	@bundle README CHANGES pathalias.8 Makefile make.honey ${HDRS} bundle2: addlink.c addnode.c domain.c local.c main.c	@bundle addlink.c addnode.c domain.c local.c main.cbundle3: mapaux.c mapit.c	@bundle mapaux.c mapit.c bundle4: mem.c printit.c parse.y makedb.c	@bundle mem.c printit.c parse.y makedb.c ftp:	@make -s bundle | compress > /usr/ftp/usr/honey/pathalias/pathalias.Zmake.honey: makefile	@cp makefile make.honeylint:	$(LSRC)	lint -hbu $(CFLAGS) $(LSRC)	lint makedb.c# the remainder is site specific.LOCAL = paths/citi # paths/internetFILES = uumap/* $(LOCAL)AVOID =# map output (input, really) to lower case; verbose; terminal domainsARGS = -iDIPARGS=$(ARGS) $(AVOID) $(FILES)# desperation debugging -- examine the costs.costs:	pathalias -icvvD ${PARGS} 2>error.costs | awk '{printf("%s\t%s\t%s\n", $$2, $$1, $$3)}' | sort -o pa.costs # make one BIG file.  a BIG bad idea.cat:	for i in $(FILES); do echo "file {$$i}"; cat $$i; echo 'private {}'; done > CAT# make a pathparse database.  -g is undocumented.edges:	pathalias -g edges $(PARGS) 2>ERRORS > edges.hosts#	makedb edges pa# let dns do its jobPOSTPROC = egrep -v '(\.(com|edu|mil|gov|net|org|arpa|int|[a-z][a-z])	)' | sort# round up the usual suspectsciti doom: $(LOCAL) uumap	time pathalias -l $@ $(PARGS) | $(POSTPROC) > $@

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -