head	1.18;
access;
symbols
	release_4_2:1.17
	aix_ok:1.14;
locks; strict;
comment	@# @;


1.18
date	94.09.28.15.12.56;	author postdev;	state Exp;
branches;
next	1.17;

1.17
date	94.06.16.03.23.06;	author aoki;	state Exp;
branches;
next	1.16;

1.16
date	94.03.27.00.05.16;	author aoki;	state Exp;
branches;
next	1.15;

1.15
date	93.10.31.23.29.36;	author aoki;	state Exp;
branches;
next	1.14;

1.14
date	93.10.02.02.04.43;	author aoki;	state Exp;
branches;
next	1.13;

1.13
date	93.09.20.20.37.59;	author aoki;	state Exp;
branches;
next	1.12;

1.12
date	93.08.17.21.30.11;	author aoki;	state Exp;
branches;
next	1.11;

1.11
date	93.08.04.11.02.54;	author aoki;	state Exp;
branches;
next	1.10;

1.10
date	93.07.29.06.57.34;	author aoki;	state Exp;
branches;
next	1.9;

1.9
date	93.07.29.00.46.06;	author andrew;	state Exp;
branches;
next	1.8;

1.8
date	93.07.28.23.41.43;	author aoki;	state Exp;
branches;
next	1.7;

1.7
date	93.07.13.23.56.16;	author aoki;	state Exp;
branches;
next	1.6;

1.6
date	93.06.24.03.50.45;	author aoki;	state Exp;
branches;
next	1.5;

1.5
date	93.03.04.19.50.37;	author aoki;	state Exp;
branches;
next	1.4;

1.4
date	93.02.20.05.56.40;	author aoki;	state Exp;
branches;
next	1.3;

1.3
date	93.02.12.23.33.25;	author marc;	state Exp;
branches;
next	1.2;

1.2
date	93.01.16.03.50.11;	author aoki;	state Exp;
branches;
next	1.1;

1.1
date	92.12.22.02.02.06;	author aoki;	state Exp;
branches;
next	;


desc
@Makefile for the untrusted function process
@


1.18
log
@in irix5, -N ==> non_shared
@
text
@#
# $Header: /usr/people/postdev/src/bin/pg_ufp/RCS/Makefile,v 1.17 1994/06/16 03:23:06 aoki Exp postdev $
#

.include <postgres.global.mk>

PROG= pg_ufp

SRCS= ufp.c dfmgr.c dynloader.c

.PATH:	${.CURDIR}/../../backend/port/${PORTNAME} \
	${.CURDIR}/../../backend/utils/fmgr

CFLAGS+= -I${.CURDIR}/../../backend/port/${PORTNAME} \
	 -I${.CURDIR}/../../backend/${MAKEOBJDIR} \
	 -I${.CURDIR}/../../backend
CFLAGS+= -DUFP
#CFLAGS+= -DUFPDEBUG -DUFPDEBUG_PROTO

#
# This is basically copied from the port/<foo>/Makefile.inc
# (minus the lex/yacc libraries).
# Unfortunately, it must be sync'd by hand.
#
.if (${PORTNAME} == "ultrix4" || \
     ${PORTNAME} == "sparc" || \
     ${PORTNAME} == "sparc_solaris")
LDADD+= -ldl
.elif (${PORTNAME} == "alpha")
# nothing
.elif (${PORTNAME} == "hpux")
CFLAGS+= -W l,-E
LDFLAGS+= -W l,-E
LDADD+= -ldld
.elif (${PORTNAME} == "aix")
LDADD+= -lld
HEADERS+= dlfcn.h
SRCS+= dlfcn.c

LDFLAGS+= -bE:${PROG}.exp

${PROG}.exp: ${PROG}.noexp
	mv -f ${.ALLSRC} ${PROG}
	mkldexport ${PROG} ${BINDIR} > ${.TARGET}
	mv -f ${PROG} ${.ALLSRC}

${PROG}.noexp: ${OBJS}
	touch -f ${PROG}.exp
	${CC} ${LDFLAGS} -o ${.TARGET} ${OBJS} ${LDADD}

CLEANFILES+= ${PROG}.noexp ${PROG}.exp
.elif (${PORTNAME} == "linux")
LDFLAGS+= -N
LDADD+= -ldld
.else
# put the executable in OMAGIC format
.  if (${PORTNAME} != "irix5")
LDFLAGS+= -N
.  endif
.endif

.include <postgres.prog.mk>

.if defined(MAKE_EXPORTS)
${PROG}: ${PROG}.exp

installexp: ${PROG}.exp
.  if defined(OLD_MKDIR)
	@@-if test ! -d ${DESTDIR}${LIBDIR}; \
	then mkdir ${DESTDIR}${LIBDIR}; fi
