/src/wrappers/Makefile

http://github.com/tybor/Liberty · Makefile · 43 lines · 24 code · 11 blank · 8 comment · 0 complexity · bc33dc493347108dc1c8d6a5989efaef MD5 · raw file

  1. ## Updates generated classes
  2. ## Since the actual length of C types depends on the architecture the class
  3. ## C_TYPES is generated everytime this Makefile is executed. Of course this makes
  4. ## crosscompiling really difficoult but we can live with this known bug for a
  5. ## while (Paolo 2013-04-09)
  6. LIBRARIES=common \
  7. ffi \
  8. posix \
  9. posix/dynamic-linking \
  10. readline \
  11. xml \
  12. zmq
  13. SUBMAKEFILES := $(shell find $(LIBRARIES) -name Makefile)
  14. ## Not working wrappers: llvm
  15. ## To be wrapped using GObject introspection framework: glib gobject gtk2 cairo gtk3 gdk3 gconf
  16. ## Unfinished wrappers: gconf gda gdk2 gio gtk-math-view gtk-source-view gtk-unix-print json-glib qt4 xml zlib
  17. CASTXML=$(shell which castxml)
  18. GCCXML=$(shell which gccxml)
  19. .PHONY: subdirs $(LIBRARIES) clean
  20. update: $(LIBRARIES)
  21. @echo Clusters that will be updated: $^
  22. ifdef CASTXML
  23. @echo using castxml
  24. else
  25. @echo using gccxml
  26. endif
  27. clean:
  28. @echo Removing generated files
  29. @$(MAKE) -C $@/library/externals/generated clean
  30. $(LIBRARIES) :
  31. @echo Updating generated classes of $@
  32. @$(MAKE) -C $@/library/externals/generated