summaryrefslogtreecommitdiff
path: root/devel/cocktail/files/patch-cg-test-c-Makefile
blob: 6e616f02c67eab34a8ef9e0da3b54b614bbef846 (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
--- /usr/ports/devel/cocktail/work/cocktail-9309//./cg/test-c/Makefile	Tue Feb 15 14:21:27 1994
+++ ./cg/test-c/Makefile	Thu Aug  5 18:48:47 2004
@@ -1,7 +1,4 @@
-LIB	= $(HOME)/lib
-INCDIR	= $(LIB)/include
-CFLAGS	= -I$(INCDIR)
-CC	= cc
+.include "../../Makefile.inc" 
 
 all:
 	make test clean LIB="$(LIB)" CC="cc"
@@ -17,15 +14,12 @@
 Main.o:	Tree.h
 
 Tree.h Tree.c: g.cg
-	cg -ca g.cg;
+	$(CG) -ca g.cg;
 
 lint:	Tree.c Main.c
 	lint $(CFLAGS) -u Main.c Tree.c
 
 clean:
-	rm -f Main Tree.* Main.o yyTree.w a aa aaa b bb core
+	-rm -f $(STDCLEAN) 
+	-rm -f  Main Tree.* Main.o yyTree.w a aa aaa b bb 
 
-.SUFFIXES:	.c .o
-
-.c.o:
-	$(CC) $(CFLAGS) -c $*.c