1996-10-27 10:55:05 +01:00
|
|
|
#-------------------------------------------------------------------------
|
|
|
|
#
|
|
|
|
# Makefile--
|
|
|
|
# Makefile for tcop
|
|
|
|
#
|
|
|
|
# IDENTIFICATION
|
1998-01-05 19:43:18 +01:00
|
|
|
# $Header: /cvsroot/pgsql/src/backend/tcop/Makefile,v 1.15 1998/01/05 18:42:59 momjian Exp $
|
1996-10-27 10:55:05 +01:00
|
|
|
#
|
|
|
|
#-------------------------------------------------------------------------
|
|
|
|
|
1996-11-14 08:33:34 +01:00
|
|
|
SRCDIR= ../..
|
1996-10-27 10:55:05 +01:00
|
|
|
include ../../Makefile.global
|
|
|
|
|
1997-12-19 03:09:10 +01:00
|
|
|
INCLUDE_OPT= -I..
|
|
|
|
|
1997-04-24 15:25:07 +02:00
|
|
|
CFLAGS+= $(INCLUDE_OPT)
|
|
|
|
|
|
|
|
ifeq ($(CC), gcc)
|
|
|
|
CFLAGS+= -Wno-error
|
|
|
|
endif
|
1996-10-27 10:55:05 +01:00
|
|
|
|
1998-01-05 19:43:18 +01:00
|
|
|
OBJS= dest.o fastpath.o postgres.o pquery.o utility.o
|
1996-10-27 10:55:05 +01:00
|
|
|
|
|
|
|
all: SUBSYS.o
|
|
|
|
|
|
|
|
SUBSYS.o: $(OBJS)
|
|
|
|
$(LD) -r -o SUBSYS.o $(OBJS)
|
|
|
|
|
1996-11-18 03:26:57 +01:00
|
|
|
# The following dependencies are picked up by the make dep, but since
|
|
|
|
# not everyone can do make dep, and these are particularly important
|
|
|
|
# dependencies (because they don't even exist until you make them),
|
|
|
|
# they are hardcoded here.
|
|
|
|
|
|
|
|
utility.o: ../parse.h ../fmgr.h
|
|
|
|
aclchk.o: ../fmgr.h
|
|
|
|
fastpath.o: ../fmgr.h
|
|
|
|
postgres.o: ../fmgr.h
|
1996-10-27 10:55:05 +01:00
|
|
|
|
|
|
|
../parse.h:
|
1996-11-10 05:09:51 +01:00
|
|
|
$(MAKE) -C .. parse.h
|
1996-10-27 10:55:05 +01:00
|
|
|
|
1996-11-18 03:26:57 +01:00
|
|
|
../fmgr.h:
|
|
|
|
$(MAKE) -C .. fmgr.h
|
|
|
|
|
|
|
|
dep: ../parse.h ../fmgr.h
|
1996-10-27 10:55:05 +01:00
|
|
|
$(CC) -MM $(INCLUDE_OPT) *.c >depend
|
|
|
|
|
|
|
|
clean:
|
|
|
|
rm -f SUBSYS.o $(OBJS)
|
|
|
|
|
|
|
|
ifeq (depend,$(wildcard depend))
|
|
|
|
include depend
|
|
|
|
endif
|
|
|
|
|