Debian Codegraph @

tools/Makefile

raw
1 PTTEST_OBJS = pttest.o
2 SPTDEMO_OBJS = spt_demo.o ../src/spt_status.o ../src/strlcpy.o
3
4 PS_STATUS_C_URL = "http://git.postgresql.org/gitweb?p=postgresql.git;a=blob_plain;f=src/backend/utils/misc/ps_status.c;hb=HEAD"
5 PS_STATUS_H_URL = "http://git.postgresql.org/gitweb?p=postgresql.git;a=blob_plain;f=src/include/utils/ps_status.h;hb=HEAD"
6
7 CFLAGS = -g -Wall
8
9 CURL = wget -O -
10
11
12 all: pttest sptdemo prctl_demo
13
14 pttest: $(PTTEST_OBJS)
15
16 sptdemo: $(SPTDEMO_OBJS)
17 $(CC) $(LDFLAGS) $^ -o $@
18
19 pgsources: ps_status.c ps_status.h
20
21 ps_status.c :
22 $(CURL) $(PS_STATUS_C_URL) > $@
23
24 ps_status.h :
25 $(CURL) $(PS_STATUS_H_URL) > $@
26