File: Makefile

package info (click to toggle)
python-setproctitle 1.3.6-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 276 kB
  • sloc: ansic: 946; python: 658; makefile: 21
file content (26 lines) | stat: -rw-r--r-- 618 bytes parent folder | download | duplicates (3)
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
PTTEST_OBJS = pttest.o
SPTDEMO_OBJS = spt_demo.o ../src/spt_status.o ../src/strlcpy.o

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"
PS_STATUS_H_URL = "http://git.postgresql.org/gitweb?p=postgresql.git;a=blob_plain;f=src/include/utils/ps_status.h;hb=HEAD"

CFLAGS = -g -Wall

CURL = wget -O -


all: pttest sptdemo prctl_demo

pttest: $(PTTEST_OBJS)

sptdemo: $(SPTDEMO_OBJS)
	$(CC) $(LDFLAGS) $^ -o $@

pgsources: ps_status.c ps_status.h

ps_status.c :
	$(CURL) $(PS_STATUS_C_URL) > $@

ps_status.h :
	$(CURL) $(PS_STATUS_H_URL) > $@