mirror of
https://git.postgresql.org/git/postgresql.git
synced 2024-12-21 08:29:39 +08:00
43 lines
747 B
Makefile
43 lines
747 B
Makefile
|
|
# ----------
|
|
# pg_dumplo - Makefile for compilation out of PostgreSQL contrib tree
|
|
# ----------
|
|
|
|
|
|
# Set correct values
|
|
#
|
|
CFLAGS = -Wall -fpic
|
|
CC = gcc
|
|
RM = rm
|
|
INCLUDE = -I/usr/include/pgsql
|
|
LIBS =-L/usr/lib/postgresql/lib -lpq
|
|
|
|
# Comment this option if your system not has getopt_long()
|
|
#
|
|
HAVE_GETOPT_LONG = -DHAVE_GETOPT_LONG
|
|
|
|
|
|
# --------------------------- not edit ---------------------------------
|
|
|
|
PROGRAM = pg_dumplo
|
|
|
|
OBJECTS = main.o lo_export.o lo_import.o utils.o
|
|
|
|
CFLAGS += -DOUT_OF_PG $(HAVE_GETOPT_LONG)
|
|
|
|
COMPILE = $(CC) $(CPPFLAGS) $(CFLAGS) $(INCLUDE)
|
|
LINK = $(CC) $(CFLAGS) -o $@ $(LIBS)
|
|
|
|
|
|
all: $(PROGRAM)
|
|
|
|
$(PROGRAM): $(OBJECTS)
|
|
$(LINK) $(OBJECTS)
|
|
|
|
.c.o: $<
|
|
$(COMPILE) -c $<
|
|
|
|
clean:
|
|
$(RM) -f *~ $(OBJECTS) $(PROGRAM)
|
|
|