"Fossies" - the Fresh Open Source Software Archive

Member "highlight-3.57-x64/extras/swig/makefile" (12 May 2020, 1512 Bytes) of package /windows/www/highlight-3.57-x64.zip:


As a special service "Fossies" has tried to format the requested text file into HTML format (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file. See also the last Fossies "Diffs" side-by-side code changes report for "makefile": 3.53_vs_3.54.

    1 
    2 CXX=g++
    3 CFLAGS=-g -O2 -fPIC
    4 
    5 HL_INC=../../src/include/
    6 HL_SRC=../../src/
    7 
    8 LUA_CFLAGS=$(shell pkg-config --cflags lua)
    9 LUA_LIBS=$(shell pkg-config --libs lua)
   10 PYTHON_CFLAGS=$(shell pkg-config --cflags python-2.7)
   11 PERL_INC=$(shell perl -MExtUtils::Embed -eccopts)
   12 PHP_INC=$(shell php-config --includes)
   13 
   14 lib-stamp:
   15 	make -C ../.. -f ./makefile clean-obj
   16 	PIC=1 make -C ../.. -f ./makefile CFLAGS="${CFLAGS}" lib-static
   17 	touch $@
   18 
   19 python: lib-stamp
   20 	swig -c++ -python -o highlight_wrap.cpp  highlight.i
   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
   23 
   24 perl: lib-stamp
   25 	swig -c++ -perl -o highlight_wrap.cpp  highlight.i
   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
   28 
   29 php: lib-stamp
   30 	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} -shared -s highlight_wrap.o -L${HL_SRC} -lhighlight ${LUA_LIBS} -o highlight.so
   33 
   34 clean: python-clean perl-clean php-clean
   35 	rm -f *-stamp
   36 	rm -f highlight.py
   37 
   38 python-clean:
   39 	rm -f _highlight.so *.pyc
   40 	rm -rf __pycache__
   41 
   42 perl-clean:
   43 	rm -f highlight.so highlight_wrap.cpp highlight.pm *.o
   44 
   45 php-clean:
   46 	rm -f highlight.so highlight_wrap.cpp highlight.php *.o  php_highlight.h
   47 
   48 .PHONY: python python-clean perl perl-clean php php-clean clean