summaryrefslogtreecommitdiff
path: root/sysutils/dog/patches/patch-aa
blob: b7126b382b471d2d0634b73bb5ff5beca93169bd (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
$NetBSD: patch-aa,v 1.1.1.1 2001/01/19 01:35:05 hubertf Exp $

--- Makefile.orig	Tue Jul 13 20:32:24 1999
+++ Makefile
@@ -12,18 +12,20 @@
 #  dogboy@photodex.com!
 
 INSTALL = /usr/bin/install -c
-OBJS = dog.o getopt.o getopt1.o
-CFLAGS = -O3 -Wall
+#HF#OBJS = dog.o getopt.o getopt1.o
+OBJS = dog.o # NetBSD (and about any other Unix) has getopt in libc :-)
+CC ?= cc
+CFLAGS ?= -O -pipe
 
-prefix = /usr/local
+prefix = ${PREFIX}
 bindir = ${prefix}/bin
 mandir = ${prefix}/man
 
 %.o: %.c
-	gcc ${CFLAGS} -c $< -o $@
+	$(CC) ${CFLAGS} -c $< -o $@
 
 dog:	${OBJS}
-	gcc ${CFLAGS} -o dog ${OBJS}
+	$(CC) ${CFLAGS} -o dog ${OBJS}
 
 install:	dog
 	$(INSTALL) -m 644 dog.1 ${mandir}/man1