makefile
来自「信息检索中常用的技术」· 代码 · 共 45 行
TXT
45 行
## Makefile for a stop list filter program.# Written by and tested by Christopher Fox 4/10/91## Directives:# stopper A program to generate a stop list and filter a file.# This program assumes that a file called "stop.wrd"# exists and contains stop words, one per line.# The program is executed by typing# stopper <filename># where <filename> is an ASCII file to be filtered.## all (default) Make the program above.## regression Execute a regression test. The stopper program# should write a list of filtered words to stdout.## lint Run the stopper code through lint#CC=gccCFLAGS=-OLDFLAGS=LIBS=all: stopperstopper: stopper.o stop.o strlist.o $(CC) -o stopper stopper.o stop.o strlist.ostopper.o: stopper.c stop.h strlist.h $(CC) $(CFLAGS) -c -g stopper.cstop.o: stop.c stop.h strlist.h $(CC) $(CFLAGS) -c -g stop.cstrlist.o: strlist.c strlist.h $(CC) $(CFLAGS) -c -g strlist.clint: lint stopper.c stop.c strlist.cregression: stopper testfile stop.wrd ./stopper testfile
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?