/src/wrappers/zmq/library/externals/Makefile

http://github.com/tybor/Liberty · Makefile · 22 lines · 8 code · 8 blank · 6 comment · 0 complexity · 308759614614de2e671fd64b5515e5a4 MD5 · raw file

  1. XML=zmq.gcc-xml
  2. HEADER=plugin/c/zmq_liberty.h
  3. HEADERS=/usr/include/zmq.h
  4. wrappers: $(XML)
  5. wrappers-generator --local $(XML) $(HEADERS)
  6. ## Previous versions used
  7. ## `pkg-config --cflags-only-I libzmq| cut -c 3- |tr --delete '[:space:]' `/zmq.h
  8. ## to Pick the included directories from the compilation flags, hoping
  9. ## that only one is given, cut from the third character, skipping the '-I'
  10. ## remove all space characters then add /zmq.h
  11. ## Since it does not work reliably I now assume that the library is installed in usual places.
  12. $(XML):
  13. pkg-config --exists libzmq --atleast-version=2.1.9
  14. gccxml `pkg-config --cflags libzmq` $(HEADER) -fxml=$(XML)