Linux Makefile for the codec added

This commit is contained in:
Francois-Olivier Devaux 2007-01-31 14:57:26 +00:00
parent a6d7377213
commit b700cd9101
1 changed files with 14 additions and 0 deletions

14
codec/Makefile Normal file
View File

@ -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