📄 makefile
字号:
## $Revision: 1.14 $SHELL = /bin/shMAKE = make## =()<P = @<P>@>()=P = ## =()<CC = @<CC>@>()=CC = cc## =()<DEFS = @<DEFS>@>()=DEFS = -I../include## =()<CFLAGS = @<CFLAGS>@>()=CFLAGS = $(DEFS) -g## =()<LDFLAGS = @<LDFLAGS>@>()=LDFLAGS = -g## =()<LINTFLAGS = @<LINTFLAGS>@>()=LINTFLAGS = -b -h -z $(DEFS)## =()<LINTFILTER = @<LINTFILTER>@>()=LINTFILTER = | sed -n -f ../sedf.sun## =()<CTAGS = @<CTAGS>@>()=CTAGS = ctags -t -w## =()<PROF = @<PROF>@>()=PROF = -pg## =()<NEWSBIN = @<_PATH_NEWSBIN>@>()=NEWSBIN = /usr/contrib/newsOWNER = -O bin -G bin## =()<LIBS = @<LIBS>@>()=LIBS = LIBNEWS = ../libinn.aLINTLIB = ../llib-linn.lnSOURCES = convdate.c expire.c expireover.c fastrm.c grephistory.c \ makeactive.c makehistory.c newsrequeue.c prunehistory.cALL = convdate expire expireover fastrm grephistory \ makeactive makehistory newsrequeue prunehistoryall: $(ALL)install: $(NEWSBIN)/convdate $(NEWSBIN)/expire $(NEWSBIN)/expireover \ $(NEWSBIN)/fastrm $(NEWSBIN)/grephistory $(NEWSBIN)/makeactive \ $(NEWSBIN)/makehistory $(NEWSBIN)/makehistory \ $(NEWSBIN)/newsrequeue $(NEWSBIN)/prunehistoryclobber clean: rm -f *.o $(ALL) rm -f expirep expireoverp profiled rm -f all install linttags ctags: $(SOURCES) $(CTAGS) $(SOURCES) ../lib/*.c ../include/*.hconvdate: $(P) convdate.o $(LIBNEWS) $(CC) $(LDFLAGS) -o $@ convdate.o $(LIBNEWS) $(LIBS)expire: $(P) expire.o $(LIBNEWS) $(CC) $(LDFLAGS) -o $@ expire.o $(LIBNEWS) $(LIBS)expireover: $(P) expireover.o $(LIBNEWS) $(CC) $(LDFLAGS) -o $@ expireover.o $(LIBNEWS) $(LIBS)fastrm: $(P) fastrm.o $(LIBNEWS) $(CC) $(LDFLAGS) -o $@ fastrm.o $(LIBNEWS) $(LIBS)grephistory: $(P) grephistory.o $(LIBNEWS) $(CC) $(LDFLAGS) -o $@ grephistory.o $(LIBNEWS) $(LIBS)makeactive: $(P) makeactive.o $(LIBNEWS) $(CC) $(LDFLAGS) -o $@ makeactive.o $(LIBNEWS) $(LIBS)makehistory: $(P) makehistory.o $(LIBNEWS) $(CC) $(LDFLAGS) -o $@ makehistory.o $(LIBNEWS) $(LIBS)newsrequeue: $(P) newsrequeue.o $(LIBNEWS) $(CC) $(LDFLAGS) -o $@ newsrequeue.o $(LIBNEWS) $(LIBS)prunehistory: $(P) prunehistory.o $(LIBNEWS) $(CC) $(LDFLAGS) -o $@ prunehistory.o $(LIBNEWS) $(LIBS)lint: $(ALL) @rm -f lint lint $(LINTFLAGS) convdate.c $(LINTLIB) $(LINTFILTER) >lint lint $(LINTFLAGS) expire.c $(LINTLIB) $(LINTFILTER) >>lint lint $(LINTFLAGS) expireover.c $(LINTLIB) $(LINTFILTER) >>lint lint $(LINTFLAGS) fastrm.c $(LINTLIB) $(LINTFILTER) >>lint lint $(LINTFLAGS) grephistory.c $(LINTLIB) $(LINTFILTER) >>lint lint $(LINTFLAGS) makeactive.c $(LINTLIB) $(LINTFILTER) >>lint lint $(LINTFLAGS) makehistory.c $(LINTLIB) $(LINTFILTER) >>lint lint $(LINTFLAGS) newsrequeue.c $(LINTLIB) $(LINTFILTER) >>lint lint $(LINTFLAGS) prunehistory.c $(LINTLIB) $(LINTFILTER) >>lint../include/dbz.h: (cd ../lib ; $(MAKE) ../include/dbz.h)$(LIBNEWS) $(LINTLIB): (cd ../lib ; $(MAKE) install)## Profiling. The rules are a bit brute-force, but good enough.profiled: expirep expireoverp date >$@NEWFLAGS = CFLAGS="$(CFLAGS) $(PROF)" LDFLAGS="$(LDFLAGS) $(PROF)"expirep: expire.c rm -f expire.o $(MAKE) expire $(NEWFLAGS) LIBNEWS=../libinn_p.a mv expire expirep rm -f expire.oexpireoverp: expireover.c rm -f expireover.o $(MAKE) expireover $(NEWFLAGS) LIBNEWS=../libinn_p.a mv expireover expireoverp rm -f expireover.o##.SUFFIXES: .c .src.c.src: #load $(CFLAGS) $<## Low-level install actions.$(NEWSBIN)/convdate: convdate $(SHELL) ../installit.sh $(OWNER) -m 0555 -b .OLD $? $@$(NEWSBIN)/expire: expire $(SHELL) ../installit.sh $(OWNER) -m 0555 -b .OLD $? $@$(NEWSBIN)/expireover: expireover $(SHELL) ../installit.sh $(OWNER) -m 0555 -b .OLD $? $@$(NEWSBIN)/fastrm: fastrm $(SHELL) ../installit.sh $(OWNER) -m 0555 -b .OLD $? $@$(NEWSBIN)/grephistory: grephistory $(SHELL) ../installit.sh $(OWNER) -m 0555 -b .OLD $? $@$(NEWSBIN)/makeactive: makeactive $(SHELL) ../installit.sh $(OWNER) -m 0555 -b .OLD $? $@$(NEWSBIN)/makehistory: makehistory $(SHELL) ../installit.sh $(OWNER) -m 0555 -b .OLD $? $@$(NEWSBIN)/newsrequeue: newsrequeue $(SHELL) ../installit.sh $(OWNER) -m 0555 -b .OLD $? $@$(NEWSBIN)/prunehistory: prunehistory $(SHELL) ../installit.sh $(OWNER) -m 0555 -b .OLD $? $@## Dependencies. Default list, below, is probably good enough.depend: Makefile $(SOURCES) makedepend $(DEFS) $(SOURCES)# DO NOT DELETE THIS LINE -- make depend depends on it.convdate.o: ../include/clibrary.hconvdate.o: ../include/configdata.hconvdate.o: ../include/libinn.hconvdate.o: ../include/macros.hexpire.o: ../include/clibrary.hexpire.o: ../include/configdata.hexpire.o: ../include/dbz.hexpire.o: ../include/inndcomm.hexpire.o: ../include/libinn.hexpire.o: ../include/macros.hexpire.o: ../include/paths.hexpire.o: ../include/qio.hexpireover.o: ../include/clibrary.hexpireover.o: ../include/configdata.hexpireover.o: ../include/libinn.hexpireover.o: ../include/macros.hexpireover.o: ../include/mydir.hexpireover.o: ../include/paths.hexpireover.o: ../include/qio.hfastrm.o: ../include/clibrary.hfastrm.o: ../include/configdata.hfastrm.o: ../include/libinn.hfastrm.o: ../include/macros.hfastrm.o: ../include/mydir.hgrephistory.o: ../include/clibrary.hgrephistory.o: ../include/configdata.hgrephistory.o: ../include/dbz.hgrephistory.o: ../include/libinn.hgrephistory.o: ../include/macros.hgrephistory.o: ../include/paths.hmakeactive.o: ../include/clibrary.hmakeactive.o: ../include/configdata.hmakeactive.o: ../include/libinn.hmakeactive.o: ../include/macros.hmakeactive.o: ../include/mydir.hmakeactive.o: ../include/paths.hmakehistory.o: ../include/clibrary.hmakehistory.o: ../include/configdata.hmakehistory.o: ../include/dbz.hmakehistory.o: ../include/libinn.hmakehistory.o: ../include/macros.hmakehistory.o: ../include/paths.hmakehistory.o: ../include/qio.hnewsrequeue.o: ../include/clibrary.hnewsrequeue.o: ../include/configdata.hnewsrequeue.o: ../include/dbz.hnewsrequeue.o: ../include/libinn.hnewsrequeue.o: ../include/macros.hnewsrequeue.o: ../include/paths.hnewsrequeue.o: ../include/qio.hprunehistory.o: ../include/clibrary.hprunehistory.o: ../include/configdata.hprunehistory.o: ../include/dbz.hprunehistory.o: ../include/libinn.hprunehistory.o: ../include/macros.hprunehistory.o: ../include/paths.hprunehistory.o: ../include/paths.h
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -