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
|
|
|
|
|
2011-07-05 14:10:35 +02:00
|
|
|
ALL = jpip_to_jp2 jpip_to_j2k test_index addXMLinJP2
|
2011-04-14 20:37:47 +02:00
|
|
|
|
|
|
|
all: t_indexer $(ALL)
|
|
|
|
|
|
|
|
t_indexer:
|
2011-07-06 21:40:26 +02:00
|
|
|
make -C indexer -f Makefile.nix
|
2011-04-14 20:37:47 +02:00
|
|
|
|
2011-07-05 14:10:35 +02:00
|
|
|
jpip_to_jp2: jpip_to_jp2.o $(LIBFNAME)
|
2011-04-14 20:37:47 +02:00
|
|
|
$(CC) $(CFLAGS) $< $(LDFLAGS) -o $@
|
|
|
|
|
2011-07-05 14:10:35 +02:00
|
|
|
jpip_to_j2k: jpip_to_j2k.o $(LIBFNAME)
|
2011-04-14 20:37:47 +02:00
|
|
|
$(CC) $(CFLAGS) $< $(LDFLAGS) -o $@
|
|
|
|
|
|
|
|
test_index: test_index.o $(LIBFNAME)
|
|
|
|
$(CC) $(CFLAGS) $< $(LDFLAGS) -o $@
|
|
|
|
|
|
|
|
clean:
|
|
|
|
rm -f $(ALL) *.o *~
|
2011-07-06 21:40:26 +02:00
|
|
|
make clean -C indexer -f Makefile.nix
|