head	1.3;
access;
symbols
	RELEASE_8_3_0:1.3
	RELEASE_9_0_0:1.3
	RELEASE_7_4_0:1.3
	RELEASE_8_2_0:1.3
	RELEASE_6_EOL:1.3
	RELEASE_8_1_0:1.3
	RELEASE_7_3_0:1.3
	RELEASE_8_0_0:1.3
	RELEASE_7_2_0:1.3
	RELEASE_7_1_0:1.3
	RELEASE_6_4_0:1.3
	RELEASE_5_EOL:1.3
	RELEASE_7_0_0:1.3
	RELEASE_6_3_0:1.3
	PRE_XORG_7:1.3
	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.2
	RELEASE_4_6_1:1.2
	RELEASE_4_6_0:1.2
	RELEASE_5_0_DP1:1.2
	RELEASE_4_5_0:1.2
	RELEASE_4_4_0:1.2
	RELEASE_4_3_0:1.2
	RELEASE_4_2_0:1.1
	RELEASE_4_1_1:1.1
	RELEASE_4_1_0:1.1
	RELEASE_3_5_0:1.1
	RELEASE_4_0_0:1.1;
locks; strict;
comment	@# @;


1.3
date	2002.07.21.14.35.53;	author ru;	state Exp;
branches;
next	1.2;

1.2
date	2001.04.07.01.42.21;	author ache;	state Exp;
branches;
next	1.1;

1.1
date	99.12.29.08.52.11;	author steve;	state Exp;
branches;
next	;


desc
@@


1.3
log
@Fix install.

Requested by:	kris
@
text
@--- makefile.orig	Tue Aug 10 18:47:06 1993
+++ makefile	Tue Jun  4 13:56:54 2002
@@@@ -42,7 +42,7 @@@@
 
 PROJ	= hpack
 
-CFLAGS	= -c -D__UNIX__ -O -I. $(CMDC)	# Flags for compiler
+CFLAGS  += -c -D__UNIX__ -I. $(CMDC)  # Flags for compiler
 
 LFLAGS	= -o $(PROJ) -lcurses $(CMDL)	# Flags for linker
 
@@@@ -55,6 +55,7 @@@@
 ECHO	= echo				# Echo to screen command
 MAKE	= make				# The make command
 MV		= mv				# Rename command
+PREFIX  ?= /usr/local
 
 #****************************************************************************
 #*																			*
@@@@ -68,7 +69,7 @@@@
 		@@$(ECHO)
 		@@$(ECHO) "To create HPACK, you have to enter the Unix system type you want to build it"
 		@@$(ECHO) "for.  Possible options are: aix (RS6000), aix370, aix386, bsd386, convex,"
-		@@$(ECHO) "irix, hpux, hpux-gcc, isc, linux, mint, next, osf1, qnx, sun, svr4, ultrix,"
+		@@$(ECHO) "freebsd, irix, hpux, hpux-gcc, isc, linux, mint, next, osf1, qnx, sun, svr4, ultrix,"
 		@@$(ECHO) "ultrix_old (Ultrix 3.x or earlier), and uts4.  If none of the above fit,"
 		@@$(ECHO) "try 'make generic', and send a copy of any changes necessary to the author,"
 		@@$(ECHO) "pgut1@@cs.aukuni.ac.nz"
@@@@ -317,6 +318,21 @@@@
 
 convex:
 		@@$(MAKE) hpack CMDC="-DCONVEX" CC="cc"
+
+freebsd:
+		@@make $(PROJ) LFLAGS="-o $(PROJ) -ltermcap"
+		cd keycvt; make freebsd
+
+freebsd.install:
+		-@@mkdir -p ${PREFIX}/bin
+		-@@mkdir -p ${PREFIX}/etc
+		-@@mkdir -p ${PREFIX}/lib/hpack
+		-@@mkdir -p ${PREFIX}/man/man1
+		$(BSD_INSTALL_PROGRAM) $(PROJ) $(PREFIX)/bin
+		$(BSD_INSTALL_DATA) language.dat $(PREFIX)/lib/hpack
+		$(BSD_INSTALL_DATA) docs/$(PROJ).1 $(PREFIX)/man/man1
+		-[ ! -f $(PREFIX)/etc/hpack.cfg ] && $(BSD_INSTALL_DATA) -m 644 docs/hpack.cfg $(PREFIX)/etc
+		cd keycvt; $(MAKE) freebsd.install
 
 # Generic: Generic BSD-ish system running gcc
 
@


1.2
log
@Distfile moved
Honor CFLAGS
@
text
@d1 2
a2 2
--- makefile.orig	Tue Aug 10 19:47:06 1993
+++ makefile	Sat Apr  7 05:32:44 2001
d43 4
a46 4
+		$(INSTALL) $(COPY) $(STRIP) -o $(BINOWN) -g $(BINGRP) -m $(BINMODE) $(PROJ) $(PREFIX)/bin
+		$(INSTALL) $(COPY) -o $(BINOWN) -g $(BINGRP) -m 444 language.dat $(PREFIX)/lib/hpack
+		$(INSTALL) $(COPY) -o $(BINOWN) -g $(BINGRP) -m 444 docs/$(PROJ).1 $(PREFIX)/man/man1
+		-[ ! -f $(PREFIX)/etc/hpack.cfg ] && $(INSTALL) $(COPY) -o $(BINOWN) -g $(BINGRP) -m 644 docs/hpack.cfg $(PREFIX)/etc
@


1.1
log
@Honor PREFIX and split up patches one patch for each file.

PR:		12056
Submitted by:	Nick Hibma <nick.hibma@@jrc.it>
@
text
@d1 11
a11 2
--- makefile.orig	Tue Aug 10 10:47:06 1993
+++ makefile	Tue Dec 28 20:01:38 1999
d35 2
a36 2
+		@@$(MAKE) $(PROJ) CMDC="-O2" LFLAGS="-o $(PROJ) -ltermcap"
+		cd keycvt; $(MAKE) freebsd
@

