Subversion Repositories Kolibri OS

Rev

Go to most recent revision | Blame | Last modification | View Log | RSS feed

  1. # Makefile for OPJViewer
  2.  
  3. # General configuration variables:
  4. CC = $(shell wx-config-2.8 --cxx)
  5. AR = ar
  6.  
  7. CFLAGS = -DUSE_JPWL -DwxUSE_LIBOPENJPEG -DwxUSE_GUI=1 -DOPJ_STATIC -DOPJ_HTMLABOUT -DOPJ_INICONFIG -DUSE_JPSEC -DOPJ_MANYFORMATS $(shell wx-config-2.8 --cxxflags) # -g -p -pg -DUSE_JPWL
  8.  
  9. OPJV_SRCS = source/imagjpeg2000.cpp source/wxj2kparser.cpp source/OPJViewer.cpp source/wxjp2parser.cpp source/OPJDialogs.cpp source/OPJThreads.cpp source/OPJAbout.cpp ../codec/index.c
  10.  
  11. MODULES = $(OPJV_SRCS:.cpp=.o)
  12.  
  13. all: opjviewer lib
  14.  
  15. .cpp.o:
  16.         $(CC) $(CFLAGS) -c $< -o $@
  17.  
  18. lib:
  19.         cd ../jpwl; make
  20.  
  21. opjviewer: $(OPJV_SRCS) lib
  22.         $(CC) $(CFLAGS) -I .. -I ../codec -I ../libopenjpeg $(OPJV_SRCS) -o OPJViewer -L ../jpwl -lopenjpeg_JPWL -lm -lstdc++ -ltiff $(shell wx-config-2.8 --libs)
  23.  
  24.  
  25. clean:
  26.         rm -f OPJViewer *.o *.a
  27.         cd ../libopenjpeg; rm -f *.o
  28.  
  29.  
  30.  
  31.  
  32. #.cpp.o :
  33. #       $(CXX) -g -c `wx-config-2.8 --cxxflags` -I ../.. -D wxUSE_LIBOPENJPEG -D wxHACK_BOOLEAN -o $@ $<
  34.  
  35. #all:    $(PROGRAM)
  36.  
  37. #$(PROGRAM):     $(OBJECTS)
  38. #       $(CXX) -o $(PROGRAM) $(OBJECTS) -lopenjpeg -L ../.. `wx-config-2.8 --libs`
  39.  
  40. #clean:
  41. #       rm -f *.o $(PROGRAM)
  42.