init
This commit is contained in:
71
2
Executable file
71
2
Executable file
@@ -0,0 +1,71 @@
|
||||
#-------------------------------------------------------------------------
|
||||
#
|
||||
# Makefile for src/bin/psql
|
||||
#
|
||||
# Portions Copyright (c) 1996-2016, PostgreSQL Global Development Group
|
||||
# Portions Copyright (c) 1994, Regents of the University of California
|
||||
#
|
||||
# src/bin/psql/Makefile
|
||||
#
|
||||
#-------------------------------------------------------------------------
|
||||
|
||||
PGFILEDESC = "psql - the PostgreSQL interactive terminal"
|
||||
PGAPPICON=win32
|
||||
|
||||
subdir = src/bin/psql
|
||||
top_builddir = ../../..
|
||||
include $(top_builddir)/src/Makefile.global
|
||||
|
||||
REFDOCDIR= $(top_srcdir)/doc/src/sgml/ref
|
||||
|
||||
override CPPFLAGS := -I. -I$(srcdir) -I$(libpq_srcdir) $(CPPFLAGS)
|
||||
LDFLAGS_INTERNAL += -L$(top_builddir)/src/fe_utils -lpgfeutils $(libpq_pgport)
|
||||
|
||||
OBJS= command.o common.o help.o input.o stringutils.o mainloop.o copy.o \
|
||||
startup.o prompt.o variables.o large_obj.o describe.o \
|
||||
crosstabview.o tab-complete.o \
|
||||
sql_help.o psqlscanslash.o \
|
||||
$(WIN32RES)
|
||||
|
||||
|
||||
all: psql
|
||||
|
||||
psql: $(OBJS) | submake-libpq submake-libpgport submake-libpgfeutils
|
||||
$(CC) $(CFLAGS) $(OBJS) -L$(top_builddir)/src/interfaces/libpq/encryptsql/build/lib -lencryptsql $(LDFLAGS) $(LDFLAGS_EX) $(LIBS) -o $@$(X)
|
||||
|
||||
help.o: sql_help.h
|
||||
|
||||
# See notes in src/backend/parser/Makefile about the following two rules
|
||||
sql_help.c: sql_help.h
|
||||
touch $@
|
||||
|
||||
sql_help.h: create_help.pl $(wildcard $(REFDOCDIR)/*.sgml)
|
||||
$(PERL) $< $(REFDOCDIR) $*
|
||||
|
||||
psqlscanslash.c: FLEXFLAGS = -Cfe -p -p
|
||||
psqlscanslash.c: FLEX_NO_BACKUP=yes
|
||||
|
||||
# Latest flex causes warnings in this file.
|
||||
ifeq ($(GCC),yes)
|
||||
psqlscanslash.o: CFLAGS += -Wno-error
|
||||
endif
|
||||
|
||||
distprep: sql_help.h sql_help.c psqlscanslash.c
|
||||
|
||||
install: all installdirs
|
||||
$(INSTALL_PROGRAM) psql$(X) '$(DESTDIR)$(bindir)/psql$(X)'
|
||||
$(INSTALL_DATA) $(srcdir)/psqlrc.sample '$(DESTDIR)$(datadir)/psqlrc.sample'
|
||||
|
||||
installdirs:
|
||||
$(MKDIR_P) '$(DESTDIR)$(bindir)' '$(DESTDIR)$(datadir)'
|
||||
|
||||
uninstall:
|
||||
rm -f '$(DESTDIR)$(bindir)/psql$(X)' '$(DESTDIR)$(datadir)/psqlrc.sample'
|
||||
|
||||
clean distclean:
|
||||
rm -f psql$(X) $(OBJS) lex.backup
|
||||
|
||||
# files removed here are supposed to be in the distribution tarball,
|
||||
# so do not clean them in the clean/distclean rules
|
||||
maintainer-clean: distclean
|
||||
rm -f sql_help.h sql_help.c psqlscanslash.c
|
||||
Reference in New Issue
Block a user