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

📄 makefile

📁 检测文件的相似性的一个小程序!使用Linux系统编写
💻
字号:
CC       = gccCFLAGS   = -Wall -W -O3GOAL     = ssdeepLINK_OPT = # Where we get installedPREFIX = /usr/local# Directory where cross-compiliation tools live (see INSTALL for info)CR_BASE = $(HOME)/mingw32/mingw32/bin# You shouldn't need to change anything below this line#---------------------------------------------------------------------VERSION = 1.1# Comment out this line when debugging is done#CFLAGS += -D_DEBUG -O0 -ggdbCFLAGS += -DVERSION=\"$(VERSION)\"SRC = main.c edit_dist.c match.c engine.c helpers.c dig.c cycles.cOBJ = main.o edit_dist.o match.o engine.o helpers.o dig.o cycles.oHEADERS = Makefile main.hDOCS = COPYING CHANGES INSTALL FILEFORMAT $(GOAL).1 #---------------------------------------------------------------------all: linuxlinux: CFLAGS += -D__LINUX -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCElinux: $(GOAL)unix: $(GOAL)mac: $(GOAL)macg5: CFLAGS += -fastmacg5: $(GOAL)cross: CC = $(CR_BASE)/gcccross: CFLAGS += -staticcross: SUFFIX = .execross: LINK_OPT += -libertycross: $(GOAL)	$(CR_BASE)/strip $(GOAL)$(SUFFIX)$(GOAL): $(OBJ)	$(CC) $(CFLAGS) -o $(GOAL)$(SUFFIX) $(OBJ) $(LINK_OPT)$(OBJ): $(HEADERS)#---------------------------------------------------------------------install: $(GOAL)	install -d $(PREFIX)/bin $(PREFIX)/man/man1	install -m 755 $(GOAL) $(PREFIX)/bin	install -m 644 $(GOAL).1 $(PREFIX)/man/man1uninstall:	rm -f -- $(PREFIX)/bin/$(GOAL) $(PREFIX)/man/man1/$(GOAL).1#---------------------------------------------------------------------# Anything in the code that needs further attention is marked with the# letters 'RBF', which stand for "Remove Before Flight." This is similar# to how aircraft are marked with streamers to indicate maintaince is# required before the plane can fly. Typing 'make preflight' will do a# check for all RBF tags; thus showing the developer what needs to be# fixed before the program can be released.preflight:	@grep RBF $(SRC) *.h $(DOCS)nice:	rm -f *~clean: nice	rm -f $(OBJ) $(GOAL) $(GOAL).exe $(TAR_FILE).gz $(DEST_DIR).zip	rm -rf $(DEST_DIR) $(WINDOC)#---------------------------------------------------------------------# MAKING PACKAGES#-------------------------------------------------------------------------EXTRA_FILES =DEST_DIR = $(GOAL)-$(VERSION)TAR_FILE = $(DEST_DIR).tarPKG_FILES = $(SRC) $(HEADERS) $(DOCS) $(EXTRA_FILES)WINDOC = FILEFORMAT.txt CHANGES.txt README.txt COPYING.txtZIP_FILES = $(GOAL).exe $(WINDOC)# This packages me up to send to somebody elsepackage_dir:	rm -f $(TAR_FILE) $(TAR_FILE).gz	mkdir $(DEST_DIR)	cp $(PKG_FILES) $(DEST_DIR)package: package_dir	tar cvf $(TAR_FILE) $(DEST_DIR)	rm -rf $(DEST_DIR)	gzip $(TAR_FILE)win-doc:	man ./$(GOAL).1 | col -bx > README.txt	cp FILEFORMAT FILEFORMAT.txt	cp CHANGES CHANGES.txt	cp COPYING COPYING.txt	unix2dos $(WINDOC)ZIP_FLAGS=-r9internal: ZIP_FLAGS+= -e internal: worldworld: clean package_dir win-doc cross	zip $(ZIP_FLAGS) $(DEST_DIR).zip $(GOAL).exe $(WINDOC) $(DEST_DIR)	rm -rf $(WINDOC) $(DEST_DIR)

⌨️ 快捷键说明

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