summaryrefslogtreecommitdiff
path: root/archivers/hpack.non-usa.only/files/patch-keycvt_makefile
blob: 09e76e3704643445408f3fd324379ea9cf23d1d9 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
--- keycvt/makefile.orig	1993-05-17 21:43:30 UTC
+++ keycvt/makefile
@@ -48,7 +48,7 @@ DEFINES		= $(OS)
 
 PROJ	= keycvt
 
-CFLAGS	= -c $(DEFINES) -O -I. $(CMDC)	# Flags for compiler
+CFLAGS  += -c $(DEFINES) -I. $(CMDC)  # Flags for compiler
 
 LFLAGS	= -o $(PROJ) $(CMDL)			# Flags for linker
 
@@ -60,6 +60,7 @@ LD		= $(CC)				# Linker (just use the C 
 LS		= ls -l				# Directory command
 ECHO	= echo				# Echo to screen command
 MAKE	= make				# The make command
+PREFIX  ?= /usr/local
 
 #****************************************************************************
 #*																			*
@@ -71,7 +72,7 @@ default:
 		@$(ECHO)
 		@$(ECHO) "To create KEYCVT you have to enter the Unix system type you want to build"
 		@$(ECHO) "KEYCVT for.  Possible options are: aix (RS6000), aix370, aix386, convex,"
-		@$(ECHO) "irix, hpux, isc, linux, mint, next, qnx, sun, svr4, ultrix, ultrix_old"
+		@$(ECHO) "freebsd, irix, hpux, isc, linux, mint, next, qnx, sun, svr4, ultrix, ultrix_old"
 		@$(ECHO) "(Ultrix 3.x or earlier), and uts4.  If none of the above fit, try"
 		@$(ECHO) "'make generic', and send a copy of any changes necessary to the author,"
 		@$(ECHO) "pgut1@cs.aukuni.ac.nz"
@@ -129,6 +130,12 @@ aix386:
 convex:
 		@$(MAKE) keycvt CC="cc"
 
+freebsd:
+		@$(MAKE) $(PROJ)
+
+freebsd.install:
+		$(BSD_INSTALL_PROGRAM) $(PROJ) $(PREFIX)/bin
+
 # Generic: Generic BSD-ish system running gcc.  Can't continue, we really
 # need user intervention here.