• -I/usr/include/postgresql: Where to look for include files for Postgres.

  • -L/usr/lib/x86_64-linux-gnu: Where to look for libraries for Postgres.

  • -lpq: The library to link with. lpq is Makefile-speak for libpq.so.