If the compiler complains that you do not have the jpeg library on link you should remove -ljpeg from the -L loader options in makefile.in. Also in makefile change the line (cd unix/jpeg; make archive)
to
(cd unix/nojpeg; make archive)
You other option is to load the jpeg development tools (libraries and header files) from fink, macports, or homebrew.