head	1.15;
access;
symbols
	release_4_2:1.14
	aix_ok:1.9;
locks; strict;
comment	@# @;


1.15
date	94.09.28.17.19.07;	author postdev;	state Exp;
branches;
next	1.14;

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

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

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

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

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

1.9
date	93.09.27.04.41.42;	author aoki;	state Exp;
branches;
next	1.8;

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

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

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

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

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

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

1.2
date	93.02.09.23.00.07;	author marc;	state Exp;
branches;
next	1.1;

1.1
date	92.11.25.19.35.27;	author marc;	state Exp;
branches;
next	;


desc
@@


1.15
log
@irix5 changes
@
text
@#
# $Header: /usr/people/postdev/src/tools/bmake/RCS/Makefile,v 1.14 1994/06/29 23:51:18 aoki Exp postdev $
#

.include <postgres.global.mk>

#
# ################# BEGIN OS-DEPENDENT SECTION #################
#

.if ( ${PORTNAME} == "aix" )
CFLAGS+= -DUSE_AIA -D_BSD
SRCS+= setenv.c
LDADD+= -lbsd
.endif

.if ( ${PORTNAME} == "alpha" )
CFLAGS+= -D_BSD
LDADD+= -lbsd
.endif

.if ( ${PORTNAME} == "hpux" )
CFLAGS+= -Dconst= -DUSE_RANLIB
SRCS+= setenv.c
.endif

.if ( ${PORTNAME} == "linux" )
CFLAGS+= -D_BSD_SOURCE -I/usr/include/bsd
LDADD+= -lbsd
.endif

.if ( ${PORTNAME} == "irix5" )
CFLAGS+= -cckr -D_BSD_COMPAT -DPORTNAME_irix5
SRCS+= setenv.c
LDADD+= -lbsd
.endif

.if ( ${PORTNAME} == "sparc" )
CFLAGS+= -Dvoid="char *" -Dconst= -DUSE_RANLIB -DNEED_STRINGS
SRCS+= strerror.c setenv.c
.endif

.if ( ${PORTNAME} == "sparc_solaris" )
CFLAGS+= -Dd_fileno=d_ino -I/usr/ucbinclude
SRCS+= setenv.c
LDADD+= -R/usr/ucblib -L/usr/ucblib -lucb
.  if ( ${CC} != "cc" )
CFLAGS+= -BSD -notraditional 
LDADD+= -BSD
.  endif
.endif

.if ( ${PORTNAME} == "ultrix4" )
CFLAGS+= -Dvoid="char *" -Dconst= -DUSE_RANLIB
SRCS+= strdup.c
.endif

#
# ################# END OS-DEPENDENT SECTION #################
#

PROG=	bmake

PROTODIR?=	${DESTDIR}${LIBDIR}/mk

CFLAGS+=-I${.CURDIR} 
CFLAGS+= -D_PATH_DEFSYSMK='"${PROTODIR}/sys.mk"' \
	-D_PATH_DEFSYSPATH='"${PROTODIR}"'

SRCS+=	arch.c buf.c compat.c cond.c dir.c hash.c job.c main.c \
	make.c parse.c str.c suff.c targ.c var.c
SRCS+=	lstAppend.c lstAtEnd.c lstAtFront.c lstClose.c lstConcat.c \
	lstDatum.c lstDeQueue.c lstDestroy.c lstDupl.c lstEnQueue.c \
	lstFind.c lstFindFrom.c lstFirst.c lstForEach.c lstForEachFrom.c \
	lstInit.c lstInsert.c lstIsAtEnd.c lstIsEmpty.c lstLast.c \
	lstMember.c lstNext.c lstOpen.c lstRemove.c lstReplace.c lstSucc.c

.PATH:	${.CURDIR}/lst.lib

beforeinstall: installproto

installproto::
.if defined(OLD_MKDIR)
	-if test ! -d ${PROTODIR}; \
		then mkdir ${PROTODIR}; fi || true
