8937ed4066
The orignal port only ran on i386, since there were some 64bit conversion problems. The included tar file replaces the compete devel/cocktail tree currently in the ports tree. (lots of patches!) PR: ports/71940 Submitted by: Willem Jan Withagen <wjw@withagen.nl>
48 lines
1.2 KiB
Text
48 lines
1.2 KiB
Text
--- /usr/ports/devel/cocktail/work/cocktail-9309//./specs/c/ada/Makefile Tue Feb 15 14:28:23 1994
|
|
+++ ./specs/c/ada/Makefile Wed Aug 25 11:55:26 2004
|
|
@@ -1,22 +1,24 @@
|
|
-LIB = $(HOME)/lib
|
|
-INCDIR = $(LIB)/include
|
|
-CFLAGS = -I$(INCDIR)
|
|
-CC = cc
|
|
+
|
|
+HOME ?= $(.CURDIR)/../..
|
|
+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
|
|
+ $(CC) $(CFLAGS) ParserDrv.o Scanner.o Parser.o -L $(TMPLIB) -l reuse -o ParserDrv
|
|
|
|
Scanner.rpp Parser.lalr: ada.pars
|
|
- lpp -cxzj ada.pars;
|
|
+ $(LPP) -cxzj ada.pars;
|
|
|
|
ada.rex: ada.scan Scanner.rpp
|
|
- rpp < ada.scan > ada.rex;
|
|
+ $(RPP) < ada.scan > ada.rex;
|
|
|
|
Scanner.h Scanner.c: ada.rex
|
|
- rex -cd ada.rex;
|
|
+ $(REX) -cd ada.rex;
|
|
|
|
Parser.h Parser.c ParserDrv.c: Parser.lalr
|
|
- lalr -c -d -p -cs Parser.lalr;
|
|
+ $(LALR) -c -d -p -cs Parser.lalr;
|
|
|
|
ParserDrv.o: Parser.h Scanner.h
|
|
Parser.o: Parser.h Scanner.h
|
|
@@ -26,9 +28,6 @@
|
|
lint $(CFLAGS) -b -u *.c
|
|
|
|
clean:
|
|
- rm -f ParserDrv core *.[hco] _Debug ada.rex Parser.lalr Scanner.rpp
|
|
-
|
|
-.SUFFIXES: .c .o
|
|
+ -rm -f $(STDCLEAN)
|
|
+ -rm -f ParserDrv *.[hco] _Debug ada.rex Parser.lalr Scanner.rpp
|
|
|
|
-.c.o:
|
|
- $(CC) $(CFLAGS) -c $*.c
|