You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

61 lines
1.7 KiB

  1. #-------------------------------------------------------------------------
  2. #
  3. # Makefile for ecpg library
  4. #
  5. # Portions Copyright (c) 1996-2019, PostgreSQL Global Development Group
  6. # Portions Copyright (c) 1994, Regents of the University of California
  7. #
  8. # src/interfaces/ecpg/ecpglib/Makefile
  9. #
  10. #-------------------------------------------------------------------------
  11. subdir = src/interfaces/ecpg/ecpglib
  12. top_builddir = ../../../..
  13. include $(top_builddir)/src/Makefile.global
  14. PGFILEDESC = "ECPG - embedded SQL in C"
  15. NAME= ecpg
  16. SO_MAJOR_VERSION= 6
  17. SO_MINOR_VERSION= $(MAJORVERSION)
  18. override CPPFLAGS := -I../include -I$(top_srcdir)/src/interfaces/ecpg/include \
  19. -I$(libpq_srcdir) -I$(top_builddir)/src/port -DFRONTEND $(CPPFLAGS)
  20. override CFLAGS += $(PTHREAD_CFLAGS)
  21. OBJS= execute.o typename.o descriptor.o sqlda.o data.o error.o prepare.o \
  22. memory.o connect.o misc.o $(WIN32RES)
  23. SHLIB_LINK_INTERNAL = -L../pgtypeslib -lpgtypes $(libpq_pgport_shlib)
  24. SHLIB_LINK = $(filter -lintl -lm, $(LIBS)) $(PTHREAD_LIBS)
  25. SHLIB_PREREQS = submake-libpq submake-pgtypeslib
  26. SHLIB_EXPORTS = exports.txt
  27. PKG_CONFIG_REQUIRES_PRIVATE = libpq libpgtypes
  28. all: all-lib
  29. .PHONY: submake-pgtypeslib
  30. submake-pgtypeslib:
  31. $(MAKE) -C $(top_builddir)/src/interfaces/ecpg/pgtypeslib all
  32. # Shared library stuff
  33. include $(top_srcdir)/src/Makefile.shlib
  34. # Make dependency on pg_config_paths.h visible.
  35. misc.o: misc.c $(top_builddir)/src/port/pg_config_paths.h
  36. $(top_builddir)/src/port/pg_config_paths.h:
  37. $(MAKE) -C $(top_builddir)/src/port pg_config_paths.h
  38. install: all installdirs install-lib
  39. installdirs: installdirs-lib
  40. uninstall: uninstall-lib
  41. clean distclean: clean-lib
  42. rm -f $(OBJS)
  43. maintainer-clean: distclean