head	1.4;
access;
symbols;
locks; strict;
comment	@# @;


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.4
log
@minor fix
@
text
@#-------------------------------------------------------------------------
#
# Makefile--
#    Makefile for tutorial/C-code
#
# Copyright (c) 1994, Regents of the University of California
#
#
# IDENTIFICATION
#    $Header: /usr/local/devel/pglite/cvs/src/tutorial/Makefile,v 1.3 1995/03/23 01:23:00 andrew Exp $
#
#-------------------------------------------------------------------------

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

VPATH:= $(VPATH):C-code

#
# build dynamically-loaded object files
#
DLOBJS= complex.o funcs.o 

CREATEFILES= $(DLOBJS:%=$(objdir)/%)


include $(MKDIR)/postgres.user.mk

CLEANFILES+= $(notdir $(CREATEFILES))

all:: $(CREATEFILES)



@


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}
@
