2007-10-23 16:33:40 +02:00
|
|
|
# Makefile for OPJViewer
|
|
|
|
|
|
|
|
# General configuration variables:
|
|
|
|
CC = $(shell wx-config-2.8 --cxx)
|
|
|
|
AR = ar
|
|
|
|
|
|
|
|
CFLAGS = -DUSE_JPWL -DwxUSE_LIBOPENJPEG -DwxUSE_GUI=1 -DOPJ_STATIC -DOPJ_HTMLABOUT $(shell wx-config-2.8 --cxxflags) # -g -p -pg -DUSE_JPWL
|
|
|
|
|
2007-11-29 15:38:26 +01:00
|
|
|
OPJV_SRCS = source/imagj2k.cpp source/imagmj2.cpp source/wxj2kparser.cpp source/imagjp2.cpp source/OPJViewer.cpp source/wxjp2parser.cpp source/OPJViewer.cpp source/OPJThreads.cpp
|
2007-10-23 16:33:40 +02:00
|
|
|
|
|
|
|
MODULES = $(OPJV_SRCS:.cpp=.o)
|
|
|
|
|
|
|
|
all: opjviewer lib
|
|
|
|
|
|
|
|
.cpp.o:
|
2007-11-05 14:05:07 +01:00
|
|
|
$(CC) $(CFLAGS) -c $< -o $@
|
2007-10-23 16:33:40 +02:00
|
|
|
|
|
|
|
lib:
|
2007-11-05 14:05:07 +01:00
|
|
|
cd ../jpwl; make
|
2007-10-23 16:33:40 +02:00
|
|
|
|
|
|
|
opjviewer: $(OPJV_SRCS) lib
|
|
|
|
$(CC) $(CFLAGS) -I .. $(OPJV_SRCS) -o OPJViewer -L ../jpwl -lopenjpeg_JPWL -lm -lstdc++ -ltiff $(shell wx-config-2.8 --libs)
|
|
|
|
|
|
|
|
|
|
|
|
clean:
|
2007-11-05 14:05:07 +01:00
|
|
|
rm -f OPJViewer *.o *.a
|
|
|
|
cd ../libopenjpeg; rm -f *.o
|
2007-10-23 16:33:40 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#.cpp.o :
|
|
|
|
# $(CXX) -g -c `wx-config-2.8 --cxxflags` -I ../.. -D wxUSE_LIBOPENJPEG -D wxHACK_BOOLEAN -o $@ $<
|
|
|
|
|
|
|
|
#all: $(PROGRAM)
|
|
|
|
|
|
|
|
#$(PROGRAM): $(OBJECTS)
|
|
|
|
# $(CXX) -o $(PROGRAM) $(OBJECTS) -lopenjpeg -L ../.. `wx-config-2.8 --libs`
|
|
|
|
|
|
|
|
#clean:
|
|
|
|
# rm -f *.o $(PROGRAM)
|