Guest User

Untitled

a guest
Feb 26th, 2013
107
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. OBJECTS =   ArticleTracker.o \
  2.             DoublePage.o \
  3.             GraphicsExtractor.o \
  4.             Loader.o \
  5.             MagickppAPI.o \
  6.             PageSegmenter.o \
  7.             Picture.o   \
  8.             PreProcessor.o \
  9.             Region.o \
  10.             RegionsTree.o \
  11.             Segmenter.o
  12.             #BlockExtractor.o \
  13.             LineExtractor.o \
  14.             Newspaper.o \
  15.             NewspapersDataBase.o \
  16.             RegionClassifier.o \
  17.  
  18. FULLPATHOBJECTS =   bin/ArticleTracker.o \
  19.                     bin/DoublePage.o \
  20.                     bin/GraphicsExtractor.o \
  21.                     bin/Loader.o \
  22.                     bin/MagickppAPI.o \
  23.                     bin/PageSegmenter.o \
  24.                     bin/Picture.o \
  25.                     bin/PreProcessor.o \
  26.                     bin/Region.o \
  27.                     bin/RegionsTree.o \
  28.                     bin/Segmenter.o
  29.                     #bin/BlockExtractor.o \
  30.                     bin/LineExtractor.o \
  31.                     bin/Newspaper.o \
  32.                     bin/NewspapersDataBase.o \
  33.                     bin/RegionClassifier.o \
  34.  
  35. # Dependences
  36. MAIN_DEP = NessieController.o
  37. #MAIN_DEP = ArticleTrackTester.o
  38.  
  39. NESSIECONTROLLER_DEP = NessieController.cpp Loader.o Segmenter.o
  40. ARTICLETRACKTESTER_DEP = ArticleTrackTester.cpp ArticleTracker.o Region.o NessieController.o Loader.o Segmenter.o # estos 3 últimos es para obligar la compilación del resto.
  41.  
  42. ARTICLETRACKER_DEP = ArticleTracker.cpp ArticleTracker.hpp Picture.o RegionsTree.o
  43. DOUBLEPAGE_DEP = DoublePage.cpp DoublePage.hpp Picture.o
  44. GRAPHICSEXTRACTOR = GraphicsExtractor.cpp GraphicsExtractor.hpp Picture.o
  45. LOADER_DEP = Loader.cpp Loader.hpp MagickppAPI.o
  46. MAGICKPPAPI_DEP = MagickppAPI.cpp MagickppAPI.hpp Picture.o
  47. PAGESEGMENTER_DEP = PageSegmenter.cpp PageSegmenter.hpp Picture.o Region.o RegionsTree.o
  48. PICTURE_DEP = Picture.cpp Picture.hpp MagickppAPI.o
  49. PREPROCESSOR_DEP = PreProcessor.cpp PreProcessor.hpp DoublePage.o MagickppAPI.o Picture.o
  50. REGION_DEP = Region.cpp Region.hpp
  51. REGIONSTREE_DEP = RegionsTree.cpp RegionsTree.hpp Picture.o Region.o
  52. SEGMENTER_DEP = Segmenter.cpp Segmenter.hpp ArticleTracker.o DoublePage.o GraphicsExtractor.o PageSegmenter.o PreProcessor.o RegionsTree.o
  53.  
  54. # Files Directories
  55. HEADDIR =   inc/
  56. SRCSDIR =   src/
  57. OBJSDIR =   bin/
  58. vpath %.hpp $(HEADDIR)
  59. vpath %.cpp $(SRCSDIR)
  60. vpath %.o   $(OBJSDIR)
  61.  
  62. # Compile Configuration
  63. COMPILER = c++
  64. CPPFLAGS = -Wall \
  65.            -Wextra \
  66.            -Iinc \
  67.            -Ibin \
  68.            -Isrc
  69.  
  70. MAGICK_COMPILER = `Magick++-config --cppflags --cxxflags`
  71. MAGICK_LINKER   = `Magick++-config --cppflags --cxxflags --ldflags --libs`
  72. #BOOST_COMPILER = -I/usr/local/include/boost
  73. #BOOST_LINKER   = -L/usr/local/lib
  74. EXECUTABLE = bin/segmentation
  75.  
  76. #   c++ -o bin/loader src/loader.cpp `Magick++-config --cppflags --cxxflags --ldflags --libs`
  77. #   c++ -o bin/pdf2out src/pdf2out.cpp `Magick++-config --cppflags --cxxflags --ldflags --libs`
  78. #   c++ -o bin/pdfM2img src/pdfM2img.cpp `Magick++-config --cppflags --cxxflags --ldflags --libs`
  79.  
  80. #old:
  81. #   $(COMPILER) $(CPPFLAGS) $(SRCSDIR)old_pdfM2img.cpp -o $(OBJSDIR)old $(MAGICK)
  82.  
  83. main: $(MAIN_DEP)
  84.     $(COMPILER) $(CPPFLAGS) $(MAGICK_LINKER) $(FULLPATHOBJECTS) $(OBJSDIR)NessieController.o -o $(EXECUTABLE)
  85.     #$(COMPILER) $(CPPFLAGS) $(MAGICK_LINKER) $(FULLPATHOBJECTS) $(OBJSDIR)ArticleTrackTester.o -o $(EXECUTABLE)
  86.     @ echo
  87.     @ echo "<<<<<<<<<< La compilación ha sido exitosa. >>>>>>>>>>"
  88.  
  89.  
  90. NessieController.o: $(NESSIECONTROLLER_DEP)
  91.     $(COMPILER) $(CPPFLAGS) $(MAGICK_COMPILER) -c $(SRCSDIR)NessieController.cpp -o $(OBJSDIR)NessieController.o
  92.  
  93. ArticleTrackTester.o: $(ARTICLETRACKTESTER_DEP)
  94.     $(COMPILER) $(CPPFLAGS) $(MAGICK_COMPILER) -c $(SRCSDIR)ArticleTrackTester.cpp -o $(OBJSDIR)ArticleTrackTester.o
  95.  
  96. # Segmentación
  97. ArticleTracker.o: $(ARTICLETRACKER_DEP)
  98.     $(COMPILER) $(CPPFLAGS) $(MAGICK_COMPILER) -c $(SRCSDIR)ArticleTracker.cpp -o $(OBJSDIR)ArticleTracker.o
  99.  
  100. DoublePage.o: $(DOUBLEPAGE_DEP)
  101.     $(COMPILER) $(CPPFLAGS) $(MAGICK_COMPILER) -c $(SRCSDIR)DoublePage.cpp -o $(OBJSDIR)DoublePage.o
  102.  
  103.  
  104. GraphicsExtractor.o: $(GRAPHICSEXTRACTOR)
  105.     $(COMPILER) $(CPPFLAGS) $(MAGICK_COMPILER) -c $(SRCSDIR)GraphicsExtractor.cpp -o $(OBJSDIR)GraphicsExtractor.o
  106.  
  107. Loader.o: $(LOADER_DEP)
  108.     $(COMPILER) $(CPPFLAGS) $(MAGICK_COMPILER) -c $(SRCSDIR)Loader.cpp -o $(OBJSDIR)Loader.o
  109.  
  110. MagickppAPI.o: $(MAGICKPPAPI_DEP)
  111.     $(COMPILER) $(CPPFLAGS) $(MAGICK_COMPILER) -c $(SRCSDIR)MagickppAPI.cpp -o $(OBJSDIR)MagickppAPI.o
  112.  
  113. PageSegmenter.o: $(PAGESEGMENTER_DEP)
  114.     $(COMPILER) $(CPPFLAGS) $(MAGICK_COMPILER) -c $(SRCSDIR)PageSegmenter.cpp -o $(OBJSDIR)PageSegmenter.o
  115.  
  116. Picture.o: $(PICTURE_DEP)
  117.     $(COMPILER) $(CPPFLAGS) $(MAGICK_COMPILER) -c $(SRCSDIR)Picture.cpp -o $(OBJSDIR)Picture.o
  118.  
  119. PreProcessor.o: $(PREPROCESSOR_DEP)
  120.     $(COMPILER) $(CPPFLAGS) $(MAGICK_COMPILER) -c $(SRCSDIR)PreProcessor.cpp -o $(OBJSDIR)PreProcessor.o
  121.  
  122. Region.o: $(REGION_DEP)
  123.     $(COMPILER) $(CPPFLAGS) $(MAGICK_COMPILER) -c $(SRCSDIR)Region.cpp -o $(OBJSDIR)Region.o
  124.  
  125. RegionsTree.o: $(REGIONSTREE_DEP)
  126.     $(COMPILER) $(CPPFLAGS) $(MAGICK_COMPILER) -c $(SRCSDIR)RegionsTree.cpp -o $(OBJSDIR)RegionsTree.o
  127.  
  128. Segmenter.o: $(SEGMENTER_DEP)
  129.     $(COMPILER) $(CPPFLAGS) $(MAGICK_COMPILER) -c $(SRCSDIR)Segmenter.cpp -o $(OBJSDIR)Segmenter.o
  130.  
  131. #BlockExtractor.o: BlockExtractor.cpp BlockExtractor.hpp
  132. #   $(COMPILER) $(CPPFLAGS) -c $(SRCSDIR)BlockExtractor.cpp -o $(OBJSDIR)BlockExtractor.o $(MAGICK)
  133.  
  134. #LineExtractor.o: LineExtractor.cpp LineExtractor.hpp
  135. #   $(COMPILER) $(CPPFLAGS) -c $(SRCSDIR)LineExtractor.cpp -o $(OBJSDIR)LineExtractor.o $(MAGICK)
  136.  
  137. #Newspaper.o: Newspaper.cpp Newspaper.hpp
  138. #   $(COMPILER) $(CPPFLAGS) -c $(SRCSDIR)Newspaper.cpp -o $(OBJSDIR)Newspaper.o $(MAGICK)
  139.  
  140. #NewspapersDataBase.o: NewspapersDataBase.cpp NewspapersDataBase.hpp
  141. #   $(COMPILER) $(CPPFLAGS) -c $(SRCSDIR)NewspapersDataBase.cpp -o $(OBJSDIR)NewspapersDataBase.o $(MAGICK)
  142.  
  143. #RegionClassifier.o: RegionClassifier.cpp RegionClassifier.hpp
  144. #   $(COMPILER) $(CPPFLAGS) -c $(SRCSDIR)RegionClassifier.cpp -o $(OBJSDIR)RegionClassifier.o $(MAGICK)
  145.  
  146.  
  147. # This rule is delete the object files of de directory
  148. clean :
  149.     rm $(OBJSDIR)*
RAW Paste Data