head	1.5;
access;
symbols
	RELEASE_8_3_0:1.4
	RELEASE_9_0_0:1.4
	RELEASE_7_4_0:1.4
	RELEASE_8_2_0:1.4
	RELEASE_6_EOL:1.4
	RELEASE_8_1_0:1.4
	RELEASE_7_3_0:1.4
	RELEASE_8_0_0:1.4
	RELEASE_7_2_0:1.4
	RELEASE_7_1_0:1.4
	RELEASE_6_4_0:1.4
	RELEASE_5_EOL:1.4
	RELEASE_7_0_0:1.4
	RELEASE_6_3_0:1.4
	PRE_XORG_7:1.4
	RELEASE_4_EOL:1.3
	RELEASE_6_2_0:1.3
	RELEASE_6_1_0:1.3
	RELEASE_5_5_0:1.3
	RELEASE_6_0_0:1.3
	RELEASE_5_4_0:1.3
	RELEASE_4_11_0:1.3
	RELEASE_5_3_0:1.3
	RELEASE_4_10_0:1.3
	RELEASE_5_2_1:1.3
	RELEASE_5_2_0:1.3
	RELEASE_4_9_0:1.3
	RELEASE_5_1_0:1.3
	RELEASE_4_8_0:1.3
	RELEASE_5_0_0:1.3
	RELEASE_4_7_0:1.3
	RELEASE_4_6_2:1.3
	RELEASE_4_6_1:1.3
	RELEASE_4_6_0:1.3
	RELEASE_5_0_DP1:1.3
	RELEASE_4_5_0:1.3
	RELEASE_4_4_0:1.3
	RELEASE_4_3_0:1.3
	RELEASE_4_2_0:1.3
	RELEASE_4_1_1:1.3
	RELEASE_4_1_0:1.3
	RELEASE_3_5_0:1.3
	RELEASE_4_0_0:1.3
	RELEASE_3_4_0:1.3
	RELEASE_3_3_0:1.3
	RELEASE_3_2_0:1.3
	RELEASE_3_1_0:1.3
	RELEASE_2_2_8:1.3
	RELEASE_3_0_0:1.3
	RELEASE_2_2_7:1.1.1.1
	v1_0:1.1.1.1
	VAUDREY:1.1.1;
locks; strict;
comment	@# @;


1.5
date	2012.11.17.06.02.29;	author svnexp;	state Exp;
branches;
next	1.4;

1.4
date	2007.01.30.10.25.32;	author pav;	state Exp;
branches;
next	1.3;

1.3
date	98.10.10.14.32.35;	author vanilla;	state Exp;
branches;
next	1.2;

1.2
date	98.10.07.15.02.42;	author vanilla;	state Exp;
branches;
next	1.1;

1.1
date	98.06.14.12.38.56;	author jseger;	state Exp;
branches
	1.1.1.1;
next	;

1.1.1.1
date	98.06.14.12.38.56;	author jseger;	state Exp;
branches;
next	;


desc
@@


1.5
log
@Switch exporter over
@
text
@# $FreeBSD: head/www/cgihtml/files/Makefile 300897 2012-07-14 14:29:18Z beat $
# Makefile for cgihtml libraries

LIB = cgihtml
MAJ = 1
SHLIB_VER = $(MAJ)

OBJS = string-lib.o cgi-llist.o cgi-lib.o html-lib.o
HDRS =	${OBJS:.o=.h}
SRCS =	${OBJS:.o=.c}
SOBJS =	${OBJS:.o=.so}

.SUFFIXES:
.SUFFIXES: .o .so .c

.c.o:
	${CC} ${CFLAGS} -c ${.IMPSRC} -o ${.TARGET}
	@@${LD} -O ${.TARGET} -x -r ${.TARGET}

.c.so:
	${CC} -fpic -DPIC ${CFLAGS} -c ${.IMPSRC} -o ${.TARGET}
	@@${LD} -O ${.TARGET} -x -r ${.TARGET}

lib${LIB}.a: ${OBJS}
	@@${ECHO} building standard ${LIB} library
	@@rm -f ${.TARGET}
	@@${AR} cr ${.TARGET} `lorder ${OBJS} | tsort -q`
	${RANLIB} ${.TARGET}

lib${LIB}.so.${SHLIB_VER}: ${SOBJS}
	@@${ECHO} building shared ${LIB} library \(version ${SHLIB_VER}\)
	@@rm -f ${.TARGET}
	${CC} -shared -Wl,-x -o ${.TARGET} `lorder ${SOBJS} | tsort -q`

all: depend lib${LIB}.a lib${LIB}.so.${SHLIB_VER}

install:
	@@mkdir -p ${PREFIX}/lib
	@@mkdir -p ${PREFIX}/include
	${INSTALL} -c -m 644 lib${LIB}.a ${PREFIX}/lib
#	${RANLIB} -t ${PREFIX}/lib/lib${LIB}.a
	${INSTALL} -c -m 644 lib${LIB}.so.${SHLIB_VER} ${PREFIX}/lib
	@@ln -s ${PREFIX}/lib/lib${LIB}.so.${SHLIB_VER} ${PREFIX}/lib/lib${LIB}.so
.for file in ${HDRS}
	${INSTALL} -c -m 644 ${file} ${PREFIX}/include
.endfor

clean:
	rm -f *.o *.so lib${LIB}.a lib${LIB}.so.${SHLIB_VER}

distclean: clean
	rm -f .depend

depend:
	mkdep ${CFLAGS} ${SRCS}

@


1.4
log
@- Remove support for a.out format and PORTOBJFORMAT variable from individual
  ports

With hat:	portmgr
@
text
@d1 1
a1 1
# $FreeBSD$
@


1.3
log
@Add a patch for libcgihtml.so
@
text
@d1 1
a5 2
MIN = 0
.if ($(PORTOBJFORMAT) == "elf")
a6 3
.else
SHLIB_VER = $(MAJ).$(MIN)
.endif
@


1.2
log
@Convert to elf, And fix the path of MASTER_SITE.
@
text
@d47 1
@


1.1
log
@Initial revision
@
text
@a2 1
CFLAGS= -O #-DUPLOADDIR='"/tmp"'
d4 7
a10 1
SHLIB_VER = 1.0
d45 1
a45 1
	${RANLIB} -t ${PREFIX}/lib/lib${LIB}.a
a46 1
	/sbin/ldconfig -m ${PREFIX}/lib
@


1.1.1.1
log
@Import of a port of cgihtml:

Cgihtml is a C library that simplifies the task of parsing World Wide Web
(WWW) Common Gateway Interface (CGI) input and outputting HyperText Markup
Language (HTML). Tasks which would normally require many lines of C can be
reduced to just a few.

PR:		ports/4933
Submitted by:	i.vaudrey@@bigfoot.com
@
text
@@
