2011-10-20 01:29:57 +02:00
|
|
|
JPIPLIBDIR = ../libopenjpip
|
|
|
|
|
|
|
|
SLIBFNAME = $(JPIPLIBDIR)/libopenjpip_server.a
|
2011-12-02 16:30:19 +01:00
|
|
|
SCFLAGS = -g -Wall -I$(JPIPLIBDIR) -DSERVER -DQUIT_SIGNAL=\"quitJPIP\"
|
2011-10-20 01:29:57 +02:00
|
|
|
SLDFLAGS = -L$(JPIPLIBDIR) -lm -lfcgi -lopenjpip_server
|
|
|
|
|
|
|
|
J2KINCDIR = ../../../libopenjpeg
|
2011-12-02 16:30:19 +01:00
|
|
|
J2KLIBDIR = $(J2KINCDIR)/../bin/bin
|
|
|
|
LIBFNAME = $(JPIPLIBDIR)/libopenjpip_local.a $(J2KLIBDIR)/libopenjpeg.so
|
2011-10-20 01:29:57 +02:00
|
|
|
CFLAGS = -O3 -Wall -I$(JPIPLIBDIR)
|
|
|
|
LDFLAGS = -L$(JPIPLIBDIR) -L$(J2KLIBDIR) -lm -lopenjpip_local
|
|
|
|
|
|
|
|
ALL = opj_server opj_dec_server jpip_to_jp2 jpip_to_j2k test_index addXMLinJP2
|
|
|
|
|
|
|
|
all: $(ALL)
|
|
|
|
|
|
|
|
opj_server: opj_server.c $(SLIBFNAME)
|
|
|
|
$(CC) $(SCFLAGS) $< $(SLDFLAGS) $(SLIBFNAME) -o $@
|
|
|
|
|
|
|
|
opj_dec_server: opj_dec_server.c $(LIBFNAME)
|
|
|
|
$(CC) $(CFLAGS) $< $(LDFLAGS) $(LIBFNAME) -o $@
|
|
|
|
|
|
|
|
jpip_to_jp2: jpip_to_jp2.c $(LIBFNAME)
|
|
|
|
$(CC) $(CFLAGS) $< $(LDFLAGS) $(LIBFNAME) -o $@
|
|
|
|
|
|
|
|
jpip_to_j2k: jpip_to_j2k.c $(LIBFNAME)
|
|
|
|
$(CC) $(CFLAGS) $< $(LDFLAGS) $(LIBFNAME) -o $@
|
|
|
|
|
|
|
|
test_index: test_index.c $(LIBFNAME)
|
|
|
|
$(CC) $(CFLAGS) $< $(LDFLAGS) $(LIBFNAME) -o $@
|
|
|
|
|
|
|
|
clean:
|
|
|
|
rm -f $(ALL) *.o *~
|