View | Details | Raw Unified | Return to bug 48474
Collapse All | Expand All

(-)a/highlight/extras/swig/makefile (-1 / +2 lines)
Lines 9-14 LUA_CFLAGS=$(shell pkg-config --cflags lua) Link Here
9
LUA_LIBS=$(shell pkg-config --libs lua)
9
LUA_LIBS=$(shell pkg-config --libs lua)
10
PYTHON_CFLAGS=$(shell pkg-config --cflags python-2.7)
10
PYTHON_CFLAGS=$(shell pkg-config --cflags python-2.7)
11
PERL_INC=$(shell perl -MExtUtils::Embed -eccopts)
11
PERL_INC=$(shell perl -MExtUtils::Embed -eccopts)
12
PERL_LIBS=$(shell perl -MExtUtils::Embed -eldopts)
12
PHP_INC=$(shell php-config --includes)
13
PHP_INC=$(shell php-config --includes)
13
14
14
lib-stamp:
15
lib-stamp:
Lines 29-35 perl: lib-stamp Link Here
29
php: lib-stamp
30
php: lib-stamp
30
	swig -c++ -php -o highlight_wrap.cpp highlight.i
31
	swig -c++ -php -o highlight_wrap.cpp highlight.i
31
	${CXX} ${CFLAGS} -c highlight_wrap.cpp ${LUA_CFLAGS} ${PHP_INC} -I${HL_INC}
32
	${CXX} ${CFLAGS} -c highlight_wrap.cpp ${LUA_CFLAGS} ${PHP_INC} -I${HL_INC}
32
	${CXX} -shared -s highlight_wrap.o -L${HL_SRC} -lhighlight ${LUA_LIBS} -o highlight.so
33
	${CXX} -shared -s highlight_wrap.o -L${HL_SRC} -lhighlight ${LUA_LIBS} ${PERL_LIBS} -o highlight.so
33
34
34
clean: python-clean perl-clean php-clean
35
clean: python-clean perl-clean php-clean
35
	rm -f *-stamp
36
	rm -f *-stamp

Return to bug 48474