forked from gleu/pgstats
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
26 lines (19 loc) · 662 Bytes
/
Makefile
File metadata and controls
26 lines (19 loc) · 662 Bytes
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
PGFILEDESC = "Statistics utilities"
PGAPPICON = win32
PROGRAMS = pgcsvstat pgstat pgdisplay pgwaitevent pgreport
PG_CPPFLAGS = -I$(libpq_srcdir)
PG_LIBS = $(libpq_pgport)
SCRIPTS_built = pgcsvstat pgstat pgdisplay pgwaitevent pgreport
EXTRA_CLEAN = rm -f $(addsuffix $(X), $(PROGRAMS)) $(addsuffix .o, $(PROGRAMS))
PG_CONFIG = pg_config
PGXS := $(shell $(PG_CONFIG) --pgxs)
include $(PGXS)
all: $(PROGRAMS)
pgreport.o: pgreport_queries.h
%: %.o $(WIN32RES)
$(CC) $(CFLAGS) $^ $(libpq_pgport) $(LDFLAGS) -lpgfeutils -lpgcommon -lm -o $@$(X)
pgcsvstat: pgcsvstat.o
pgdisplay: pgdisplay.o
pgstat: pgstat.o
pgwaitevent: pgwaitevent.o
pgreport: pgreport.o