]> git.proxmox.com Git - mirror_edk2.git/blobdiff - Tools/CCode/Source/Pccts/antlr/makefile.cygwin
More moves for Tool Packages
[mirror_edk2.git] / Tools / CCode / Source / Pccts / antlr / makefile.cygwin
diff --git a/Tools/CCode/Source/Pccts/antlr/makefile.cygwin b/Tools/CCode/Source/Pccts/antlr/makefile.cygwin
new file mode 100644 (file)
index 0000000..956de0b
--- /dev/null
@@ -0,0 +1,219 @@
+#\r
+# Makefile for ANTLR 1.33\r
+#\r
+# SOFTWARE RIGHTS\r
+#\r
+# We reserve no LEGAL rights to the Purdue Compiler Construction Tool\r
+# Set (PCCTS) -- PCCTS is in the public domain.  An individual or\r
+# company may do whatever they wish with source code distributed with\r
+# PCCTS or the code generated by PCCTS, including the incorporation of\r
+# PCCTS, or its output, into commerical software.\r
+# \r
+# We encourage users to develop software with PCCTS.  However, we do ask\r
+# that credit is given to us for developing PCCTS.  By "credit",\r
+# we mean that if you incorporate our source code into one of your\r
+# programs (commercial product, research project, or otherwise) that you\r
+# acknowledge this fact somewhere in the documentation, research report,\r
+# etc...  If you like PCCTS and have developed a nice tool with the\r
+# output, please mention that you developed it using PCCTS.  In\r
+# addition, we ask that this header remain intact in our source code.\r
+# As long as these guidelines are kept, we expect to continue enhancing\r
+# this system and expect to make other tools available as they are\r
+# completed.\r
+#\r
+# ANTLR 1.33\r
+# Terence Parr\r
+# Parr Research Corporation\r
+# with Purdue University\r
+# and AHPCRC, University of Minnesota\r
+# 1989-1995\r
+#\r
+# Ported to Borland C++, IBM C-Set/2 and Microsoft 6.0 by\r
+# Ed Harfmann\r
+# Micro Data Base Systems\r
+# Lafayette, Indiana\r
+#\r
+SET=../support/set\r
+PCCTS_H=../h\r
+\r
+##\r
+## Uncomment the appropriate section to build\r
+## (both targets and 'make' variable definitions)\r
+## Note that UNIX is the default\r
+##\r
+\r
+#\r
+#   OS/2 & DOS 16 bit using MSC 6.0\r
+#\r
+#CC=cl\r
+#ANTLR=..\bin\antlr\r
+#DLG=..\bin\dlg\r
+#CFLAGS= -I. -I$(SET) -I$(PCCTS_H) /AL /Za /W3 -DPC -DUSER_ZZSYN\r
+#OUT_OBJ = -Fo\r
+#LIBS=/NOD:LLIBCE LLIBCEP\r
+#OBJ_EXT = obj\r
+#\r
+#antlr.exe: antlr.obj scan.obj err.obj bits.obj build.obj fset2.obj \\r
+#        fset.obj gen.obj globals.obj hash.obj lex.obj main.obj \\r
+#        misc.obj set.obj pred.obj egamn.obj\r
+#       link @<<\r
+#$** /NOI\r
+#$@ /STACK:14336\r
+#\r
+#$(LIBS: = +^\r
+#)\r
+#$(DEF_FILE) $(LFLAGS) ;\r
+#<<\r
+#        bind $@ c:\os2\doscalls.lib\r
+#        copy *.exe ..\bin\r
+#\r
+\r
+#\r
+#   Borland C++ for DOS\r
+#\r
+#CC=bcc\r
+#ANTLR=..\bin\antlr\r
+#DLG=..\bin\dlg\r
+#CFLAGS= -I. -I$(SET) -I$(PCCTS_H) -ml -ff- -w- -DPC -DUSER_ZZSYN\r
+#OUT_OBJ = -o\r
+#LIBS= emu mathl cl\r
+#OBJ_EXT = obj\r
+#\r
+#antlr.exe: antlr.obj scan.obj err.obj bits.obj build.obj fset2.obj \\r
+#        fset.obj gen.obj globals.obj hash.obj lex.obj main.obj \\r
+#        misc.obj set.obj pred.obj egman.obj mrhoist.obj fcache.obj\r
+#       tlink @&&|\r
+#C0L $**\r
+#$@ /Tde /c\r
+#\r
+#$(LIBS)\r
+#$(DEF_FILE) $(LFLAGS) ;\r
+#|\r
+#        copy *.exe ..\bin\r
+#\r
+\r
+#\r
+# C-Set/2 for OS/2\r
+#\r
+#CC=icc\r
+#CFLAGS= -I. -I$(SET) -I$(PCCTS_H) /Sa /W3 -DUSER_ZZSYN -D__STDC__\r
+#OUT_OBJ = -Fo\r
+#LIBS=\r
+#ANTLR=..\bin\antlr\r
+#DLG=..\bin\dlg\r
+#OBJ_EXT = obj\r
+#\r
+#antlr.exe: antlr.obj scan.obj err.obj bits.obj build.obj fset2.obj \\r
+#        fset.obj gen.obj globals.obj hash.obj lex.obj main.obj \\r
+#        misc.obj set.obj pred.obj egman.obj mrhoist.obj fcache.obj\r
+#        link386 @<<\r
+#$** /NOI\r
+#$@ /STACK:32768\r
+#\r
+#$(LIBS: = +^\r
+#)\r
+#$(DEF_FILE) $(LFLAGS) ;\r
+#<<\r
+#        copy *.exe ..\bin\r
+#\r
+\r
+#\r
+# Borland C++ for OS/2\r
+#\r
+#CC=bcc\r
+#CFLAGS= -I. -I$(SET) -I$(PCCTS_H) -w- -v -DUSER_ZZSYN\r
+#OUT_OBJ = -o\r
+#LIBS= c2 os2\r
+#\r
+#ANTLR=..\bin\antlr\r
+#DLG=..\bin\dlg\r
+#OBJ_EXT = obj\r
+#antlr.exe: antlr.obj scan.obj err.obj bits.obj build.obj fset2.obj \\r
+#        fset.obj gen.obj globals.obj hash.obj lex.obj main.obj \\r
+#        misc.obj set.obj pred.obj egman.obj mrhoist.obj fcache.obj\r
+#        tlink @&&|\r
+#c02 $** -c -v\r
+#antlr.exe\r
+#\r
+#C2 os2\r
+#\r
+#|\r
+#        copy *.exe ..\bin\r
+#\r
+\r
+# *********** Target list of PC machines ***********\r
+#\r
+# Don't worry about the ambiguity messages coming from antlr\r
+# for making antlr.c etc...  [should be 10 of them, I think]\r
+#\r
+#antlr.c stdpccts.h parser.dlg tokens.h err.c : antlr.g\r
+#      $(ANTLR) antlr.g\r
+#\r
+#antlr.$(OBJ_EXT): antlr.c mode.h tokens.h\r
+#\r
+#scan.$(OBJ_EXT): scan.c mode.h tokens.h\r
+#\r
+#scan.c mode.h: parser.dlg\r
+#      $(DLG) -C2 parser.dlg scan.c\r
+#\r
+#set.$(OBJ_EXT): $(SET)/set.c\r
+#      $(CC) $(CFLAGS) -c $(OUT_OBJ)set.$(OBJ_EXT) $(SET)/set.c\r
+\r
+\r
+\r
+#\r
+#   UNIX  (default)\r
+#\r
+BIN_DIR=../../../../bin\r
+CC=gcc\r
+COPT=-O\r
+ANTLR=$(BIN_DIR)/antlr.exe\r
+DLG=${BIN_DIR}/dlg.exe\r
+OBJ_EXT=o\r
+OUT_OBJ = -o\r
+CFLAGS= $(COPT) -I. -I$(SET) -I$(PCCTS_H) -DUSER_ZZSYN $(COTHER) -DZZLEXBUFSIZE=65536\r
+#\r
+# SGI Users, use this CFLAGS\r
+#\r
+#CFLAGS= -O -I. -I$(SET) -I$(PCCTS_H) -DUSER_ZZSYN -woff 3262\r
+OBJ=antlr.o scan.o err.o bits.o build.o fset2.o fset.o gen.o  \\r
+        globals.o hash.o lex.o main.o misc.o set.o pred.o egman.o mrhoist.o fcache.o\r
+\r
+antlr : $(OBJ) $(SRC)\r
+               $(CC) $(CFLAGS) -o $(BIN_DIR)/antlr.exe $(OBJ)\r
+\r
+# what files does PCCTS generate (both ANTLR and DLG)\r
+PCCTS_GEN=antlr.c scan.c err.c tokens.h mode.h parser.dlg stdpccts.h remap.h\r
+\r
+SRC=antlr.c scan.c err.c bits.c build.c fset2.c fset.c gen.c globals.c \\r
+       hash.c lex.c main.c misc.c $(SET)/set.c pred.c egman.c mrhoist.c fcache.c\r
+\r
+#\r
+# Don't worry about the ambiguity messages coming from antlr\r
+# for making antlr.c etc...  [should be 10 of them, I think]\r
+#\r
+#antlr.c stdpccts.h parser.dlg tokens.h err.c : antlr.g\r
+#      $(ANTLR) -gh antlr.g\r
+\r
+antlr.o : antlr.c mode.h tokens.h\r
+\r
+scan.o : scan.c mode.h tokens.h\r
+\r
+#scan.c mode.h: parser.dlg\r
+#      $(DLG) -C2 parser.dlg scan.c\r
+\r
+set.o : $(SET)/set.c\r
+       $(CC) $(CFLAGS) -c -o set.o $(SET)/set.c\r
+\r
+\r
+#\r
+# ****** These next targets are common to UNIX and PC world ********\r
+#\r
+\r
+#clean up all the intermediate files\r
+clean:\r
+       rm -f *.$(OBJ_EXT) core\r
+\r
+#remove everything in clean plus the PCCTS files generated\r
+scrub:\r
+       rm -f $(PCCTS_GEN) *.$(OBJ_EXT) core\r