]> granicus.if.org Git - postgresql/blob - src/backend/utils/misc/Makefile
Make postgresql.conf.sample match the initdb defaults. This fixes
[postgresql] / src / backend / utils / misc / Makefile
1 #-------------------------------------------------------------------------
2 #
3 # Makefile--
4 #    Makefile for utils/misc
5 #
6 # IDENTIFICATION
7 #    $PostgreSQL: pgsql/src/backend/utils/misc/Makefile,v 1.26 2006/07/25 03:51:21 tgl Exp $
8 #
9 #-------------------------------------------------------------------------
10
11 subdir = src/backend/utils/misc
12 top_builddir = ../../../..
13 include $(top_builddir)/src/Makefile.global
14
15 override CPPFLAGS := -I$(srcdir) $(CPPFLAGS)
16
17 OBJS = guc.o help_config.o pg_rusage.o ps_status.o superuser.o tzparser.o
18
19 # This location might depend on the installation directories. Therefore
20 # we can't subsitute it into pg_config.h.
21 ifdef krb_srvtab
22 override CPPFLAGS += -DPG_KRB_SRVTAB='"$(krb_srvtab)"'
23 endif
24
25
26 all: SUBSYS.o
27
28 SUBSYS.o: $(OBJS)
29         $(LD) $(LDREL) $(LDOUT) SUBSYS.o $(OBJS)
30
31 # guc-file is compiled as part of guc
32 guc.o: $(srcdir)/guc-file.c
33
34 $(srcdir)/guc-file.c: guc-file.l
35 ifdef FLEX
36         $(FLEX) $(FLEXFLAGS) -o'$@' $<
37 else
38         @$(missing) flex $< $@
39 endif
40
41 # Note: guc-file.c is not deleted by 'make clean',
42 # since we want to ship it in distribution tarballs.
43 clean: 
44         rm -f SUBSYS.o $(OBJS)
45         @rm -f lex.yy.c
46
47 depend dep:
48         $(CC) -MM $(CFLAGS) *.c >depend
49
50 ifeq (depend,$(wildcard depend))
51 include depend
52 endif