mirror of
https://github.com/Hopiu/linkchecker.git
synced 2026-03-21 08:20:25 +00:00
git-svn-id: https://linkchecker.svn.sourceforge.net/svnroot/linkchecker/trunk/linkchecker@995 e7d03fd6-7b0d-0410-9947-9c21f3af8025
23 lines
482 B
Makefile
23 lines
482 B
Makefile
# use beta flex from http://lex.sf.net/ for reentrant
|
|
# bison parser support
|
|
FLEX=flex
|
|
PYTHON=python2.3
|
|
|
|
all: htmllex.c htmlparse.c
|
|
|
|
%.o: %.c
|
|
gcc -g -O -Wall -pedantic -Wstrict-prototypes -fPIC -I. -I/usr/include/$(PYTHON) -c $< -o $@
|
|
|
|
htmlparse.h htmlparse.c: htmlparse.y htmlsax.h
|
|
bison htmlparse.y
|
|
|
|
htmllex.l: htmlparse.h
|
|
|
|
htmllex.c: htmllex.l htmlsax.h
|
|
$(FLEX) htmllex.l
|
|
|
|
test: testsax
|
|
cat test.html | ./testsax
|
|
|
|
clean:
|
|
rm -f htmlparse.c htmlparse.h htmllex.c *.o *.output
|