]> granicus.if.org Git - postgresql/blob - src/backend/utils/misc/Makefile
New ps display code, works on more platforms.
[postgresql] / src / backend / utils / misc / Makefile
1 #-------------------------------------------------------------------------
2 #
3 # Makefile--
4 #    Makefile for utils/misc
5 #
6 # IDENTIFICATION
7 #    $Header: /cvsroot/pgsql/src/backend/utils/misc/Makefile,v 1.16 2000/06/04 01:44:34 petere Exp $
8 #
9 #-------------------------------------------------------------------------
10
11 SRCDIR = ../../..
12 include $(SRCDIR)/Makefile.global
13
14 OBJS = database.o superuser.o guc.o guc-file.o ps_status.o
15
16 all: SUBSYS.o
17
18 SUBSYS.o: $(OBJS)
19         $(LD) $(LDREL) $(LDOUT) SUBSYS.o $(OBJS)
20
21 guc-file.c: guc-file.l
22         $(LEX) $(LFLAGS) $<
23         sed -e 's/lex\.yy\.c/guc-file\.c/g' \
24             -e 's/^yy/GUC_yy/g' \
25             -e 's/\([^a-zA-Z0-9_]\)yy/\1GUC_yy/g' < lex.yy.c > $@
26         rm -f lex.yy.c
27
28
29 # Note: guc-file.c is not deleted by 'make clean',
30 # since we want to ship it in distribution tarballs.
31
32 clean: 
33         rm -f SUBSYS.o $(OBJS) lex.yy.c
34
35 depend dep:
36         $(CC) -MM $(CFLAGS) *.c >depend
37
38 ifeq (depend,$(wildcard depend))
39 include depend
40 endif