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>
76 lines
2.2 KiB
Text
76 lines
2.2 KiB
Text
--- /usr/ports/devel/cocktail/work/cocktail-9309//./specs/c/cpp/Makefile Tue Feb 15 14:28:21 1994
|
|
+++ ./specs/c/cpp/Makefile Wed Aug 25 12:00:23 2004
|
|
@@ -1,46 +1,46 @@
|
|
-LIB = $(HOME)/lib
|
|
-INCDIR = $(LIB)/include
|
|
-CFLAGS = -I$(INCDIR)
|
|
-CC = cc
|
|
+ROOTDIR= ../../..
|
|
+.include "../../Makefile.inc"
|
|
+
|
|
+CFLAGS = $(TCFLAGS) -I $(TMPINC)
|
|
|
|
all: ParserDrv cParserDrv
|
|
|
|
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) -lreuse -o ParserDrv
|
|
|
|
Scanner.rpp Parser.lalr: cpp.pars
|
|
- lpp -cxzj cpp.pars;
|
|
+ $(LPP) -cxzj cpp.pars;
|
|
|
|
cpp.rex: cpp.scan Scanner.rpp
|
|
- rpp < cpp.scan > cpp.rex;
|
|
+ $(RPP) < cpp.scan > cpp.rex;
|
|
|
|
Scanner.h Scanner.c: cpp.rex
|
|
- rex -cd cpp.rex;
|
|
+ $(REX) -cd cpp.rex;
|
|
|
|
Parser.h Parser.c ParserDrv.c: Parser.lalr
|
|
- lalr -c -d -p -cs 300 Parser.lalr;
|
|
+ $(LALR) -c -d -p -cs 300 Parser.lalr;
|
|
|
|
ParserDrv.o: Parser.h Scanner.h
|
|
Parser.o: Parser.h Scanner.h
|
|
Scanner.o: Scanner.h
|
|
|
|
cParserDrv: cParserDrv.o cScannerSource.o cScanner.o cParser.o
|
|
- $(CC) $(CFLAGS) cParserDrv.o cScannerSource.o cScanner.o cParser.o $(LIB)/libreuse.a -o cParserDrv
|
|
+ $(CC) $(CFLAGS) cParserDrv.o cScannerSource.o cScanner.o cParser.o -L $(TMPLIB) -l reuse -o cParserDrv
|
|
|
|
cScanner.rpp cParser.lalr: c.pars
|
|
- lpp -cxzj c.pars;
|
|
+ $(LPP) -cxzj c.pars;
|
|
|
|
c.rex: cpp.scan cScanner.rpp
|
|
(echo SCANNER cScanner; rpp cScanner.rpp < cpp.scan) | \
|
|
- sed -e 's/ Attribute/ cScanner_Attribute/' \
|
|
+ $(SED) -e 's/ Attribute/ cScanner_Attribute/' \
|
|
-e 's/TokenPtr/cScanner_TokenPtr/' \
|
|
-e 's/GetWord/cScanner_GetWord/' > c.rex;
|
|
|
|
cScanner.h cScanner.c cScannerSource.h cScannerSource.c: c.rex
|
|
- rex -csd c.rex;
|
|
+ $(REX) -csd c.rex;
|
|
|
|
cParser.h cParser.c cParserDrv.c: cParser.lalr
|
|
- lalr -c -d -p -cs cParser.lalr;
|
|
+ $(LALR) -c -d -p -cs cParser.lalr;
|
|
|
|
cParserDrv.o: cParser.h cScanner.h
|
|
cParser.o: cParser.h cScanner.h
|
|
@@ -50,10 +50,7 @@
|
|
lint $(CFLAGS) -b -u *.c
|
|
|
|
clean:
|
|
- rm -f core *.[hco] _Debug cParserDrv ParserDrv c.rex cpp.rex \
|
|
+ -rm -f $(STDCLEAN)
|
|
+ -rm -f *.[hco] _Debug cParserDrv ParserDrv c.rex cpp.rex \
|
|
cParser.lalr Parser.lalr cScanner.rpp Scanner.rpp
|
|
|
|
-.SUFFIXES: .c .o
|
|
-
|
|
-.c.o:
|
|
- $(CC) $(CFLAGS) -c $*.c
|