2011-11-02 01:49:20 +01:00
|
|
|
JPIPLIBDIR = ../libopenjpip
|
|
|
|
|
|
|
|
SLIBFNAME = $(JPIPLIBDIR)/libopenjpip_server.a
|
|
|
|
SCFLAGS = -O3 -Wall -m32 -I$(JPIPLIBDIR) -DSERVER -DQUIT_SIGNAL=\"quitJPIP\"
|
2011-11-30 15:54:41 +01:00
|
|
|
SLDFLAGS = -L$(JPIPLIBDIR) -lm -lfcgi -lcurl -lpthread -lopenjpip_server
|
2011-11-02 01:49:20 +01:00
|
|
|
|
|
|
|
J2KINCDIR = ../../../libopenjpeg
|
|
|
|
J2KLIBDIR = $(J2KINCDIR)/.libs
|
|
|
|
LIBFNAME = $(JPIPLIBDIR)/libopenjpip_local.a $(J2KLIBDIR)/libopenjpeg.a
|
|
|
|
CFLAGS = -O3 -Wall -I$(JPIPLIBDIR)
|
2012-01-26 16:02:58 +01:00
|
|
|
LDFLAGS = -L$(JPIPLIBDIR) -L$(J2KLIBDIR) -lm -lopenjpip_local
|
2011-11-02 01:49:20 +01:00
|
|
|
|
|
|
|
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 *~
|