summaryrefslogtreecommitdiff
path: root/misc/display/files/patch-ab
blob: 4888b3600a14b1cd712989c29cbe614521e7fd86 (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
--- Makefile.in.orig	Wed Dec 14 05:50:47 2005
+++ Makefile.in	Thu Dec 15 14:49:37 2005
@@ -2,10 +2,14 @@
 # vix 15dec86 [stolen from 'which']
 
 # start changing
-CFLAGS		=	-O
-DEST_DIR	=	/usr/local/bin
+prefix		=	@prefix@
+exec_prefix	=	@exec_prefix@
+CFLAGS		=	@CFLAGS@
+LDFLAGS		=	@LDFLAGS@
+CC		=	@CC@
+DEST_DIR	=	@bindir@
 CURSES_LIBS	=	-lncurses
-MAN_DIR		=	/usr/local/man/man1
+MAN_DIR		=	@mandir@/man1
 MAN_SUFFIX	=	1
 SHAR_ARGS	=	-b -c -v
 # stop changing
@@ -16,8 +20,7 @@
 all		:	display
 
 display		:	display.c
-			cc $(CFLAGS) -o $@ display.c $(CURSES_LIBS)
-			strip display
+			$(CC) $(CFLAGS) $(LDFLAGS) -o $@ display.c $(CURSES_LIBS)
 
 install		:	all
 			mv display $(DEST_DIR)