.  endif
	${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 444 \
	${PROG}.exp ${DESTDIR}${LIBDIR}/${PROG}.exp

all: installexp
.endif
@


1.17
log
@solaris
@
text
@d2 1
a2 1
# $Header: /import/faerie/faerie/aoki/postgres/src/bin/pg_ufp/RCS/Makefile,v 1.16 1994/03/27 00:05:16 aoki Exp aoki $
d57 1
d59 1
@


1.16
log
@linux fixes
@
text
@d2 1
a2 1
# $Header: /usr/local/devel/postgres/src/bin/pg_ufp/RCS/Makefile,v 1.15 1993/10/31 23:29:36 aoki Exp aoki $
d25 3
a27 1
.if (${PORTNAME} == "ultrix4" || ${PORTNAME} == "sparc")
@


1.15
log
@alpha should have nothing, not -N
@
text
@d2 1
a2 1
# $Header: /import/faerie/aoki/postgres/src/bin/pg_ufp/RCS/Makefile,v 1.14 1993/10/02 02:04:43 aoki Exp aoki $
d50 3
@


1.14
log
@whoops.  messed up .exp order dependency (aix only)
@
text
@d2 1
a2 1
# $Header: /usr/local/devel/postgres/src/bin/pg_ufp/RCS/Makefile,v 1.13 1993/09/20 20:37:59 aoki Exp aoki $
d25 1
a25 1
.if (${PORTNAME} == "ultrix4")
d27 2
a32 2
.elif (${PORTNAME} == "sparc")
LDADD+= -ldl
@


1.13
log
@aix
@
text
@d2 1
a2 1
# $Header: /home2/aoki/master/src/bin/pg_ufp/RCS/Makefile,v 1.12 1993/08/17 21:30:11 aoki Exp $
d65 1
a65 1
	${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 444 \
d68 1
a68 1
afterinstall: installexp
@


1.12
log
@removed -N for ultrix
@
text
@d2 1
a2 1
# $Header: /home2/aoki/master/src/bin/pg_ufp/RCS/Makefile,v 1.11 1993/08/04 11:02:54 aoki Exp aoki $
a13 2


d33 17
a49 1
.elif (${PORTNAME} == "alpha")
d56 14
@


1.11
log
@removed -G 0 from ultrix (no longer needed)
sparc dl fix
@
text
@d2 1
a2 1
# $Header: /home2/aoki/postgres/src/bin/pg_ufp/RCS/Makefile,v 1.10 1993/07/29 06:57:34 aoki Exp aoki $
d23 3
a25 2
# this is basically copied from the port/<foo>/Makefile.inc
# and, unfortunately, must be sync'd by hand.
a27 1
LDFLAGS+= -N
d37 1
@


1.10
log
@was missing -ldl under ultrix4
@
text
@d2 1
a2 1
# $Header: /home2/aoki/postgres/src/bin/pg_ufp/RCS/Makefile,v 1.9 1993/07/29 00:46:06 andrew Exp aoki $
d22 4
d27 1
a27 2
CFLAGS+= -G 0
LDFLAGS+= -N -G 0
d33 3
@


1.9
log
@DLD now gone.
@
text
@d2 1
a2 1
# $Header: /private/src/postgres/src/bin/pg_ufp/RCS/Makefile,v 1.8 1993/07/28 23:41:43 aoki Exp andrew $
d25 1
@


1.8
log
@MAKEOBJDIR changes
@
text
@d2 1
a2 1
# $Header: /home2/aoki/postgres/src/bin/pg_ufp/RCS/Makefile,v 1.7 1993/07/13 23:56:16 aoki Exp aoki $
a10 6
.if defined(USE_DLD)
.PATH:	${.CURDIR}/../../backend/port/dld \
	${.CURDIR}/../../backend/utils/fmgr
CFLAGS+= -DUSE_DLD
LDADD+= -ldld
.else
d13 1
a13 1
.endif
@


1.7
log
@forgot to export symbols for hpux
@
text
@d2 1
a2 1
# $Header: /faerie/hpux/postgres/src/bin/pg_ufp/RCS/Makefile,v 1.6 1993/06/24 03:50:45 aoki Exp aoki $
d23 1
a23 1
	 -I${.CURDIR}/../../backend/obj \
@


1.6
log
@added hpux dynload flags
@
text
@d2 1
a2 1
# $Header$
d33 1
@


1.5
log
@added support for dld
@
text
@d1 4
d28 1
a28 1
.if ${PORTNAME} == "ultrix4"
d30 6
a35 1
LDFLAGS+= -G 0
a37 2
LDFLAGS+= -N

@


1.4
log
@ALL machines need -N!!!
@
text
@d7 10
a16 2
.PATH:	${.CURDIR}/../../backend/utils/fmgr \
	${.CURDIR}/../../backend/port/${PORTNAME}
d28 1
@


1.3
log
@-G 0 on ultrix only
@
text
@d14 1
d19 1
a20 1
.endif
@


1.2
log
@*** empty log message ***
@
text
@d14 2
a16 1

d19 1
@


1.1
log
@Initial revision
@
text
@d11 2
a12 1
	 -I${.CURDIR}/../../backend/obj
@
