Makefile 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. #
  2. # db_orasel Makefile
  3. #
  4. include ../../src/Makefile.defs
  5. auto_gen=
  6. NAME=kamailio_orasel
  7. include ../../src/Makefile.sources
  8. ORAPATH=
  9. # use for multiple client sdk version install
  10. ifneq ($(ORAVERSION),)
  11. ORAVERDIR=/$(ORAVERSION)
  12. endif
  13. # use include/library path's for full client installation
  14. ifneq ($(ORAHOME),)
  15. DEFS +=-I$(ORAHOME)/include
  16. LIBS +=-L$(ORAHOME)/lib
  17. ifeq ($(ORAPATH),)
  18. ORAPATH=$(ORAHOME)/lib
  19. endif
  20. else
  21. # use standard know paths oci.h locations (linux)
  22. DEFS +=-I$(LOCALBASE)/include/oracle$(ORAVERDIR) \
  23. -I$(SYSBASE)/include/oracle$(ORAVERDIR)
  24. endif
  25. # search 'so' path if it non standard (possible liboclntsh locations on linux)
  26. ifeq ($(ORAPATH),)
  27. ORAPATH=$(shell [ -f $(LOCALBASE)/lib64/oracle$(ORAVERDIR)/libocci.so ] && \
  28. echo $(LOCALBASE)/lib64/oracle$(ORAVERDIR) )
  29. endif
  30. ifeq ($(ORAPATH),)
  31. ORAPATH=$(shell [ -f $(SYSBASE)/lib64/oracle$(ORAVERDIR)/libocci.so ] && \
  32. echo $(SYSBASE)/lib64/oracle$(ORAVERDIR) )
  33. endif
  34. ifeq ($(ORAPATH),)
  35. ORAPATH=$(shell [ -f $(SYSBASE)/lib/oracle$(ORAVERDIR)/libocci.so ] && \
  36. echo $(SYSBASE)/lib/oracle$(ORAVERDIR) )
  37. endif
  38. ifeq ($(ORAPATH),)
  39. ORAPATH=$(shell [ -f $(SYSBASE)/lib/oracle$(ORAVERDIR)/libocci.so ] && \
  40. echo $(SYSBASE)/lib/oracle$(ORAVERDIR) )
  41. endif
  42. ifneq ($(ORAPATH),)
  43. LIBS +=-L$(ORAPATH)
  44. endif
  45. LIBS +=-locci -lclntsh
  46. #DEFS +=-DLINUX -D_GNU_SOURCE -D_REENTRANT
  47. #LIBS +=-lpthread
  48. ifneq ($(ORAPATH),)
  49. LIBS +=-Wl,-rpath $(ORAPATH)
  50. endif
  51. include ../../src/Makefile.rules
  52. modules: