2004-12-15 05:05:34 +01:00
|
|
|
--- /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 @@
|
2004-05-04 23:07:46 +02:00
|
|
|
-LIB = $(HOME)/lib
|
|
|
|
-INCDIR = $(LIB)/include
|
|
|
|
-CFLAGS = -I$(INCDIR)
|
|
|
|
-CC = cc
|
|
|
|
+
|
|
|
|
+HOME ?= $(.CURDIR)/../..
|
2004-12-15 05:05:34 +01:00
|
|
|
+ROOTDIR= ../../..
|
2004-05-04 23:07:46 +02:00
|
|
|
+.include "../../Makefile.inc"
|
|
|
|
+
|
2004-12-15 05:05:34 +01:00
|
|
|
+CFLAGS = $(TCFLAGS) -I $(TMPINC)
|
2004-05-04 23:07:46 +02:00
|
|
|
|
|
|
|
ParserDrv: ParserDrv.o Scanner.o Parser.o
|
|
|
|
- $(CC) $(CFLAGS) ParserDrv.o Scanner.o Parser.o $(LIB)/libreuse.a -o ParserDrv
|
2004-12-15 05:05:34 +01:00
|
|
|
+ $(CC) $(CFLAGS) ParserDrv.o Scanner.o Parser.o -L $(TMPLIB) -l reuse -o ParserDrv
|
2004-05-04 23:07:46 +02:00
|
|
|
|
|
|
|
Scanner.rpp Parser.lalr: ada.pars
|
2004-12-15 05:05:34 +01:00
|
|
|
- lpp -cxzj ada.pars;
|
|
|
|
+ $(LPP) -cxzj ada.pars;
|
2004-05-04 23:07:46 +02:00
|
|
|
|
|
|
|
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
|
2004-12-15 05:05:34 +01:00
|
|
|
@@ -26,9 +28,6 @@
|
|
|
|
lint $(CFLAGS) -b -u *.c
|
2004-05-04 23:07:46 +02:00
|
|
|
|
2004-12-15 05:05:34 +01:00
|
|
|
clean:
|
|
|
|
- rm -f ParserDrv core *.[hco] _Debug ada.rex Parser.lalr Scanner.rpp
|
2004-05-04 23:07:46 +02:00
|
|
|
-
|
2004-12-15 05:05:34 +01:00
|
|
|
-.SUFFIXES: .c .o
|
|
|
|
+ -rm -f $(STDCLEAN)
|
|
|
|
+ -rm -f ParserDrv *.[hco] _Debug ada.rex Parser.lalr Scanner.rpp
|
|
|
|
|
2004-05-04 23:07:46 +02:00
|
|
|
-.c.o:
|
|
|
|
- $(CC) $(CFLAGS) -c $*.c
|