Makefile 642 B

12345678910111213141516171819202122232425262728293031
  1. # WARNING: do not run this directly, it should be run by the master Makefile
  2. include ../../Makefile.defs
  3. auto_gen=
  4. NAME=regex.so
  5. ifeq ($(CROSS_COMPILE),)
  6. PCRE_BUILDER = $(shell \
  7. if pkg-config --exists libcre; then \
  8. echo 'pkg-config libpcre'; \
  9. else \
  10. which pcre-config; \
  11. fi)
  12. endif
  13. ifeq ($(PCRE_BUILDER),)
  14. PCREDEFS=-I$(LOCALBASE)/include
  15. PCRELIBS=-L$(LOCALBASE)/lib -lpcre
  16. else
  17. PCREDEFS = $(shell $(PCRE_BUILDER) --cflags)
  18. PCRELIBS = $(shell $(PCRE_BUILDER) --libs)
  19. endif
  20. DEFS+=$(PCREDEFS)
  21. LIBS+=$(PCRELIBS)
  22. DEFS+=-DKAMAILIO_MOD_INTERFACE
  23. SERLIBPATH=../../lib
  24. SER_LIBS+=$(SERLIBPATH)/kmi/kmi
  25. include ../../Makefile.modules