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