summaryrefslogtreecommitdiff
path: root/misc/dt/patches/patch-aa
blob: 63ca849e67c0dbef7b2a78de7ee6caca20430cd0 (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
$NetBSD: patch-aa,v 1.2 1999/09/07 14:53:56 jlam Exp $

--- Makefile.orig	Sun Nov 24 06:41:26 1996
+++ Makefile	Tue Sep  7 08:55:46 1999
@@ -1,19 +1,19 @@
 # $Id: patch-aa,v 1.2 1999/09/07 14:53:56 jlam Exp $
 
 #CFLAGS	=	-g -Wall -Wno-unused
-CFLAGS	=	-O6 -Wall -Wno-unused
+CFLAGS	+=	-O6 -Wall -Wno-unused
 SRCS	=	main.c vt.c grf.c blit.c event.c kbd.c mouse.c mux.c func.c utmp.c bell.c vers.c
 LIBS	=
 OBJS	=	main.o vt.o grf.o blit.o event.o kbd.o mouse.o mux.o func.o utmp.o bell.o vers.o
 DT	=	dt
 # where to install the executable
-BINDIR	=	/usr/local/bin
+BINDIR	=	${PREFIX}/bin
 
 all:		$(DT)
 
 $(DT):		vers.h $(OBJS)
 		@./groksevid
-		$(CC) $(CFLAGS) $(OBJS) -o $@ $(LIBS)
+		$(CC) $(CFLAGS) $(LDFLAGS) $(OBJS) -o $@ $(LIBS)
 
 vers.h:		$(SRCS)
 		rm -f vers.h vers.o