head	1.5;
access;
symbols
	RELEASE_4_4_0:1.4
	RELEASE_4_3_0:1.4
	RELEASE_4_2_0:1.4
	RELEASE_4_1_1:1.4
	RELEASE_4_1_0:1.4
	RELEASE_3_5_0:1.4
	RELEASE_4_0_0:1.3
	RELEASE_3_4_0:1.3
	RELEASE_3_3_0:1.3
	RELEASE_3_2_0:1.2
	RELEASE_3_1_0:1.2
	RELEASE_2_2_8:1.2
	RELEASE_3_0_0:1.1.1.1
	RELEASE_2_2_7:1.1.1.1
	RELEASE_2_2_6:1.1.1.1
	RELEASE_2_2_5:1.1.1.1
	RELEASE_2_2_1:1.1.1.1
	RELEASE_2_2_2:1.1.1.1
	rexximc_1_6d:1.1.1.1
	IMC:1.1.1;
locks; strict;
comment	@# @;


1.5
date	2001.09.22.20.13.15;	author lioux;	state dead;
branches;
next	1.4;

1.4
date	2000.05.29.02.20.47;	author steve;	state Exp;
branches;
next	1.3;

1.3
date	99.09.09.19.18.38;	author nectar;	state Exp;
branches;
next	1.2;

1.2
date	98.11.24.18.46.07;	author nectar;	state Exp;
branches;
next	1.1;

1.1
date	96.09.23.15.50.11;	author jfitz;	state Exp;
branches
	1.1.1.1;
next	;

1.1.1.1
date	96.09.23.15.50.11;	author jfitz;	state Exp;
branches;
next	;


desc
@@


1.5
log
@o update to 1.75
o support NOPORTDOCS
o assign maintainership to submitter

PR:		30428
Submitted by:	John Merryweather Cooper <jmcoopr@@webmail.bmi.net>
@
text
@# $FreeBSD: ports/lang/rexx-imc/files/Makefile,v 1.4 2000/05/29 02:20:47 steve Exp $
#
# Makefile for REXX/imc-1.7?
#
# Based upon the original by the author
# Heavily hacked by jfitz@@FreeBSD.ORG
#

CC?=		gcc
PIC=		-fPIC
CCFLAGS=	-DHAS_TTYCOM -D_REQUIRED -DRENAME_UNDELETE -c ${PIC}

OPTFLAGS?=	-O2

# Release Date Variables
RXDAY=		1
RXMONTH=	8
RXYEAR=		96
DATE=		-DDAY=${RXDAY} -DMONTH=${RXMONTH} -DYEAR=${RXYEAR}

REXXDOCS=	README README.bugreport README.docs \
		README.files README.make README.news README.platforms \
		rexx.info rexx.ref rexx.summary rexx.tech

# Shared Library Version
VER=		2
SHAREDLIB=	librexx.so.${VER}
STATICLIB=	librexx.a

REXXLIB=${STATICLIB} ${SHAREDLIB}

MATH=		rxmathfn.rxfn
REXXIMC=	${PREFIX}/bin
FILEDEFS=	-DREXXIMC=\"${REXXIMC}\"
LIBFILES=	rexx.o rxfn.o calc.o util.o shell.o interface.o globals.o
HFILES=		const.h globals.h functions.h rexxsaa.h

all:		rexx rxque rxstack ${MATH} rexx.1

interface.o:	interface.c ${HFILES}
		${CC} ${OPTFLAGS} ${CCFLAGS} -c ${DATE} ${FILEDEFS} -o $@@ interface.c

${SHAREDLIB}:	${LIBFILES}
		${CC} -shared -Wl,-soname,$@@ -o ${SHAREDLIB} ${LIBFILES}
		ln -sf ${SHAREDLIB} librexx.so

${STATICLIB}:	${LIBFILES}
		ar rc ${STATICLIB} ${LIBFILES}
		${RANLIB} ${STATICLIB}

rexx:		main.o ${REXXLIB}
		${CC} ${OPTFLAGS} -o rexx main.o -L. -lrexx

rxque:		rxque.o ${STATICLIB}
		${CC} ${OPTFLAGS} -o rxque rxque.o

rxstack:	rxstack.o ${STATICLIB}
		${CC} ${OPTFLAGS} -o rxstack rxstack.o

rxmathfn.rxfn:	rxmathfn.o ${HFILES}
		${CC} -shared -o rxmathfn.rxfn rxmathfn.o -lm

interface.o:	interface.c ${HFILES}
		${CC} ${OPTFLAGS} ${CCFLAGS} -o interface.o ${FILEDEFS} interface.c

rexx.1: rexx.1.in
		sed -e "s|@@REXXLIBDIR@@|${PREFIX}/bin|" rexx.1.in > rexx.1

install:
		@@strip rxmathfn.rxfn
.for f in rexx rxque rxstack
		${BSD_INSTALL_PROGRAM} ${f} ${PREFIX}/bin
.endfor
.for f in rxmathfn.rxfn rxmathfn.rxlib
		${BSD_INSTALL_DATA} ${f} ${PREFIX}/bin
.endfor
.for f in ${REXXLIB}
		${BSD_INSTALL_DATA} ${f} ${PREFIX}/lib
.endfor
		ln -sf ${SHAREDLIB} ${PREFIX}/lib/librexx.so
		${BSD_INSTALL_DATA} rexxsaa.h ${PREFIX}/include
		${BSD_INSTALL_MAN} rexx.1 ${PREFIX}/man/man1
.if !defined(NOPORTDOCS)
		${MKDIR} ${PREFIX}/share/doc/rexx-imc
.for f in ${REXXDOCS}
		${BSD_INSTALL_DATA} ${f} ${PREFIX}/share/doc/rexx-imc
.endfor
.endif

.c.o:
		${CC} ${OPTFLAGS} ${CCFLAGS} -o $@@ $<
@


1.4
log
@- Support CFLAGS properly
- Fix procedure of building shared library
- Sort pkg/PLIST
- Revise pkg/DESCR

PR:		18797
Submitted by:	KATO Tsuguru <tkato@@prontomail.ne.jp>
@
text
@d1 1
a1 1
# $FreeBSD$
@


1.3
log
@Update 1.6d -> 1.7

PR:		ports/11270
Submitted by:	Pedro F. Giffuni <pfgiffun@@bachue.usc.unal.edu.co>
@
text
@d1 3
a3 1
# Makefile for REXX/imc-1.6?
d13 1
a13 1
OPTFLAGS=	-O2
a25 1
.if ${PORTOBJFORMAT} == "elf"
a26 3
SHAREDLIB=	librexx.so librexx.so.${VER}
.else
VER=		2.0
a27 1
.endif
d44 2
a45 3
.for t in ${.TARGET}
		${LD} -Bshareable -o ${t} ${LIBFILES}
.endfor
d61 1
a61 1
		${LD} -Bshareable -o rxmathfn.rxfn rxmathfn.o -lm
d70 1
a70 1
		@@strip ${SHAREDLIBS} rxmathfn.rxfn
d80 1
d82 1
d84 1
a84 1
		${MKDIR} ${PREFIX}/share/doc/rexx-imc/
d86 1
a86 1
		${BSD_INSTALL_DATA} ${f} ${PREFIX}/share/doc/rexx-imc/
a87 1
		${BSD_INSTALL_DATA} rexx.1 ${PREFIX}/man/man1
@


1.2
log
@* Update checksum for distribution.
* Fix for ELF.
* Fix misuse of errno as a structure member name (original author
  notified).
* Build and install both static and shared libraries.
* Move install target from port Makefile to files/Makefile.
@
text
@d1 1
a1 1
# Makefile for REXX/imc
d7 1
a7 1
CC=		gcc
d9 1
a9 1
CCFLAGS=	-DHAS_TTYCOM -D_REQUIRED -c ${PIC}
d19 2
a20 2
REXXDOCS=	README README.avail README.bugreport README.docs \
		README.files README.make README.news README.versions \
d41 1
a41 1
all:		rexx rxque rxstack ${MATH}
d70 3
d90 1
@


1.1
log
@Initial revision
@
text
@d19 4
d24 5
a28 2
VER=		1.6.4

d30 1
d32 3
a34 5
.ifdef(BUILD_STATIC)
REXXLIB=${STATICLIB}
.else
REXXLIB=${SHAREDLIB}
.endif
d47 3
a49 1
		${LD} -Bshareable -o ${SHAREDLIB} ${LIBFILES}
d69 19
@


1.1.1.1
log
@Import of REXX/imc, a REXX interpreter for unix.
Reviewed by:	matt@@bdd.net
@
text
@@
