Makefile (1106B)
1 2 all: vsfm/bin/VisualSFM vsfm/bin/libsiftgpu.so vsfm/bin/libpba.so 3 4 run: all 5 LD_LIBRARY_PATH=./vsfm/bin:$$LD_LIBRARY_PATH vsfm/bin/VisualSFM 6 7 vsfm/bin/libpba.so: pba/bin/libpba_no_gpu.so 8 ln -s ../../$< $@ 9 10 pba/bin/libpba_no_gpu.so: pba 11 cd $< && mv makefile makefile_orig; mv makefile_no_gpu makefile; make 12 13 pba: pba_v1.0.5.zip 14 unzip $< 15 16 pba_v1.0.5.zip: 17 wget http://grail.cs.washington.edu/projects/mcba/pba_v1.0.5.zip 18 19 vsfm/bin/libsiftgpu.so: SiftGPU/bin/libsiftgpu.so 20 ln -s ../../$< $@ 21 22 SiftGPU/bin/libsiftgpu.so: SiftGPU 23 cd $< && make 24 25 SiftGPU: SiftGPU.zip 26 unzip $< 27 mv SiftGPU-master SiftGPU 28 29 SiftGPU.zip: 30 wget https://github.com/pitzer/SiftGPU/archive/master.zip -O $@ 31 32 vsfm/bin/VisualSFM: vsfm 33 cd $< && make 34 35 vsfm: VisualSFM_linux_64bit.zip 36 unzip $< && touch $@ 37 38 VisualSFM_linux_64bit.zip: 39 wget http://ccwu.me/vsfm/download/VisualSFM_linux_64bit.zip 40 41 install-reqs: 42 sudo apt-get install libgtk2.0-dev freeglut3-dev libdevil-dev libglew-dev unzip liblapack-dev 43 44 clean: 45 $(RM) VisualSFM_linux_64bit.zip 46 $(RM) SiftGPU.zip 47 $(RM) pba_v1.0.5.zip 48 $(RM) -r vsfm 49 $(RM) -r SiftGPU 50 $(RM) -r pba