]> granicus.if.org Git - postgresql/blob - src/backend/tcop/Makefile
From: t-ishii@sra.co.jp
[postgresql] / src / backend / tcop / Makefile
1 #-------------------------------------------------------------------------
2 #
3 # Makefile--
4 #    Makefile for tcop
5 #
6 # IDENTIFICATION
7 #    $Header: /cvsroot/pgsql/src/backend/tcop/Makefile,v 1.18 1998/07/26 04:30:46 scrappy Exp $
8 #
9 #-------------------------------------------------------------------------
10
11 SRCDIR= ../..
12 include ../../Makefile.global
13
14 CFLAGS+= -I..
15
16 ifdef MULTIBYTE
17 CFLAGS+= $(MBFLAGS)
18 endif
19
20 ifeq ($(CC), gcc)
21 CFLAGS+= -Wno-error
22 endif
23
24 OBJS= dest.o fastpath.o postgres.o pquery.o utility.o
25
26 all: SUBSYS.o
27
28 SUBSYS.o: $(OBJS)
29         $(LD) -r -o SUBSYS.o $(OBJS)
30
31 # The following dependencies are picked up by the make dep, but since 
32 # not everyone can do make dep, and these are particularly important
33 # dependencies (because they don't even exist until you make them),
34 # they are hardcoded here.
35
36 utility.o: ../parse.h ../fmgr.h
37 aclchk.o: ../fmgr.h
38 fastpath.o: ../fmgr.h
39 postgres.o: ../fmgr.h
40
41 ../parse.h: 
42         $(MAKE) -C .. parse.h
43
44 ../fmgr.h: 
45         $(MAKE) -C .. fmgr.h
46
47 dep depend: ../parse.h ../fmgr.h
48         $(CC) -MM $(CFLAGS) *.c >depend
49
50 clean: 
51         rm -f SUBSYS.o $(OBJS) 
52
53 ifeq (depend,$(wildcard depend))
54 include depend
55 endif
56