Enable (i.e. fix) VPATH and out-of-tree builds
git-svn-id: svn+ssh://svn.code.sf.net/p/libjpeg-turbo/code/trunk@87 632fc199-4ca6-4c93-a231-07263d6284db
This commit is contained in:
28
Makefile.am
28
Makefile.am
@@ -35,16 +35,16 @@ noinst_PROGRAMS = jpgtest jpegut cjpeg djpeg jpegtran rdjpgcom wrjpgcom
|
|||||||
|
|
||||||
jpgtest_SOURCES = $(TSTHDRS) jpgtest.cxx bmp.h bmp.c
|
jpgtest_SOURCES = $(TSTHDRS) jpgtest.cxx bmp.h bmp.c
|
||||||
|
|
||||||
jpgtest_LDADD = $(top_srcdir)/libturbojpeg.la
|
jpgtest_LDADD = libturbojpeg.la
|
||||||
|
|
||||||
jpegut_SOURCES = $(TSTHDRS) jpegut.c bmp.h bmp.c
|
jpegut_SOURCES = $(TSTHDRS) jpegut.c bmp.h bmp.c
|
||||||
|
|
||||||
jpegut_LDADD = $(top_srcdir)/libturbojpeg.la
|
jpegut_LDADD = libturbojpeg.la
|
||||||
|
|
||||||
cjpeg_SOURCES = cdjpeg.h cderror.h cdjpeg.c cjpeg.c rdbmp.c rdgif.c \
|
cjpeg_SOURCES = cdjpeg.h cderror.h cdjpeg.c cjpeg.c rdbmp.c rdgif.c \
|
||||||
rdppm.c rdswitch.c rdtarga.c
|
rdppm.c rdswitch.c rdtarga.c
|
||||||
|
|
||||||
cjpeg_LDADD = $(top_srcdir)/libjpeg.la
|
cjpeg_LDADD = libjpeg.la
|
||||||
|
|
||||||
cjpeg_CFLAGS = -DBMP_SUPPORTED -DGIF_SUPPORTED -DPPM_SUPPORTED \
|
cjpeg_CFLAGS = -DBMP_SUPPORTED -DGIF_SUPPORTED -DPPM_SUPPORTED \
|
||||||
-DTARGA_SUPPORTED
|
-DTARGA_SUPPORTED
|
||||||
@@ -52,31 +52,31 @@ cjpeg_CFLAGS = -DBMP_SUPPORTED -DGIF_SUPPORTED -DPPM_SUPPORTED \
|
|||||||
djpeg_SOURCES = cdjpeg.h cderror.h cdjpeg.c djpeg.c rdcolmap.c rdswitch.c \
|
djpeg_SOURCES = cdjpeg.h cderror.h cdjpeg.c djpeg.c rdcolmap.c rdswitch.c \
|
||||||
wrbmp.c wrgif.c wrppm.c wrtarga.c
|
wrbmp.c wrgif.c wrppm.c wrtarga.c
|
||||||
|
|
||||||
djpeg_LDADD = $(top_srcdir)/libjpeg.la
|
djpeg_LDADD = libjpeg.la
|
||||||
|
|
||||||
djpeg_CFLAGS = -DBMP_SUPPORTED -DGIF_SUPPORTED -DPPM_SUPPORTED \
|
djpeg_CFLAGS = -DBMP_SUPPORTED -DGIF_SUPPORTED -DPPM_SUPPORTED \
|
||||||
-DTARGA_SUPPORTED
|
-DTARGA_SUPPORTED
|
||||||
|
|
||||||
jpegtran_SOURCES = jpegtran.c rdswitch.c cdjpeg.c transupp.c
|
jpegtran_SOURCES = jpegtran.c rdswitch.c cdjpeg.c transupp.c
|
||||||
|
|
||||||
jpegtran_LDADD = $(top_srcdir)/libjpeg.la
|
jpegtran_LDADD = libjpeg.la
|
||||||
|
|
||||||
rdjpgcom_SOURCES = wrjpgcom.c
|
rdjpgcom_SOURCES = wrjpgcom.c
|
||||||
|
|
||||||
rdjpgcom_LDADD = $(top_srcdir)/libjpeg.la
|
rdjpgcom_LDADD = libjpeg.la
|
||||||
|
|
||||||
wrjpgcom_SOURCES = wrjpgcom.c
|
wrjpgcom_SOURCES = wrjpgcom.c
|
||||||
|
|
||||||
wrjpgcom_LDADD = $(top_srcdir)/libjpeg.la
|
wrjpgcom_LDADD = libjpeg.la
|
||||||
|
|
||||||
test: testclean cjpeg djpeg jpegtran
|
test: testclean cjpeg djpeg jpegtran
|
||||||
$(top_srcdir)/jpegut
|
./jpegut
|
||||||
$(top_srcdir)/djpeg -dct int -ppm -outfile testout.ppm $(top_srcdir)/testorig.jpg
|
./djpeg -dct int -ppm -outfile testout.ppm $(srcdir)/testorig.jpg
|
||||||
$(top_srcdir)/djpeg -dct int -bmp -colors 256 -outfile testout.bmp $(top_srcdir)/testorig.jpg
|
./djpeg -dct int -bmp -colors 256 -outfile testout.bmp $(srcdir)/testorig.jpg
|
||||||
$(top_srcdir)/cjpeg -dct int -outfile testout.jpg $(top_srcdir)/testimg.ppm
|
./cjpeg -dct int -outfile testout.jpg $(srcdir)/testimg.ppm
|
||||||
$(top_srcdir)/djpeg -dct int -ppm -outfile testoutp.ppm $(top_srcdir)/testprog.jpg
|
./djpeg -dct int -ppm -outfile testoutp.ppm $(srcdir)/testprog.jpg
|
||||||
$(top_srcdir)/cjpeg -dct int -progressive -opt -outfile testoutp.jpg $(top_srcdir)/testimg.ppm
|
./cjpeg -dct int -progressive -opt -outfile testoutp.jpg $(srcdir)/testimg.ppm
|
||||||
$(top_srcdir)/jpegtran -outfile testoutt.jpg $(top_srcdir)/testprog.jpg
|
./jpegtran -outfile testoutt.jpg $(srcdir)/testprog.jpg
|
||||||
cmp $(top_srcdir)/testimg.ppm testout.ppm
|
cmp $(top_srcdir)/testimg.ppm testout.ppm
|
||||||
cmp $(top_srcdir)/testimg.bmp testout.bmp
|
cmp $(top_srcdir)/testimg.bmp testout.bmp
|
||||||
cmp $(top_srcdir)/testimg.jpg testout.jpg
|
cmp $(top_srcdir)/testimg.jpg testout.jpg
|
||||||
|
|||||||
@@ -49,9 +49,11 @@ jdmermmx.lo: jdmrgmmx.asm
|
|||||||
jdmerss2.lo: jdmrgss2.asm
|
jdmerss2.lo: jdmrgss2.asm
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
AM_CPPFLAGS = -I$(top_srcdir)
|
||||||
|
|
||||||
.asm.lo:
|
.asm.lo:
|
||||||
$(LIBTOOL) --mode=compile --tag NASM ./nasm_lt.sh $(NASM) $(NAFLAGS) $< -o $@
|
$(LIBTOOL) --mode=compile --tag NASM $(srcdir)/nasm_lt.sh $(NASM) $(NAFLAGS) -I$(srcdir) $< -o $@
|
||||||
|
|
||||||
jsimdcfg.inc: jsimdcfg.inc.h ../jpeglib.h ../jconfig.h ../jmorecfg.h
|
jsimdcfg.inc: $(srcdir)/jsimdcfg.inc.h ../jpeglib.h ../jconfig.h ../jmorecfg.h
|
||||||
$(CPP) jsimdcfg.inc.h | $(EGREP) ^[\;%] | sed 's%_cpp_protection_%%' > $@
|
$(CPP) -I$(builddir) -I$(top_builddir) $(srcdir)/jsimdcfg.inc.h | $(EGREP) ^[\;%] | sed 's%_cpp_protection_%%' > $@
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user