Makefile.devel.nopp 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230
  1. all: library all_samples
  2. CC=clang
  3. CXX=clang++
  4. #CC=gcc
  5. #CXX=g++
  6. LDADD+=-lz
  7. CFLAGS=-DLIBRAW_USE_AUTOPTR
  8. CFLAGS+= -g -I. -pedantic -Wno-long-long -Wno-overflow -O3
  9. # RawSpeed Support
  10. # CFLAGS+=-DUSE_RAWSPEED -I../RawSpeed -I/opt/local/include/libxml2
  11. # LDADD+=-L../RawSpeed/RawSpeed/release -lrawspeed -L/opt/local/include -ljpeg -lxml2
  12. # RAWSPEED_DATA=../RawSpeed/data/cameras.xml
  13. # DNG SDK Support
  14. # CFLAGS+=-DUSE_DNGSDK -I../dng_sdk/source
  15. # LDADDD+=-L../dng_sdk/release -ldng -ljpeg -lz
  16. # LCMS support
  17. # For lcms2 set -DUSE_LCMS2
  18. #CFLAGS+=-DUSE_LCMS2 -I/opt/local/include
  19. #LDADD+=-L/opt/local/lib -llcms
  20. # Jasper support for RedCine
  21. #CFLAGS+=-DUSE_JASPER -I/opt/local/include
  22. #LDADD+=-L/opt/local/lib -ljasper
  23. # JPEG support for DNG and Kodak
  24. CFLAGS+=-DUSE_JPEG -I/usr/local/include
  25. LDADD+=-L/usr/local/lib -ljpeg
  26. # LIBJPEG8:
  27. CFLAGS+=-DUSE_JPEG8
  28. CSTFLAGS=$(CFLAGS) -DLIBRAW_NOTHREADS
  29. LIB_OBJECTS= object/libraw_datastream.o \
  30. object/cameralist.o object/fuji_compressed.o \
  31. object/crx.o object/fp_dng.o object/decoders_libraw.o \
  32. object/unpack.o object/unpack_thumb.o \
  33. object/rawspeed_glue.o object/dngsdk_glue.o \
  34. object/colorconst.o object/utils_libraw.o object/init_close_utils.o \
  35. object/decoder_info.o object/open.o object/phaseone_processing.o \
  36. object/thumb_utils.o \
  37. object/tiff_writer.o object/subtract_black.o \
  38. object/raw2image.o \
  39. object/x3f_utils_patched.o object/x3f_parse_process.o \
  40. object/read_utils.o object/curves.o object/utils_dcraw.o \
  41. object/colordata.o \
  42. object/canon_600.o object/decoders_dcraw.o \
  43. object/decoders_libraw_dcrdefs.o object/generic.o \
  44. object/kodak_decoders.o object/dng.o object/smal.o \
  45. object/load_mfbacks.o \
  46. object/sony.o object/nikon.o object/samsung.o object/cr3_parser.o \
  47. object/canon.o object/epson.o object/olympus.o object/leica.o \
  48. object/fuji.o object/adobepano.o object/pentax.o object/p1.o \
  49. object/makernotes.o object/exif_gps.o object/kodak.o \
  50. object/tiff.o object/ciff.o object/mediumformat.o object/minolta.o \
  51. object/identify_tools.o \
  52. object/hasselblad_model.o object/normalize_model.o object/identify.o \
  53. object/misc_parsers.o object/wblists.o \
  54. object/file_write.o \
  55. object/ext_preprocess.o \
  56. object/postprocessing_ph.o \
  57. LR_INCLUDES=libraw/libraw.h libraw/libraw_alloc.h \
  58. libraw/libraw_const.h libraw/libraw_datastream.h \
  59. libraw/libraw_internal.h libraw/libraw_types.h \
  60. libraw/libraw_version.h
  61. LRLIB=lib/libraw_nopp.a
  62. library: $(LRLIB)
  63. all_samples: bin/raw-identify bin/unprocessed_raw bin/4channels
  64. ## Samples ##
  65. bin/raw-identify: $(LRLIB) samples/raw-identify.cpp
  66. $(CXX) ${CFLAGS} -o bin/raw-identify samples/raw-identify.cpp -L./lib -lraw_nopp -lm ${LDADD}
  67. bin/unprocessed_raw: $(LRLIB) samples/unprocessed_raw.cpp
  68. $(CXX) -DLIBRAW_NOTHREADS ${CFLAGS} -o bin/unprocessed_raw samples/unprocessed_raw.cpp -L./lib -lraw_nopp -lm ${LDADD}
  69. bin/4channels: $(LRLIB) samples/4channels.cpp
  70. $(CXX) -DLIBRAW_NOTHREADS ${CFLAGS} -o bin/4channels samples/4channels.cpp -L./lib -lraw_nopp -lm ${LDADD}
  71. $(LRLIB): ${LIB_OBJECTS}
  72. rm -f $(LRLIB)
  73. ar crv $(LRLIB) ${LIB_OBJECTS}
  74. ranlib $(LRLIB)
  75. clean:
  76. rm -fr bin/*.dSYM
  77. rm -f *.o *~ src/*~ samples/*~ internal/*~ libraw/*~ lib/lib*.a bin/[4a-z]* object/*.o dcraw/*~ doc/*~ bin/*~ src/*/*~
  78. ## script-created rules
  79. object/libraw_c_api.o: src/libraw_c_api.cpp
  80. ${CXX} -c -DLIBRAW_NOTHREADS ${CFLAGS} -o object/libraw_c_api.o src/libraw_c_api.cpp
  81. object/libraw_datastream.o: src/libraw_datastream.cpp
  82. ${CXX} -c -DLIBRAW_NOTHREADS ${CFLAGS} -o object/libraw_datastream.o src/libraw_datastream.cpp
  83. object/canon_600.o: src/decoders/canon_600.cpp
  84. ${CXX} -c -DLIBRAW_NOTHREADS ${CFLAGS} -o object/canon_600.o src/decoders/canon_600.cpp
  85. object/crx.o: src/decoders/crx.cpp
  86. ${CXX} -c -DLIBRAW_NOTHREADS ${CFLAGS} -o object/crx.o src/decoders/crx.cpp
  87. object/decoders_dcraw.o: src/decoders/decoders_dcraw.cpp
  88. ${CXX} -c -DLIBRAW_NOTHREADS ${CFLAGS} -o object/decoders_dcraw.o src/decoders/decoders_dcraw.cpp
  89. object/decoders_libraw_dcrdefs.o: src/decoders/decoders_libraw_dcrdefs.cpp
  90. ${CXX} -c -DLIBRAW_NOTHREADS ${CFLAGS} -o object/decoders_libraw_dcrdefs.o src/decoders/decoders_libraw_dcrdefs.cpp
  91. object/decoders_libraw.o: src/decoders/decoders_libraw.cpp
  92. ${CXX} -c -DLIBRAW_NOTHREADS ${CFLAGS} -o object/decoders_libraw.o src/decoders/decoders_libraw.cpp
  93. object/dng.o: src/decoders/dng.cpp
  94. ${CXX} -c -DLIBRAW_NOTHREADS ${CFLAGS} -o object/dng.o src/decoders/dng.cpp
  95. object/fp_dng.o: src/decoders/fp_dng.cpp
  96. ${CXX} -c -DLIBRAW_NOTHREADS ${CFLAGS} -o object/fp_dng.o src/decoders/fp_dng.cpp
  97. object/fuji_compressed.o: src/decoders/fuji_compressed.cpp
  98. ${CXX} -c -DLIBRAW_NOTHREADS ${CFLAGS} -o object/fuji_compressed.o src/decoders/fuji_compressed.cpp
  99. object/generic.o: src/decoders/generic.cpp
  100. ${CXX} -c -DLIBRAW_NOTHREADS ${CFLAGS} -o object/generic.o src/decoders/generic.cpp
  101. object/kodak_decoders.o: src/decoders/kodak_decoders.cpp
  102. ${CXX} -c -DLIBRAW_NOTHREADS ${CFLAGS} -o object/kodak_decoders.o src/decoders/kodak_decoders.cpp
  103. object/load_mfbacks.o: src/decoders/load_mfbacks.cpp
  104. ${CXX} -c -DLIBRAW_NOTHREADS ${CFLAGS} -o object/load_mfbacks.o src/decoders/load_mfbacks.cpp
  105. object/smal.o: src/decoders/smal.cpp
  106. ${CXX} -c -DLIBRAW_NOTHREADS ${CFLAGS} -o object/smal.o src/decoders/smal.cpp
  107. object/unpack_thumb.o: src/decoders/unpack_thumb.cpp
  108. ${CXX} -c -DLIBRAW_NOTHREADS ${CFLAGS} -o object/unpack_thumb.o src/decoders/unpack_thumb.cpp
  109. object/unpack.o: src/decoders/unpack.cpp
  110. ${CXX} -c -DLIBRAW_NOTHREADS ${CFLAGS} -o object/unpack.o src/decoders/unpack.cpp
  111. object/dngsdk_glue.o: src/integration/dngsdk_glue.cpp
  112. ${CXX} -c -DLIBRAW_NOTHREADS ${CFLAGS} -o object/dngsdk_glue.o src/integration/dngsdk_glue.cpp
  113. object/rawspeed_glue.o: src/integration/rawspeed_glue.cpp
  114. ${CXX} -c -DLIBRAW_NOTHREADS ${CFLAGS} -o object/rawspeed_glue.o src/integration/rawspeed_glue.cpp
  115. object/adobepano.o: src/metadata/adobepano.cpp
  116. ${CXX} -c -DLIBRAW_NOTHREADS ${CFLAGS} -o object/adobepano.o src/metadata/adobepano.cpp
  117. object/canon.o: src/metadata/canon.cpp
  118. ${CXX} -c -DLIBRAW_NOTHREADS ${CFLAGS} -o object/canon.o src/metadata/canon.cpp
  119. object/ciff.o: src/metadata/ciff.cpp
  120. ${CXX} -c -DLIBRAW_NOTHREADS ${CFLAGS} -o object/ciff.o src/metadata/ciff.cpp
  121. object/cr3_parser.o: src/metadata/cr3_parser.cpp
  122. ${CXX} -c -DLIBRAW_NOTHREADS ${CFLAGS} -o object/cr3_parser.o src/metadata/cr3_parser.cpp
  123. object/epson.o: src/metadata/epson.cpp
  124. ${CXX} -c -DLIBRAW_NOTHREADS ${CFLAGS} -o object/epson.o src/metadata/epson.cpp
  125. object/exif_gps.o: src/metadata/exif_gps.cpp
  126. ${CXX} -c -DLIBRAW_NOTHREADS ${CFLAGS} -o object/exif_gps.o src/metadata/exif_gps.cpp
  127. object/fuji.o: src/metadata/fuji.cpp
  128. ${CXX} -c -DLIBRAW_NOTHREADS ${CFLAGS} -o object/fuji.o src/metadata/fuji.cpp
  129. object/identify_tools.o: src/metadata/identify_tools.cpp
  130. ${CXX} -c -DLIBRAW_NOTHREADS ${CFLAGS} -o object/identify_tools.o src/metadata/identify_tools.cpp
  131. object/identify.o: src/metadata/identify.cpp
  132. ${CXX} -c -DLIBRAW_NOTHREADS ${CFLAGS} -o object/identify.o src/metadata/identify.cpp
  133. object/kodak.o: src/metadata/kodak.cpp
  134. ${CXX} -c -DLIBRAW_NOTHREADS ${CFLAGS} -o object/kodak.o src/metadata/kodak.cpp
  135. object/leica.o: src/metadata/leica.cpp
  136. ${CXX} -c -DLIBRAW_NOTHREADS ${CFLAGS} -o object/leica.o src/metadata/leica.cpp
  137. object/makernotes.o: src/metadata/makernotes.cpp
  138. ${CXX} -c -DLIBRAW_NOTHREADS ${CFLAGS} -o object/makernotes.o src/metadata/makernotes.cpp
  139. object/mediumformat.o: src/metadata/mediumformat.cpp
  140. ${CXX} -c -DLIBRAW_NOTHREADS ${CFLAGS} -o object/mediumformat.o src/metadata/mediumformat.cpp
  141. object/minolta.o: src/metadata/minolta.cpp
  142. ${CXX} -c -DLIBRAW_NOTHREADS ${CFLAGS} -o object/minolta.o src/metadata/minolta.cpp
  143. object/misc_parsers.o: src/metadata/misc_parsers.cpp
  144. ${CXX} -c -DLIBRAW_NOTHREADS ${CFLAGS} -o object/misc_parsers.o src/metadata/misc_parsers.cpp
  145. object/nikon.o: src/metadata/nikon.cpp
  146. ${CXX} -c -DLIBRAW_NOTHREADS ${CFLAGS} -o object/nikon.o src/metadata/nikon.cpp
  147. object/hasselblad_model.o: src/metadata/hasselblad_model.cpp
  148. ${CXX} -c -DLIBRAW_NOTHREADS ${CFLAGS} -o object/hasselblad_model.o src/metadata/hasselblad_model.cpp
  149. object/normalize_model.o: src/metadata/normalize_model.cpp
  150. ${CXX} -c -DLIBRAW_NOTHREADS ${CFLAGS} -o object/normalize_model.o src/metadata/normalize_model.cpp
  151. object/olympus.o: src/metadata/olympus.cpp
  152. ${CXX} -c -DLIBRAW_NOTHREADS ${CFLAGS} -o object/olympus.o src/metadata/olympus.cpp
  153. object/p1.o: src/metadata/p1.cpp
  154. ${CXX} -c -DLIBRAW_NOTHREADS ${CFLAGS} -o object/p1.o src/metadata/p1.cpp
  155. object/pentax.o: src/metadata/pentax.cpp
  156. ${CXX} -c -DLIBRAW_NOTHREADS ${CFLAGS} -o object/pentax.o src/metadata/pentax.cpp
  157. object/samsung.o: src/metadata/samsung.cpp
  158. ${CXX} -c -DLIBRAW_NOTHREADS ${CFLAGS} -o object/samsung.o src/metadata/samsung.cpp
  159. object/sony.o: src/metadata/sony.cpp
  160. ${CXX} -c -DLIBRAW_NOTHREADS ${CFLAGS} -o object/sony.o src/metadata/sony.cpp
  161. object/tiff.o: src/metadata/tiff.cpp
  162. ${CXX} -c -DLIBRAW_NOTHREADS ${CFLAGS} -o object/tiff.o src/metadata/tiff.cpp
  163. object/postprocessing_ph.o: src/postprocessing/postprocessing_ph.cpp
  164. ${CXX} -c -DLIBRAW_NOTHREADS ${CFLAGS} -o object/postprocessing_ph.o src/postprocessing/postprocessing_ph.cpp
  165. object/raw2image.o: src/preprocessing/raw2image.cpp
  166. ${CXX} -c -DLIBRAW_NOTHREADS ${CFLAGS} -o object/raw2image.o src/preprocessing/raw2image.cpp
  167. object/ext_preprocess.o: src/preprocessing/ext_preprocess.cpp
  168. ${CXX} -c -DLIBRAW_NOTHREADS ${CFLAGS} -o object/ext_preprocess.o src/preprocessing/ext_preprocess.cpp
  169. object/subtract_black.o: src/preprocessing/subtract_black.cpp
  170. ${CXX} -c -DLIBRAW_NOTHREADS ${CFLAGS} -o object/subtract_black.o src/preprocessing/subtract_black.cpp
  171. object/cameralist.o: src/tables/cameralist.cpp
  172. ${CXX} -c -DLIBRAW_NOTHREADS ${CFLAGS} -o object/cameralist.o src/tables/cameralist.cpp
  173. object/colorconst.o: src/tables/colorconst.cpp
  174. ${CXX} -c -DLIBRAW_NOTHREADS ${CFLAGS} -o object/colorconst.o src/tables/colorconst.cpp
  175. object/colordata.o: src/tables/colordata.cpp
  176. ${CXX} -c -DLIBRAW_NOTHREADS ${CFLAGS} -o object/colordata.o src/tables/colordata.cpp
  177. object/wblists.o: src/tables/wblists.cpp
  178. ${CXX} -c -DLIBRAW_NOTHREADS ${CFLAGS} -o object/wblists.o src/tables/wblists.cpp
  179. object/curves.o: src/utils/curves.cpp
  180. ${CXX} -c -DLIBRAW_NOTHREADS ${CFLAGS} -o object/curves.o src/utils/curves.cpp
  181. object/decoder_info.o: src/utils/decoder_info.cpp
  182. ${CXX} -c -DLIBRAW_NOTHREADS ${CFLAGS} -o object/decoder_info.o src/utils/decoder_info.cpp
  183. object/init_close_utils.o: src/utils/init_close_utils.cpp
  184. ${CXX} -c -DLIBRAW_NOTHREADS ${CFLAGS} -o object/init_close_utils.o src/utils/init_close_utils.cpp
  185. object/open.o: src/utils/open.cpp
  186. ${CXX} -c -DLIBRAW_NOTHREADS ${CFLAGS} -o object/open.o src/utils/open.cpp
  187. object/phaseone_processing.o: src/utils/phaseone_processing.cpp
  188. ${CXX} -c -DLIBRAW_NOTHREADS ${CFLAGS} -o object/phaseone_processing.o src/utils/phaseone_processing.cpp
  189. object/read_utils.o: src/utils/read_utils.cpp
  190. ${CXX} -c -DLIBRAW_NOTHREADS ${CFLAGS} -o object/read_utils.o src/utils/read_utils.cpp
  191. object/thumb_utils.o: src/utils/thumb_utils.cpp
  192. ${CXX} -c -DLIBRAW_NOTHREADS ${CFLAGS} -o object/thumb_utils.o src/utils/thumb_utils.cpp
  193. object/utils_dcraw.o: src/utils/utils_dcraw.cpp
  194. ${CXX} -c -DLIBRAW_NOTHREADS ${CFLAGS} -o object/utils_dcraw.o src/utils/utils_dcraw.cpp
  195. object/utils_libraw.o: src/utils/utils_libraw.cpp
  196. ${CXX} -c -DLIBRAW_NOTHREADS ${CFLAGS} -o object/utils_libraw.o src/utils/utils_libraw.cpp
  197. object/file_write.o: src/write/file_write.cpp
  198. ${CXX} -c -DLIBRAW_NOTHREADS ${CFLAGS} -o object/file_write.o src/write/file_write.cpp
  199. object/tiff_writer.o: src/write/tiff_writer.cpp
  200. ${CXX} -c -DLIBRAW_NOTHREADS ${CFLAGS} -o object/tiff_writer.o src/write/tiff_writer.cpp
  201. object/x3f_parse_process.o: src/x3f/x3f_parse_process.cpp
  202. ${CXX} -c -DLIBRAW_NOTHREADS ${CFLAGS} -o object/x3f_parse_process.o src/x3f/x3f_parse_process.cpp
  203. object/x3f_utils_patched.o: src/x3f/x3f_utils_patched.cpp
  204. ${CXX} -c -DLIBRAW_NOTHREADS ${CFLAGS} -o object/x3f_utils_patched.o src/x3f/x3f_utils_patched.cpp