https://github.com/lingqi/WaveOpticsBrdf
Raw File
Tip revision: 6cab40424e6067bad443ed0a57e51094db898800 authored by Milos Hasan on 14 March 2019, 18:14:50 UTC
fix linux makefile
Tip revision: 6cab404
makefile.linux
all: genBrdf

genBrdf: exrimage.o gaborkernel.o waveBrdf.o waveNdf.o spectrum.o genBrdf.cpp
	g++ -std=c++11 -O2 exrimage.o gaborkernel.o waveBrdf.o spectrum.o waveNdf.o genBrdf.cpp -o genBrdf -I/usr/include/eigen3 -L/usr/local/lib -lIlmImf -lHalf -march=native -fopenmp

exrimage.o: exrimage.h exrimage.cpp
	g++ -std=c++11 -O2 -c exrimage.cpp -I/usr/include/OpenEXR -I/usr/include/eigen3 -o exrimage.o -march=native -fopenmp

gaborkernel.o: gaborkernel.h gaborkernel.cpp
	g++ -std=c++11 -O2 -c gaborkernel.cpp -I/usr/include/OpenEXR -I/usr/include/eigen3 -o gaborkernel.o -march=native -fopenmp

waveBrdf.o: waveBrdf.h waveBrdf.cpp
	g++ -std=c++11 -O2 -c waveBrdf.cpp -I/usr/include/OpenEXR -I/usr/include/eigen3 -o waveBrdf.o -march=native -fopenmp

spectrum.o: spectrum.h spectrum.cpp
	g++ -std=c++11 -O2 -c spectrum.cpp -I/usr/include/OpenEXR -I/usr/include/eigen3 -o spectrum.o -march=native -fopenmp

waveNdf.o: waveNdf.cpp waveBrdf.h waveNdf.h
	g++ -std=c++11 -O2 -c waveNdf.cpp -I/usr/include/OpenEXR -I/usr/include/eigen3 -o waveNdf.o -march=native -Xpreprocessor -fopenmp

clean:
	rm -f *.o
	rm -f genBrdf
back to top