summaryrefslogtreecommitdiff
path: root/codec/Makefile
diff options
context:
space:
mode:
authorMathieu Malaterre <mathieu.malaterre@gmail.com>2010-06-22 11:55:36 +0000
committerMathieu Malaterre <mathieu.malaterre@gmail.com>2010-06-22 11:55:36 +0000
commit6621494d9d76576f536ab91d060a029cc5e95c50 (patch)
tree2e51111d064888579a299a1aff3705915ea8c236 /codec/Makefile
parent2374885ac01d64e734937014092088d4fc2bbe6f (diff)
Apply patch from w. szukalski (sent to list). Mon, Jun 21, 2010 at 5:49 PM
Diffstat (limited to 'codec/Makefile')
-rw-r--r--codec/Makefile9
1 files changed, 6 insertions, 3 deletions
diff --git a/codec/Makefile b/codec/Makefile
index 58996fb4..b3c93b0e 100644
--- a/codec/Makefile
+++ b/codec/Makefile
@@ -1,8 +1,8 @@
# Makefile for the main OpenJPEG codecs: j2k_to_image and image_to_j2k
-CFLAGS = -O3 -lstdc++ # -g -p -pg
+CFLAGS = -Wall -O3 -lstdc++ # -g -p -pg
-all: j2k_to_image image_to_j2k
+all: j2k_to_image image_to_j2k j2k_dump
j2k_to_image: j2k_to_image.c ../libopenjpeg.a
gcc $(CFLAGS) compat/getopt.c index.c convert.c j2k_to_image.c -o j2k_to_image -L.. -lopenjpeg -I ../libopenjpeg/ -lm -ltiff -lpng
@@ -10,5 +10,8 @@ j2k_to_image: j2k_to_image.c ../libopenjpeg.a
image_to_j2k: image_to_j2k.c ../libopenjpeg.a
gcc $(CFLAGS) compat/getopt.c index.c convert.c image_to_j2k.c -o image_to_j2k -L.. -lopenjpeg -I ../libopenjpeg/ -lm -ltiff -lpng
+j2k_dump: j2k_dump.c ../libopenjpeg.a
+ gcc $(CFLAGS) compat/getopt.c index.c j2k_dump.c -o j2k_dump -L.. -lopenjpeg -I ../libopenjpeg/ -lm
+
clean:
- rm -f j2k_to_image image_to_j2k
+ rm -f j2k_to_image image_to_j2k j2k_dump