diff options
author | Tavian Barnes <tavianator@gmail.com> | 2010-04-01 14:45:42 -0400 |
---|---|---|
committer | Tavian Barnes <tavianator@gmail.com> | 2010-04-01 14:45:42 -0400 |
commit | e0313016725bc9f87243571e75b2e77f1cae265e (patch) | |
tree | 9b5cd9c078c73020e6520fcc167a78fe690043d9 /libdimension/Makefile.am | |
parent | 570fc8af37610aad28af30e4c2363b5a43deeb18 (diff) | |
download | dimension-e0313016725bc9f87243571e75b2e77f1cae265e.tar.xz |
Add --disable-png configure option.
Diffstat (limited to 'libdimension/Makefile.am')
-rw-r--r-- | libdimension/Makefile.am | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/libdimension/Makefile.am b/libdimension/Makefile.am index 4ce01ff..4f427d0 100644 --- a/libdimension/Makefile.am +++ b/libdimension/Makefile.am @@ -63,7 +63,6 @@ libdimension_la_SOURCES = $(nobase_include_HEADERS) \ object.c \ perspective.c \ phong.c \ - png.c \ point_light.c \ progress.c \ raytrace.c \ @@ -73,7 +72,14 @@ libdimension_la_SOURCES = $(nobase_include_HEADERS) \ sphere.c \ texture.c libdimension_la_LDFLAGS = -version-info 0:0:0 $(AM_LDFLAGS) -libdimension_la_LIBADD = -lm -lpthread -lpng +libdimension_la_LIBADD = -lm -lpthread + +if PNG +libdimension_la_SOURCES += png.c +libdimension_la_LIBADD += -lpng +else +libdimension_la_SOURCES += png-stubs.c +endif if GL libdimension_la_SOURCES += gl.c |