2007-01-31 15:57:26 +01:00
|
|
|
# Makefile for the main OpenJPEG codecs: j2k_to_image and image_to_j2k
|
|
|
|
|
2010-06-22 13:55:36 +02:00
|
|
|
CFLAGS = -Wall -O3 -lstdc++ # -g -p -pg
|
2007-01-31 15:57:26 +01:00
|
|
|
|
2010-06-22 13:55:36 +02:00
|
|
|
all: j2k_to_image image_to_j2k j2k_dump
|
2007-01-31 15:57:26 +01:00
|
|
|
|
|
|
|
j2k_to_image: j2k_to_image.c ../libopenjpeg.a
|
2010-03-26 16:46:17 +01:00
|
|
|
gcc $(CFLAGS) compat/getopt.c index.c convert.c j2k_to_image.c -o j2k_to_image -L.. -lopenjpeg -I ../libopenjpeg/ -lm -ltiff -lpng
|
2007-01-31 15:57:26 +01:00
|
|
|
|
|
|
|
image_to_j2k: image_to_j2k.c ../libopenjpeg.a
|
2010-03-26 16:46:17 +01:00
|
|
|
gcc $(CFLAGS) compat/getopt.c index.c convert.c image_to_j2k.c -o image_to_j2k -L.. -lopenjpeg -I ../libopenjpeg/ -lm -ltiff -lpng
|
2007-01-31 15:57:26 +01:00
|
|
|
|
2010-06-22 13:55:36 +02:00
|
|
|
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
|
|
|
|
|
2007-01-31 15:57:26 +01:00
|
|
|
clean:
|
2010-06-22 13:55:36 +02:00
|
|
|
rm -f j2k_to_image image_to_j2k j2k_dump
|