Переглянути джерело

removed tab.c, use tabgen

ceriel 36 роки тому
батько
коміт
bb7e5e5850
2 змінених файлів з 3 додано та 7 видалено
  1. 0 1
      lang/m2/comp/.distr
  2. 3 6
      lang/m2/comp/Makefile

+ 0 - 1
lang/m2/comp/.distr

@@ -51,7 +51,6 @@ scope.C
 scope.h
 standards.h
 statement.g
-tab.c
 tmpvar.C
 tokenname.c
 tokenname.h

+ 3 - 6
lang/m2/comp/Makefile

@@ -89,7 +89,7 @@ pr:
 	@pr Makefile Resolve Parameters $(GF) *.H $(HFILES) *.C $(CSRC)
 
 clean:
-	rm -f $(OBJ) $(GENFILES) LLfiles hfiles Cfiles tab clashes \
+	rm -f $(OBJ) $(GENFILES) LLfiles hfiles Cfiles clashes \
 		$(CURRDIR)/main LL.output
 	(cd .. ; rm -rf Xsrc)
 
@@ -138,11 +138,8 @@ casestat.c:	make.allocd
 next.c:		$(NEXTFILES) ./make.next
 		./make.next $(NEXTFILES) > next.c
 
-char.c: char.tab tab
-	tab -fchar.tab >char.c
-
-tab:
-	$(CC) tab.c -o tab
+char.c: char.tab
+	$(EMHOME)/bin/tabgen -fchar.tab >char.c
 
 depend: Cfiles
 	sed '/^#AUTOAUTO/,$$d' Makefile > Makefile.new