summaryrefslogtreecommitdiff
path: root/net/dgd/patches/patch-aa
blob: bd454f02f7895813f5226cc166c4ab0461ce026c (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 2004/03/08 01:56:53 minskim Exp $

--- Makefile.orig	2002-08-26 08:21:20.000000000 -0500
+++ 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