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

📄 makefile

📁 These files contain a port, to Python of the inexact string matching functionality of agrep.
💻
字号:
VERSION=1.2PYTHON_VERSION=2.3# Edit this to point to the directory tree in which Python is foundPYTHONROOT=/sw# PYTHONROOT=/usr/local# LinuxCC = gcc# When testing# Uncomment one of these when creating C only version for testing (see also output below)# CFLAGS = -g -Wall -Wshaddow  -DDEBUG -DDEBUGDEBUG   #  for agrepy_test# CFLAGS = -g #  for agrepy_test (free standing C application)OPTFLAGS =  -O3 -funroll-loops# The following flag is relevant to Linux but is not not recognized# by MacOS X  posix compiler so comment it out# LDFLAGS = -shared# Some compilers (not Mac) insist you add -fpic when compiling to get .so# LDFLAGS = -shared -fPIC# For Mac OSX# You will need to make the final argument refer to where the binary livesLDFLAGS = -bundle -bundle_loader $(PYTHONROOT)/bin/python$(PYTHON_VERSION)CFLAGS= -DPYTHON $(FPIC) $(OPTFLAGS)INCLUDES = -I$(PYTHONROOT)/include/python$(PYTHON_VERSION)ALLOBJS = sagrepy.o lagrepy.o agrepy.o agrepy_wrap.oTESTOBJS = sagrepy.o lagrepy.o agrepy.o# Uncomment output : agrepy_test  when building C only version for testingoutput :  _agrepy.so# output : agrepy_test# This is a C-only implementation for testing purposesagrepy_test:  $(TESTOBJS)	$(CC) $(CFLAGS) -DSTANDALONE -o agrepy_test $(TESTOBJS)_agrepy.so : $(ALLOBJS)	$(CC) $(LDFLAGS)  $(ALLOBJS) -o $@%.o: %.c	$(CC) $(CFLAGS) -c $< $(INCLUDES)agrepy_wrap.c : agrepy.i	swig -python agrepy.i$(ALLOBJS): agrepy.hclean: 	rm -f $(ALLOBJS) agrepy_wrap.docnew:	rm -f $(ALLOBJS)	make tarfile:	mkdir agrepy_${VERSION}	cp `cat FILES` agrepy_${VERSION}	cp FILES agrepy_${VERSION}	tar cvf agrepy_${VERSION}.tar agrepy_${VERSION}	gzip agrepy_${VERSION}.tar	/bin/rm -r agrepy_${VERSION}

⌨️ 快捷键说明

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