summaryrefslogtreecommitdiff
path: root/net/dgd/patches/patch-aa
blob: 438e34fabe6b3f7b372f97fd837ecec785cc7eb1 (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.3 2005/11/03 22:37:28 rillig Exp $

--- src/Makefile.orig	2002-08-26 08:21:20.000000000 -0500
+++ src/Makefile
@@ -5,11 +5,11 @@ HOST=	NETBSD
 DEFINES=-D$(HOST) #-DDUMP_FUNCS
 DEBUG=	-O2
 CCFLAGS=$(DEFINES) $(DEBUG)
-CFLAGS=	-I. -Icomp -Ilex -Ied -Iparser -Ikfun $(CCFLAGS)
+CFLAGS+=	-I. -Icomp -Ilex -Ied -Iparser -Ikfun $(CCFLAGS)
 LDFLAGS=
 LIBS=
 LINTFLAGS=-abcehpruz
-CC=	gcc
+CC?=	gcc
 LD=	$(CC)
 DMAKE=	make
 YACC=	yacc
@@ -22,6 +22,8 @@ OBJ=	alloc.o error.o hash.o swap.o str.o
 COMPOBJ=alloc.o error.o hash.o path.o str.o array.o object.o data.o \
 	interpret.o config.o
 
+all:	a.out
+
 a.out:	$(OBJ) always
 	cd comp; $(DMAKE) 'CC=$(CC)' 'CCFLAGS=$(CCFLAGS)' 'YACC=$(YACC)' dgd
 	cd lex; $(DMAKE) 'CC=$(CC)' 'CCFLAGS=$(CCFLAGS)' dgd