OSDN Git Service

More cleanups. I can now compile without PORTNAME being defined n
[pg-rex/syncrep.git] / src / backend / utils / cache / Makefile
1 #-------------------------------------------------------------------------
2 #
3 # Makefile--
4 #    Makefile for utils/cache
5 #
6 # IDENTIFICATION
7 #    $Header: /cvsroot/pgsql/src/backend/utils/cache/Makefile,v 1.4 1997/12/19 02:08:05 scrappy Exp $
8 #
9 #-------------------------------------------------------------------------
10
11 SRCDIR = ../../..
12 include ../../../Makefile.global
13
14 INCLUDE_OPT = -I../.. 
15
16 ifdef PORTNAME
17 INCLUDE+=-I../../port/$(PORTNAME)    
18 endif
19
20 CFLAGS+=$(INCLUDE_OPT)
21
22 OBJS = catcache.o inval.o rel.o relcache.o syscache.o lsyscache.o fcache.o
23
24 all: SUBSYS.o
25
26 SUBSYS.o: $(OBJS)
27         $(LD) -r -o SUBSYS.o $(OBJS)
28
29 depend dep:
30         $(CC) -MM $(INCLUDE_OPT) *.c >depend
31
32 clean: 
33         rm -f SUBSYS.o $(OBJS)
34
35 ifeq (depend,$(wildcard depend))
36 include depend
37 endif
38