2011-04-14 20:37:47 +02:00
|
|
|
LIBDIR = ../libopenjpip
|
|
|
|
LIBFNAME = $(LIBDIR)/libopenjpip_local.a
|
2011-05-09 20:11:40 +02:00
|
|
|
CFLAGS = -O3 -Wall -I$(LIBDIR)
|
2011-04-14 20:37:47 +02:00
|
|
|
LDFLAGS = -L$(LIBDIR) -lm -lopenjpip_local
|
|
|
|
|
|
|
|
ALL = jpt_to_jp2 jpt_to_j2k test_index addXMLinJP2
|
|
|
|
|
|
|
|
all: t_indexer $(ALL)
|
|
|
|
|
|
|
|
t_indexer:
|
|
|
|
make -C indexer
|
|
|
|
|
|
|
|
jpt_to_jp2: jpt_to_jp2.o $(LIBFNAME)
|
|
|
|
$(CC) $(CFLAGS) $< $(LDFLAGS) -o $@
|
|
|
|
|
|
|
|
jpt_to_j2k: jpt_to_j2k.o $(LIBFNAME)
|
|
|
|
$(CC) $(CFLAGS) $< $(LDFLAGS) -o $@
|
|
|
|
|
|
|
|
test_index: test_index.o $(LIBFNAME)
|
|
|
|
$(CC) $(CFLAGS) $< $(LDFLAGS) -o $@
|
|
|
|
|
|
|
|
clean:
|
|
|
|
rm -f $(ALL) *.o *~
|
|
|
|
make clean -C indexer
|