-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathMakefile
70 lines (56 loc) · 1.45 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
#-------------------------------------------------------------------------
#
# Makefile for src/bin/psql
#
# Portions Copyright (c) 1996-2022, 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 = ../../..
PG_CONFIG = pg_config
ifdef USE_PGXS
PGXS := $(shell $(PG_CONFIG) --pgxs)
include $(PGXS)
else
subdir = bin/
top_builddir = ../..
include $(top_builddir)/src/Makefile.global
include $(top_srcdir)/src/Makefile.global
endif
override CPPFLAGS := -I. -I$(srcdir) -I$(libpq_srcdir) -I$(top_srcdir)/src/include -I$(top_srcdir)/src/interfaces/libpq $(CPPFLAGS)
LDFLAGS_INTERNAL += -L$(top_builddir)/src/fe_utils -lpgfeutils $(libpq_pgport)
OBJS = \
$(WIN32RES) \
command.o \
common.o \
copy.o \
crosstabview.o \
describe.o \
help.o \
input.o \
large_obj.o \
mainloop.o \
prompt.o \
psqlscanslash.o \
cypher.o \
cypher.tab.o \
sql_help.o \
startup.o \
stringutils.o \
tab-complete.o \
variables.o
all: psql
cypher.c: cypher.l
flex -b -Cfe -p -p -o'cypher.c' cypher.l
cypher.tab.c: cypher.y
bison -d cypher.y
psql: cypher.tab.c cypher.c $(OBJS)
$(CC) $(CFLAGS) $(OBJS) $(LDFLAGS) $(LDFLAGS_EX) $(LIBS) -o agesql
.PHONY: clean
clean:
rm -f psql $(OBJS) cypher.c cypher.tab.c cypher.tab.h