Makefile 812 B

12345678910111213141516171819202122232425262728293031323334353637
  1. #
  2. # WARNING: do not run this directly, it should be run by the master Makefile
  3. include ../../Makefile.defs
  4. auto_gen=
  5. NAME=evapi.so
  6. ifeq ($(CROSS_COMPILE),)
  7. BUILDER = $(shell which pkg-config)
  8. ifneq ($(BUILDER),)
  9. PKGLIBUV = $(shell $(BUILDER) --exists libev > /dev/null 2>&1 ; echo $$? )
  10. ifneq ($(PKGLIBUV),0)
  11. BUILDER =
  12. endif
  13. endif
  14. endif
  15. ifneq ($(BUILDER),)
  16. DEFS += $(shell $(BUILDER) --cflags libev)
  17. LIBS += $(shell $(BUILDER) --libs libev)
  18. else
  19. ifeq ($(OS), darwin)
  20. DEFS += -I/opt/local/include
  21. LIBS += -L/opt/local/lib
  22. endif
  23. DEFS += -I$(LOCALBASE)/include -I$(SYSBASE)/include
  24. LIBS += -L$(LOCALBASE)/lib -L$(SYSBASE)/lib -lev
  25. endif
  26. DEFS+=-DKAMAILIO_MOD_INTERFACE
  27. SERLIBPATH=../../lib
  28. SER_LIBS+=$(SERLIBPATH)/srutils/srutils
  29. SER_LIBS+=$(SERLIBPATH)/kcore/kcore
  30. include ../../Makefile.modules