head	1.6;
access;
symbols
	PG95_1_01:1.6
	PG95_1_0:1.5
	PG95_beta_03:1.4
	PG95_beta_02:1.4
	PG95_beta:1.4;
locks; strict;
comment	@# @;


1.6
date	96.02.24.01.27.21;	author jolly;	state Exp;
branches;
next	1.5;

1.5
date	95.08.30.21.51.22;	author jolly;	state Exp;
branches;
next	1.4;

1.4
date	95.03.23.01.24.52;	author andrew;	state Exp;
branches;
next	1.3;

1.3
date	95.03.23.01.23.00;	author andrew;	state Exp;
branches;
next	1.2;

1.2
date	95.03.21.07.00.56;	author andrew;	state Exp;
branches;
next	1.1;

1.1
date	95.03.09.22.59.26;	author andrew;	state Exp;
branches;
next	;


desc
@@


1.6
log
@.
@
text
@#-------------------------------------------------------------------------
#
# Makefile--
#    Makefile for tutorial/C-code
#
# Copyright (c) 1994, Regents of the University of California
#
#
# IDENTIFICATION
#    $Header: /home/jolly/POSTGRES_MASTER_CVS/src/tutorial/Makefile,v 1.5 1995/08/30 21:51:22 jolly Exp $
#
#-------------------------------------------------------------------------

MKDIR=	../mk
include $(MKDIR)/postgres.mk

VPATH:= $(VPATH):C-code

#
# build dynamically-loaded object files
#
DLOBJS= complex$(SLSUFF) funcs$(SLSUFF) 

#
# ... plus test query inputs
#
CREATEFILES= $(DLOBJS:%=$(objdir)/%) \
	advanced.sql basics.sql complex.sql funcs.sql syscat.sql

include $(MKDIR)/postgres.user.mk

CFLAGS+= -I$(srcdir)/backend

CLEANFILES+= $(notdir $(CREATEFILES))

all:: $(CREATEFILES)



@


1.5
log
@changed the naming of files to *.source and have the Makefile
convert them into *.sql
@
text
@d10 1
a10 1
#    $Header: /usr/local/devel/pglite/cvs/src/tutorial/Makefile,v 1.4 1995/03/23 01:24:52 andrew Exp $
@


1.4
log
@minor fix
@
text
@d10 1
a10 1
#    $Header: /usr/local/devel/pglite/cvs/src/tutorial/Makefile,v 1.3 1995/03/23 01:23:00 andrew Exp $
d22 1
a22 1
DLOBJS= complex.o funcs.o 
d24 5
a28 1
CREATEFILES= $(DLOBJS:%=$(objdir)/%)
d30 1
d32 1
a32 1
include $(MKDIR)/postgres.user.mk
@


1.3
log
@works for hpux, sparc and ultrix4 ports
@
text
@d10 1
a10 1
#    $Header: /usr/local/devel/pglite/cvs/src/tutorial/Makefile,v 1.2 1995/03/21 07:00:56 andrew Exp $
d29 1
a29 1
CLEANFILES+= $(CREATEFILES)
@


1.2
log
@switch over to gmake
@
text
@d10 1
a10 1
#    $Header: /usr/local/devel/pglite/cvs/src/tutorial/Makefile,v 1.1 1995/03/09 22:59:26 andrew Exp $
d24 1
a24 1
CREATEFILES= $(DLOBJS)
@


1.1
log
@SQL tutorial scripts.
@
text
@d10 1
a10 1
#    $Header: /usr/local/devel/pglite/cvs/src/test/demo/Makefile,v 1.1.1.1 1994/11/07 05:19:59 andrew Exp $
d14 2
a15 1
.include <postgres.global.mk>
d17 1
a17 1
.include <postgres.prog.mk>
d24 4
a27 4
#
# ... plus test query inputs
#
CREATEFILES= ${DLOBJS:S/^/C-code\//g}
d29 1
a29 6
#
# ... plus exports files
#
.if defined(EXPSUFF)
CREATEFILES+= ${DLOBJS:S/.o/${EXPSUFF}/g}
.endif
d31 1
a31 11
#
# ... plus shared libraries
#
.if defined(SLSUFF)
.  if (${SLSUFF} != ".o")
CREATEFILES+= ${DLOBJS:S/.o/${SLSUFF}/g}
.    if (${PORTNAME} == "alpha")
CLEANFILES+= so_locations
.    endif
.  endif
.endif
a32 1
CLEANFILES+= ${CREATEFILES} ${OUTFILES} ${DLOBJS}
a33 5
#
# prepare to run the test (including clean-up after the last run)
#
all: ${CREATEFILES}
	rm -f ${OUTFILES}
@
