]> granicus.if.org Git - postgresql/blob - src/backend/tcop/Makefile
Move variable.c to commands/ and aclchk.c to catalog/.
[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.15 1998/01/05 18:42:59 momjian Exp $
8 #
9 #-------------------------------------------------------------------------
10
11 SRCDIR= ../..
12 include ../../Makefile.global
13
14 INCLUDE_OPT= -I.. 
15
16 CFLAGS+= $(INCLUDE_OPT) 
17
18 ifeq ($(CC), gcc)
19 CFLAGS+= -Wno-error
20 endif
21
22 OBJS= dest.o fastpath.o postgres.o pquery.o utility.o
23
24 all: SUBSYS.o
25
26 SUBSYS.o: $(OBJS)
27         $(LD) -r -o SUBSYS.o $(OBJS)
28
29 # The following dependencies are picked up by the make dep, but since 
30 # not everyone can do make dep, and these are particularly important
31 # dependencies (because they don't even exist until you make them),
32 # they are hardcoded here.
33
34 utility.o: ../parse.h ../fmgr.h
35 aclchk.o: ../fmgr.h
36 fastpath.o: ../fmgr.h
37 postgres.o: ../fmgr.h
38
39 ../parse.h: 
40         $(MAKE) -C .. parse.h
41
42 ../fmgr.h: 
43         $(MAKE) -C .. fmgr.h
44
45 dep: ../parse.h ../fmgr.h
46         $(CC) -MM $(INCLUDE_OPT) *.c >depend
47
48 clean: 
49         rm -f SUBSYS.o $(OBJS) 
50
51 ifeq (depend,$(wildcard depend))
52 include depend
53 endif
54