1. camlspotter
  2. camlimages

Commits

camlspotter  committed 46bfbab

exif and all_formats

  • Participants
  • Parent commits d160c2b
  • Branches default

Comments (0)

Files changed (1)

File src/OMakefile

View file
 CFILES_jpeg_na[]=
   jpeg_na
 
+CFILES_exif[]=
+  exif_c
+
+CFILES_exif_na[]=
+  exif_na
+
 CFILES_png[]=
   pngread
   pngwrite
 CFILES_ps_na[]=
 
 CFILES_lib(name) =
-  CFILES_VAR = $(if $(mem $(name), all supported $(SUPPORTED_SUBPACKAGES)), CFILES_$(name), CFILES_$(name)_na)
+  CFILES_VAR = $(if $(mem $(name), all all_formats supported $(SUPPORTED_SUBPACKAGES)), CFILES_$(name), CFILES_$(name)_na)
   value $(getvar $(CFILES_VAR))
 
 CFILES_supported=
   foreach(p, $(SUPPORTED_FORMATS))
     value $(CFILES_lib $(p))
 
-CFILES_all=
+CFILES_all_formats=
   foreach(p, $(FORMATS))
     value $(CFILES_lib $(p))
 
   jpeg
   oJpeg
 
+FILES_exif[]=
+  exifutil
+  exif
+  exifanalyze
+
+exifanalyze.auto.mli: exifanalyze.ml
+    $(OCamlC) -c -i exifanalyze.ml > $@
+
 FILES_png[]=
   png
   oPng
   foreach(p, $(SUPPORTED_FORMATS))
     value $(getvar FILES_$(p))
 
-FILES_all=
+FILES_all_formats=
   foreach(p, $(FORMATS))
     value $(getvar FILES_$(p))
 
 
 LDFLAGS_core[]=
 
-#LDFLAGS_supported=
-#  foreach(p, $(SUPPORTED_FORMATS))
-#    value $(getvar LDFLAGS_$(p))
-
 LDFLAGS_supported=
   x=
   foreach(p, $(SUPPORTED_FORMATS))
     export
   value $(x)
 
-LDFLAGS_all=
+LDFLAGS_all_formats=
   x=
   foreach(p, $(FORMATS))
     x+= $(getvar LDFLAGS_$(p))
 
 LIBRARIES=
   # CR jfurue: lablgtk2, freetype and graphics may not be buildable
-  foreach(i, core $(FORMATS) supported all $(SUPPORTED_NON_FORMATS))
+  foreach(i, core $(FORMATS) all_formats supported $(SUPPORTED_NON_FORMATS))
     MakeLibOCaml($(i))
 
 libraries: $(LIBRARIES)
 
 clean:
-  rm -f $(LIBRARY_PREFIX).spot
+  rm -f *.sp*t *.cmt*
   rm -f $(filter-proper-targets $(ls R, .))
 
 LocalOCamlGeneratedFiles(camlimages.ml)
     value META \
       $(glob i, *.mli) \
       $(glob i, *.cmi) \
-      $(glob i, *.spot) \
-      $(glob i, *.spit) \
+      $(glob i, *.cmt) \
+      $(glob i, *.cmti) \
       $(glob i, *.cma) \
       $(glob i, *.cmxa) \
       $(glob i, *.a) \
   value $(OCAMLFIND) remove $(LIBRARY_PREFIX)
 
 install: all
+  $(UNINSTALL) # I get bored typing ocamlfind remove camlimages each time before omake install
   $(INSTALL)
 
 .PHONY: uninstall
 
 uninstall:
-  $(OCAMLFIND) remove camlimages
+  $(UNINSTALL)
 
 # Author's personal thing
 if $(defined BIG_ROOT)