summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFrancois-Olivier Devaux <fodevaux@users.noreply.github.com>2007-01-31 14:57:26 +0000
committerFrancois-Olivier Devaux <fodevaux@users.noreply.github.com>2007-01-31 14:57:26 +0000
commitb700cd9101dad176d68a319c7a207e26ba5eea62 (patch)
treeaa99de02f24b2c4aef219adf9368de6623f7e0ab
parenta6d737721317691cdec1bb078eca8c93a7313379 (diff)
Linux Makefile for the codec added
-rw-r--r--codec/Makefile14
1 files changed, 14 insertions, 0 deletions
diff --git a/codec/Makefile b/codec/Makefile
new file mode 100644
index 00000000..a10185e1
--- /dev/null
+++ b/codec/Makefile
@@ -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