summaryrefslogtreecommitdiff
path: root/shells/rc/patches/patch-aa
blob: 45eb26649e01a25c693c5e17909fffe0efb2623d (plain)
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
42
43
44
$NetBSD: patch-aa,v 1.6 1998/08/23 05:52:46 garbled Exp $
*** Makefile.orig	Mon Mar  7 03:32:46 1994
--- Makefile	Wed Aug 20 15:19:15 1997
***************
*** 16,23 ****
  #ADDON=addon.o
  
  # Use an ANSI compiler (or at least one that groks prototypes and void *):
! CC=gcc -g -O
! CFLAGS=
  LDFLAGS=
  
  # You may substitute "bison -y" for yacc. (You want to choose the one that
--- 16,23 ----
  #ADDON=addon.o
  
  # Use an ANSI compiler (or at least one that groks prototypes and void *):
! CC=gcc
! CFLAGS= -O2
  LDFLAGS=
  
  # You may substitute "bison -y" for yacc. (You want to choose the one that
***************
*** 28,33 ****
--- 28,46 ----
  	glob.o glom.o hash.o heredoc.o input.o lex.o list.o main.o match.o \
  	nalloc.o open.o print.o redir.o sigmsgs.o signal.o status.o tree.o \
  	utils.o var.o version.o wait.o walk.o which.o y.tab.o
+ 
+ all: rc history
+ 
+ install:
+ 	$(INSTALL) -c rc $(PREFIX)/bin
+ 	$(INSTALL) -c history/history $(PREFIX)/bin
+ 	for i in - -- -p --p; do rm -f $(PREFIX)/bin/$$i; ln $(PREFIX)/bin/history $(PREFIX)/bin/$$i; done
+ 	$(INSTALL) -c rc.1 $(PREFIX)/man/man1
+ 	$(INSTALL) -c history/history.1 $(PREFIX)/man/man1
+ 	strip $(PREFIX)/bin/rc
+ 	strip $(PREFIX)/bin/history
+ 	gzip -9nf $(PREFIX)/man/man1/rc.1
+ 	gzip -9nf $(PREFIX)/man/man1/history.1
  
  # If rc is compiled with READLINE defined, you must supply the correct
  # arguments to ld on this line. Typically this would be something like: