Linux Makefile for the codec added
authorFrancois-Olivier Devaux <fodevaux@users.noreply.github.com>
Wed, 31 Jan 2007 14:57:26 +0000 (14:57 +0000)
committerFrancois-Olivier Devaux <fodevaux@users.noreply.github.com>
Wed, 31 Jan 2007 14:57:26 +0000 (14:57 +0000)
codec/Makefile [new file with mode: 0644]

diff --git a/codec/Makefile b/codec/Makefile
new file mode 100644 (file)
index 0000000..a10185e
--- /dev/null
@@ -0,0 +1,14 @@
+# Makefile for the main OpenJPEG codecs: j2k_to_image and image_to_j2k
+
+CFLAGS = -O3 -lstdc++ # -g -p -pg
+
+all: j2k_to_image image_to_j2k
+
+j2k_to_image: j2k_to_image.c ../libopenjpeg.a
+       gcc $(CFLAGS) convert.c j2k_to_image.c -o j2k_to_image -L.. -lopenjpeg -I ../libopenjpeg/ -lm
+
+image_to_j2k: image_to_j2k.c ../libopenjpeg.a
+       gcc $(CFLAGS) convert.c image_to_j2k.c -o image_to_j2k -L.. -lopenjpeg -I ../libopenjpeg/ -lm
+
+clean:
+       rm -f j2k_to_image image_to_j2k