diff Makefile @ 51:a068bb570f2f

Add pngread/pngwrite functions.
author pkienzle
date Tue, 18 Nov 2003 17:53:02 +0000
parents 6d2c7a78b7a4
children 6c04d00e9db1
line wrap: on
line diff
--- a/Makefile
+++ b/Makefile
@@ -4,7 +4,12 @@
 	JPEG=jpgwrite.oct jpgread.oct
 endif
 
-all: conv2.oct cordflt2.oct bwlabel.oct bwfill.oct rotate_scale.oct $(JPEG)
+ifdef HAVE_PNG
+	PNG=pngread.oct pngwrite.oct
+endif
+
+all: conv2.oct cordflt2.oct bwlabel.oct bwfill.oct rotate_scale.oct \
+	$(JPEG) $(PNG)
 
 jpgread.oct: jpgread.cc
 	$(MKOCTFILE) $< -ljpeg
@@ -12,4 +17,10 @@
 jpgwrite.oct: jpgwrite.cc
 	$(MKOCTFILE) $< -ljpeg
 
+pngread.oct: pngread.cc
+	$(MKOCTFILE) $< -lpng
+
+pngwrite.oct:
+	$(LN_S) pngread.oct $@
+
 clean: ; -$(RM) *.o octave-core core *.oct *~