Created
September 17, 2013 16:35
-
-
Save fclairamb/6596910 to your computer and use it in GitHub Desktop.
sikuli supplemental linuxvision converted the crappy "makeVisionProxy" into a makefile
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
OBJS=build/cvgui.o build/finder.o build/imgdb.o build/pyramid-template-matcher.o build/sikuli-debug.o build/tessocr.o build/vision.o build/visionJAVA_wrap.o | |
INCS=-I/usr/local/include -I/usr/include -I/usr/lib/jvm/default-java/include -I/usr/lib/jvm/default-java/include/linux | |
OPTS= -O3 -fPIC -MMD -MP $(INCS) | |
LIB=dist/libVisionProxy.so | |
all: $(LIB) | |
build dist: Makefile | |
[ -d $@ ] || mkdir $@ | |
touch $@ | |
build/finder.o: src/finder.cpp build | |
g++ -c -o $@ $< $(OPTS) | |
build/imgdb.o: src/imgdb.cpp build | |
g++ -c -o $@ $< $(OPTS) | |
build/pyramid-template-matcher.o: src/pyramid-template-matcher.cpp build | |
g++ -c -o $@ $< $(OPTS) | |
build/sikuli-debug.o: src/sikuli-debug.cpp build | |
g++ -c -o $@ $< $(OPTS) | |
build/tessocr.o: src/tessocr.cpp build | |
g++ -c -o $@ $< $(OPTS) | |
build/vision.o: src/vision.cpp build | |
g++ -c -o $@ $< $(OPTS) | |
build/cvgui.o: src/cvgui.cpp build | |
g++ -c -o $@ $< $(OPTS) | |
build/visionJAVA_wrap.o: src/visionJAVA_wrap.cxx build | |
g++ -c -o $@ $< $(OPTS) | |
$(LIB): $(OBJS) dist | |
g++ -shared -s -fPIC -dynamic -o $(LIB) $(OBJS) $(OPTS) | |
clean: | |
rm -Rf $(LIB) $(OBJS) build dist |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment