1996-07-09 02:22:35 -04:00
|
|
|
#-------------------------------------------------------------------------
|
|
|
|
|
#
|
|
|
|
|
# Makefile--
|
1996-11-12 06:43:32 -05:00
|
|
|
# Makefile for tutorial
|
1996-07-09 02:22:35 -04:00
|
|
|
#
|
|
|
|
|
# IDENTIFICATION
|
2002-09-05 14:28:46 -04:00
|
|
|
# $Header: /cvsroot/pgsql/src/tutorial/Makefile,v 1.16 2002/09/05 18:28:46 petere Exp $
|
1996-07-09 02:22:35 -04:00
|
|
|
#
|
|
|
|
|
#-------------------------------------------------------------------------
|
|
|
|
|
|
2000-08-31 12:12:35 -04:00
|
|
|
subdir = src/tutorial
|
|
|
|
|
top_builddir = ../..
|
|
|
|
|
include $(top_builddir)/src/Makefile.global
|
1996-07-09 02:22:35 -04:00
|
|
|
|
2000-10-20 17:04:27 -04:00
|
|
|
override CFLAGS+= $(CFLAGS_SL)
|
2002-09-05 14:28:46 -04:00
|
|
|
SHLIB_LINK = $(BE_DLLLIBS)
|
1998-01-04 14:13:04 -05:00
|
|
|
|
1996-07-09 02:22:35 -04:00
|
|
|
#
|
2001-10-26 16:45:33 -04:00
|
|
|
# DLOBJS are the dynamically-loaded object files. The "funcs" queries
|
1996-11-12 06:43:32 -05:00
|
|
|
# include CREATE FUNCTIONs that load routines from these files.
|
1996-07-09 02:22:35 -04:00
|
|
|
#
|
1996-11-18 01:07:56 -05:00
|
|
|
DLOBJS= complex$(DLSUFFIX) funcs$(DLSUFFIX)
|
1996-07-09 02:22:35 -04:00
|
|
|
|
1996-11-12 06:43:32 -05:00
|
|
|
QUERIES= advanced.sql basics.sql complex.sql funcs.sql syscat.sql
|
1998-02-28 18:37:10 -05:00
|
|
|
|
1998-02-28 23:52:59 -05:00
|
|
|
all: $(DLOBJS) $(QUERIES)
|
1996-07-09 02:22:35 -04:00
|
|
|
|
1996-11-12 06:43:32 -05:00
|
|
|
%.sql: %.source
|
|
|
|
|
rm -f $@; \
|
|
|
|
|
C=`pwd`; \
|
2001-10-26 16:45:33 -04:00
|
|
|
sed -e "s:_OBJWD_:$$C:g" < $< > $@
|
1996-07-09 02:22:35 -04:00
|
|
|
|
2002-07-30 13:47:58 -04:00
|
|
|
clean distclean maintainer-clean:
|
1998-02-28 23:52:59 -05:00
|
|
|
rm -f $(DLOBJS) $(QUERIES)
|