.endif
	for i in ${.CURDIR}/mk-proto/*.mk ; \
	do \
	    ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 444 \
		$$i ${PROTODIR}/`basename $$i`; \
	done

#
# For obscure reasons bootmake fails if forked from GNU make unless
# this is defined.  (It somehow inherits an extra target "make" from
# GNU make.)  -- PMA 08/07/93
#
make::

.include <postgres.prog.mk>
@


1.14
log
@fix for sunpro cc
@
text
@d2 1
a2 1
# $Header: /import/faerie/aoki/postgres/src/tools/bmake/RCS/Makefile,v 1.13 1994/06/16 03:23:06 aoki Exp aoki $
d29 6
@


1.13
log
@hpux
@
text
@d2 1
a2 1
# $Header: Makefile,v 1.12 94/06/06 08:35:01 aoki Exp $
d37 2
a38 2
.if ( ${PORTNAME} == "solaris_sparc" )
CFLAGS+= -BSD -notraditional -Dd_fileno=d_ino
d40 3
d44 1
@


1.12
log
@fix linux, add solaris_sparc
@
text
@d2 1
a2 1
# $Header: /import/faerie/aoki/postgres/src/tools/bmake/RCS/Makefile,v 1.11 1994/03/27 00:11:38 aoki Exp aoki $
d23 1
a23 1
CFLAGS+= -Dconst= -DUSE_RANLIB -D_BSD
@


1.11
log
@linux fixes
@
text
@d2 1
a2 1
# $Header: /usr/local/devel/postgres/src/tools/bmake/RCS/Makefile,v 1.10 1994/02/08 04:37:14 aoki Exp aoki $
d11 4
a14 8
.if ( ${PORTNAME} == "ultrix4" )
CFLAGS+= -Dvoid="char *" -Dconst= -DUSE_RANLIB
SRCS+= strdup.c
.endif

.if ( ${PORTNAME} == "sparc" )
CFLAGS+= -Dvoid="char *" -Dconst= -DUSE_RANLIB -DNEED_STRINGS
SRCS+= strerror.c setenv.c
d22 5
d28 1
a28 1
CFLAGS+= -D__USE_BSD -D__USE_BSD_SIGNAL
d32 7
a38 2
.if ( ${PORTNAME} == "hpux" )
CFLAGS+= -Dconst= -DUSE_RANLIB -D_BSD
d40 1
d43 3
a45 4
.if ( ${PORTNAME} == "aix" )
CFLAGS+= -DUSE_AIA -D_BSD
SRCS+= setenv.c
LDADD+= -lbsd
@


1.10
log
@updated
@
text
@d2 1
a2 1
# $Header: /import/faerie/faerie/aoki/postgres/src/tools/bmake/RCS/Makefile,v 1.9 1993/09/27 04:41:42 aoki Exp aoki $
d28 1
@


1.9
log
@reconditionalized
	HAS_SYMDEF -> USE_RANLIB
	HAS_AIA -> USE_AIA
@
text
@d2 1
a2 1
# $Header: /faerie/aoki/postgres/src/tools/bmake/RCS/Makefile,v 1.8 1993/09/20 19:53:31 aoki Exp aoki $
a17 1
LDFLAGS+= -assert nodefinitions
d23 1
@


1.8
log
@aix
@
text
@d2 1
a2 1
# $Header: /home2/aoki/postgres/src/tools/bmake/RCS/Makefile,v 1.7 1993/08/11 20:31:42 aoki Exp $
d12 1
a12 1
CFLAGS+= -Dvoid="char *" -Dconst= -DHAS_SYMDEF
d17 1
a17 1
CFLAGS+= -Dvoid="char *" -Dconst= -DHAS_SYMDEF -DNEED_STRINGS
d31 1
a31 1
CFLAGS+= -Dconst= -DHAS_SYMDEF -D_BSD
d36 1
a36 1
CFLAGS+= -DHAS_AIA -D_BSD
@


1.7
log
@added -assert nodefinitions (temp while epoch libraries are broken)
@
text
@d2 1
a2 1
# $Header: /home2/aoki/postgres/src/tools/bmake/RCS/Makefile,v 1.6 1993/08/09 16:25:35 aoki Exp aoki $
d34 6
@


1.6
log
@whoops.  forgot __USE_BSD_SIGNAL for linux
@
text
@d2 1
a2 1
# $Header: /home2/aoki/postgres/src/tools/bmake/RCS/Makefile,v 1.5 1993/08/07 09:47:33 aoki Exp aoki $
d18 1
a18 1
#LDFLAGS+= -assert nodefinitions
@


1.5
log
@parameterized several bsdisms
@
text
@d2 1
a2 1
# $Header$
d27 1
a27 1
CFLAGS+= -D__USE_BSD
@


1.4
log
@added hpux support, parameterized "install"
@
text
@d1 4
d7 14
a20 1
PROG=	bmake
d22 3
a24 1
PROTODIR?=	${DESTDIR}${LIBDIR}/mk
d26 3
a28 3
CFLAGS+=-I${.CURDIR} 
CFLAGS+= -D_PATH_DEFSYSMK='"${PROTODIR}/sys.mk"'  \
	-D_PATH_DEFSYSPATH='"${PROTODIR}"'
d30 4
d36 1
a36 1
# o/s specific grot:
d39 1
a39 4
# if void broken in compiler
.if ( ${PORTNAME} == "ultrix4" || ${PORTNAME} == "sparc" )
CFLAGS+= -Dvoid="char *"
.endif
d41 1
a41 3
.if ( ${PORTNAME} == "alpha" || ${PORTNAME} == "hpux" )
CFLAGS+= -D_BSD
.endif
d43 3
d47 1
a47 1
SRCS=	arch.c buf.c compat.c cond.c dir.c hash.c job.c main.c \
a53 9
SRCS+=	strdup.c

.if ( ${PORTNAME} == "sparc" )
SRCS+= strerror.c setenv.c
.endif

.if ( ${PORTNAME} == "hpux" )
SRCS+= setenv.c
.endif
d60 3
a62 2
.if (${PORTNAME} == "sparc")
	-if test ! -d ${PROTODIR}; then mkdir ${PROTODIR}; fi || true
d66 2
a67 1
	    ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 444 $$i ${PROTODIR}/`basename $$i`; \
d70 7
@


1.3
log
@don't fail on failed test (blettch)
@
text
@d21 1
a21 2
# DEC OSF on alpha
.if (${PORTNAME} == "alpha")
d39 4
d53 1
a53 1
	    install -c -o ${BINOWN} -g ${BINGRP} -m 444 $$i ${PROTODIR}/`basename $$i`; \
@


1.2
log
@support sparc
@
text
@d46 1
a46 1
	if test ! -d ${PROTODIR}; then mkdir ${PROTODIR}; fi
@


1.1
log
@Initial revision
@
text
@d16 2
a17 2
# actually, if broken ultrix compiler
.if (${MACHINE} == "mips")
d21 2
a22 2
# actually, if OSF
.if (${MACHINE} == "alpha")
d35 5
d45 3
@
