forked from gleu/pgstats
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
26 lines (20 loc) · 774 Bytes
/
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
PGFILEDESC = "Statistics utilities"
PGAPPICON = win32
PROGRAMS = pgcsvstat pgstat pgdisplay pgwaitevent pgreport
PGFELIBS = pgfe_connect_utils.o pgfe_query_utils.o pgfe_cancel.o
PG_CPPFLAGS = -I$(libpq_srcdir)
PG_LIBS = $(libpq_pgport)
SCRIPTS_built = pgcsvstat pgstat pgdisplay pgwaitevent pgreport
EXTRA_CLEAN = $(addsuffix .o, $(PROGRAMS)) $(PGFELIBS)
PG_CONFIG = pg_config
PGXS := $(shell $(PG_CONFIG) --pgxs)
include $(PGXS)
all: $(PROGRAMS)
%: %.o $(WIN32RES)
$(CC) $(CFLAGS) $^ $(libpq_pgport) $(LDFLAGS) -L $(pkglibdir) -lpgcommon -lpgport -lm -o $@$(X)
pgcsvstat: pgcsvstat.o $(PGFELIBS)
pgdisplay: pgdisplay.o $(PGFELIBS)
pgstat: pgstat.o $(PGFELIBS)
pgwaitevent: pgwaitevent.o $(PGFELIBS)
pgreport: pgreport.o $(PGFELIBS)
pgreport.o: pgreport_queries.h