aboutsummaryrefslogtreecommitdiff
path: root/devel/cocktail/files/patch-specs-c-oberon2-Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'devel/cocktail/files/patch-specs-c-oberon2-Makefile')
-rw-r--r--devel/cocktail/files/patch-specs-c-oberon2-Makefile32
1 files changed, 21 insertions, 11 deletions
diff --git a/devel/cocktail/files/patch-specs-c-oberon2-Makefile b/devel/cocktail/files/patch-specs-c-oberon2-Makefile
index 434ce1ecd050..a117fe5fadd8 100644
--- a/devel/cocktail/files/patch-specs-c-oberon2-Makefile
+++ b/devel/cocktail/files/patch-specs-c-oberon2-Makefile
@@ -1,15 +1,22 @@
---- ../../work/cocktail-9309//./specs/c/oberon2/Makefile Tue Feb 15 14:28:41 1994
-+++ ./specs/c/oberon2/Makefile Wed Mar 31 23:04:25 2004
-@@ -1,7 +1,3 @@
+--- /usr/ports/devel/cocktail/work/cocktail-9309//./specs/c/oberon2/Makefile Tue Feb 15 14:28:41 1994
++++ ./specs/c/oberon2/Makefile Wed Aug 25 12:03:23 2004
+@@ -1,22 +1,22 @@
-LIB = $(HOME)/lib
-INCDIR = $(LIB)/include
-CFLAGS = -I$(INCDIR)
-CC = cc
++ROOTDIR= ../../..
++.include "../../Makefile.inc"
++
++CFLAGS = $(TCFLAGS) -I $(TMPINC)
ParserDrv: ParserDrv.o Scanner.o Parser.o
- $(CC) $(CFLAGS) ParserDrv.o Scanner.o Parser.o $(LIB)/libreuse.a -o ParserDrv
-@@ -10,13 +6,13 @@
- lpp -cxzj oberon2.pars;
+- $(CC) $(CFLAGS) ParserDrv.o Scanner.o Parser.o $(LIB)/libreuse.a -o ParserDrv
++ $(CC) $(CFLAGS) ParserDrv.o Scanner.o Parser.o -L $(TMPLIB) -l reuse -o ParserDrv
+
+ Scanner.rpp Parser.lalr: oberon2.pars
+- lpp -cxzj oberon2.pars;
++ $(LPP) -cxzj oberon2.pars;
oberon2.rex: oberon2.scan Scanner.rpp
- rpp < oberon2.scan > oberon2.rex;
@@ -25,12 +32,15 @@
ParserDrv.o: Parser.h Scanner.h
Parser.o: Parser.h Scanner.h
-@@ -28,7 +24,4 @@
- clean:
- rm -f ParserDrv core *.[hco] _Debug oberon2.rex Parser.lalr Scanner.rpp
+@@ -26,9 +26,6 @@
+ lint $(CFLAGS) -b -u *.c
--.SUFFIXES: .c .o
+ clean:
+- rm -f ParserDrv core *.[hco] _Debug oberon2.rex Parser.lalr Scanner.rpp
-
+-.SUFFIXES: .c .o
++ -rm -f $(STDCLEAN)
++ -rm -f ParserDrv *.[hco] _Debug oberon2.rex Parser.lalr Scanner.rpp
+
-.c.o:
- $(CC) $(CFLAGS) -c $*.c
-+.include "../../../Makefile.inc"