makefile

来自「网页抓取程序」· 代码 · 共 37 行

TXT
37
字号
#
#Makefile
#

VERSION      = 0.7

OWS          = openwebspider

OWSSOURCE    = openwebspider-0.7.c

CC           = gcc
#MYSQLFLAGS   = -g -L /usr/local/mysql/lib/ -lmysqlclient -lnsl -lm
MYSQLFLAGS	= `mysql_config --cflags --libs`


all: openwebspider mod_regexfilter mod_pdf

openwebspider :
	$(CC) $(OWSSOURCE) -o $(OWS) $(MYSQLFLAGS) -lpthread -ldl -rdynamic -Wall -O2

mod_regexfilter :
	$(CC) -g -c modules/regexFilter/regexFilter.c
	$(CC) -g -shared -W1,-soname,regexFilter.so.0 -o modules/regexFilter/regexFilter.so regexFilter.o -lc

# mod_pdf needs pdftotext
mod_pdf	:
	$(CC) -g -c modules/mod_pdf/mod_pdf.c
	$(CC) -g -shared -W1,-soname,mod_pdf.so.0 -o modules/mod_pdf/mod_pdf.so mod_pdf.o -lc

clean :
	rm -f $(PROG)
	rm -f *.o $(OWS)

#
#
#

⌨️ 快捷键说明

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