forked from gregs1104/clearxlogtail
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathMakefile
47 lines (32 loc) · 1.03 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
#-------------------------------------------------------------------------
#
# Makefile for src/bin/pg_clearxlogtail
#
# Copyright (c) 1998-2008, PostgreSQL Global Development Group
#
#-------------------------------------------------------------------------
PGFILEDESC = "pg_clearxlogtail - clear unused space at xlog tail"
ifdef USE_PGXS
OBJS = pg_clearxlogtail.o
PROGRAM = pg_clearxlogtail
PG_CONFIG = pg_config
PGXS := $(shell $(PG_CONFIG) --pgxs)
include $(PGXS)
else
subdir = src/bin/pg_clearxlogtail
top_builddir = ../../..
include $(top_builddir)/src/Makefile.global
override CPPFLAGS += -DFRONTEND
OBJS= pg_clearxlogtail.o $(WIN32RES)
all: pg_clearxlogtail
pg_clearxlogtail: $(OBJS)
$(CC) $(CFLAGS) $^ $(LDFLAGS) $(LIBS) -o $@$(X)
install: all installdirs
$(INSTALL_PROGRAM) pg_clearxlogtail$(X) '$(DESTDIR)$(bindir)/pg_clearxlogtail$(X)'
installdirs:
$(mkinstalldirs) '$(DESTDIR)$(bindir)'
uninstall:
rm -f '$(DESTDIR)$(bindir)/pg_clearxlogtail$(X)'
clean distclean maintainer-clean:
rm -f pg_clearxlogtail$(X) $(OBJS)
endif