Makefile 1.5 KB

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