]> granicus.if.org Git - postgresql/blob - contrib/pg_controldata/Makefile
I had a need to read such things as the backend locale and the catalog
[postgresql] / contrib / pg_controldata / Makefile
1 #
2 # $Header: /cvsroot/pgsql/contrib/pg_controldata/Attic/Makefile,v 1.1 2001/02/23 20:38:35 momjian Exp $
3 #
4
5 subdir = contrib/pg_controldata
6 top_builddir = ../..
7 include $(top_builddir)/src/Makefile.global
8
9 override CPPFLAGS := -I$(libpq_srcdir) $(CPPFLAGS)
10
11 OBJS    = pg_controldata.o
12
13 all: pg_controldata
14
15 pg_controldata: $(OBJS) $(libpq_builddir)/libpq.a
16         $(CC) $(CFLAGS) $(OBJS) $(libpq) $(LDFLAGS) $(LIBS) -o $@
17
18 install: all installdirs
19         $(INSTALL_PROGRAM) pg_controldata$(X)   $(bindir)
20         $(INSTALL_DATA) README.pg_controldata   $(docdir)/contrib
21
22 installdirs:
23         $(mkinstalldirs) $(bindir) $(docdir)/contrib
24
25 uninstall:
26         rm -f $(bindir)/pg_controldata$(X) $(docdir)/contrib/README.pg_controldata
27
28 clean distclean maintainer-clean:
29         rm -f pg_controldata$(X) $(OBJS)
30
31 depend dep:
32         $(CC) -MM -MG $(CFLAGS) *.c > depend
33
34 ifeq (depend,$(wildcard depend))
35 include depend
36 endif