mirror of
https://github.com/Hopiu/linkchecker.git
synced 2026-03-27 11:10:28 +00:00
Add htmlsax.so target for local build
Add target to build htmlsax.so locally. Also add include path for local python SVN repository for testing. git-svn-id: https://linkchecker.svn.sourceforge.net/svnroot/linkchecker/trunk/linkchecker@3678 e7d03fd6-7b0d-0410-9947-9c21f3af8025
This commit is contained in:
parent
91a0aad5d8
commit
370bd058ea
1 changed files with 7 additions and 4 deletions
|
|
@ -1,13 +1,16 @@
|
|||
# this parser needs flex >= 2.5.xx from http://lex.sf.net/
|
||||
# for reentrant bison parser support!
|
||||
# for reentrant bison parser support
|
||||
FLEX = flex
|
||||
PYVER = 2.4
|
||||
PYTHON = python$(PYVER)
|
||||
PYINCLUDE=-I/usr/include/python2.4
|
||||
#PYINCLUDE="-I/home/calvin/src/python-gitsvn -I/home/calvin/src/python-gitsvn/Include"
|
||||
|
||||
all: htmllex.c htmlparse.c
|
||||
|
||||
htmlsax.so: htmllex.o htmlparse.o s_util.o
|
||||
gcc -pthread -shared $^ -o htmlsax.so
|
||||
|
||||
%.o: %.c
|
||||
gcc -g -std=c99 -O3 -Wall -pedantic -Wstrict-prototypes -fPIC -I. -I/usr/include/$(PYTHON) -c $< -o $@
|
||||
gcc -g -std=c99 -O3 -Wall -pedantic -Wstrict-prototypes -fPIC -I. $(PYINCLUDE) -c $< -o $@
|
||||
|
||||
htmlparse.h htmlparse.c: htmlparse.y htmlsax.h
|
||||
bison htmlparse.y
|
||||
|
|
|
|||
Loading…
Reference in a new issue