Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 522936 | Differences between
and this patch

Collapse All | Expand All

(-)highlight-3.18/examples/swig/makefile.orig (-5 / +5 lines)
Lines 12-35 Link Here
12
PHP_INC=$(shell php-config --includes)
12
PHP_INC=$(shell php-config --includes)
13
13
14
lib-stamp:
14
lib-stamp:
15
	make -C ${HL_SRC} -f ./makefile clean
15
	$(MAKE) -C ${HL_SRC} -f ./makefile clean
16
	PIC=1 make -C ${HL_SRC} -f ./makefile CFLAGS="${CFLAGS}" libhighlight.a
16
	PIC=1 $(MAKE) -C ${HL_SRC} -f ./makefile CFLAGS="${CFLAGS}" libhighlight.a
17
	touch $@
17
	touch $@
18
18
19
python: lib-stamp
19
python: lib-stamp
20
	swig -c++ -python -o highlight_wrap.cpp  highlight.i
20
	swig -c++ -python -o highlight_wrap.cpp  highlight.i
21
	${CXX} ${CFLAGS} -c highlight_wrap.cpp ${LUA_CFLAGS} ${PYTHON_CFLAGS} -I${HL_INC} 
21
	${CXX} ${CFLAGS} -c highlight_wrap.cpp ${LUA_CFLAGS} ${PYTHON_CFLAGS} -I${HL_INC} 
22
	${CXX} -shared -s highlight_wrap.o  -L${HL_SRC} -lhighlight ${LUA_LIBS} -lpython2.7 -o _highlight.so
22
	${CXX} -shared highlight_wrap.o  -L${HL_SRC} -lhighlight ${LUA_LIBS} -lpython2.7 -o _highlight.so
23
23
24
perl: lib-stamp
24
perl: lib-stamp
25
	swig -c++ -perl -o highlight_wrap.cpp  highlight.i
25
	swig -c++ -perl -o highlight_wrap.cpp  highlight.i
26
	${CXX} ${CFLAGS} -c highlight_wrap.cpp ${LUA_CFLAGS} ${PERL_INC} -I${HL_INC} 
26
	${CXX} ${CFLAGS} -c highlight_wrap.cpp ${LUA_CFLAGS} ${PERL_INC} -I${HL_INC} 
27
	${CXX} -shared -s highlight_wrap.o  -L${HL_SRC} -lhighlight ${LUA_LIBS} -o highlight.so
27
	${CXX} -shared highlight_wrap.o  -L${HL_SRC} -lhighlight ${LUA_LIBS} -o highlight.so
28
28
29
php: lib-stamp
29
php: lib-stamp
30
	swig -c++ -php -o highlight_wrap.cpp highlight.i
30
	swig -c++ -php -o highlight_wrap.cpp highlight.i
31
	${CXX} ${CFLAGS} -c highlight_wrap.cpp ${LUA_CFLAGS} ${PHP_INC} -I${HL_INC}
31
	${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
32
	${CXX} -shared highlight_wrap.o -L${HL_SRC} -lhighlight ${LUA_LIBS} -o highlight.so
33
33
34
clean: python-clean perl-clean php-clean
34
clean: python-clean perl-clean php-clean
35
	rm -f *-stamp
35
	rm -f *-stamp

Return to bug 522936