Changeset 6109 for trunk/tools
- Timestamp:
- Jun 26, 2001, 2:08:46 AM (24 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tools/wrc/makefile
r6096 r6109 1 # $Id: makefile,v 1.4 2001-06-25 13:54:43 bird Exp $ 1 # $Id: makefile,v 1.5 2001-06-26 00:08:46 bird Exp $ 2 3 # 4 # WRC makefile. 5 # 6 # Note. If you wanna recompile everything you'll need flex and bison. 7 # Both are found at hobbes. 8 # AND you'll have to set env.var. HAVE_BISON and HAVE_FLEX. 9 # 2 10 3 11 … … 18 26 NO_MAIN_BIN_COPY = 1 19 27 28 20 29 # Subdirectories. 21 30 SUBDIRS = \ … … 26 35 # include common definitions 27 36 # 28 CCENV=EMX29 37 !include ../../makefile.inc 38 30 39 31 40 # 32 41 # Addjust common definitions 33 42 # 34 #DEFS = -D__WINE__ -D__WIN32OS2__ -idirafter ../../include/win -idirafter ../../include 35 CDEFINES = -D__EMX__ -DMASM -D__SEMICOLON__ 43 !if "$(CCENV)" == "EMX" 44 CDEFINES = $(CDEFINES) -D__EMX__ -DMASM -D__SEMICOLON__ 45 !else 46 CDEFINES = $(CDEFINES) -DMASM -D__SEMICOLON__ -DYY_USE_PROTOS 47 !endif 48 !if "$(VAC3)" == "1" || "$(VAC36)" == "1" 49 !ifdef DEBUG 50 CFLAGS = $(CFLAGS) -O+ -Tm- 51 !endif 52 !endif 53 36 54 37 55 YACC = bison … … 61 79 $(OBJDIR)\lex.ppl.$(OBJ) \ 62 80 $(OBJDIR)\writeres.$(OBJ) \ 81 !if "$(CCENV)" == "VAC36" || "$(CCENV)" == "VAC3" 82 $(OBJDIR)\getopt.$(OBJ) 83 !endif 63 84 64 85 … … 85 106 86 107 # 108 # Needed tools 109 # 110 needed: all 111 112 113 # 87 114 # Extra rules. 88 115 # 116 !ifdef HAVE_BISON 89 117 y.tab.c y.tab.h: parser.y 90 118 $(YACC) -d -t parser.y -o y.tab.c 91 119 120 ppy.tab.c ppy.tab.h: ppy.y 121 $(YACC) $(YACCOPT) -bppy -ppp -d -t ppy.y -o ppy.tab.c 122 !endif 123 124 !ifdef HAVE_FLEX 92 125 lexyy.c: parser.l 93 126 $(LEX) -8 -d parser.l 94 127 95 ppy.tab.c ppy.tab.h: ppy.y96 $(YACC) $(YACCOPT) -bppy -ppp -d -t ppy.y -o ppy.tab.c97 98 128 lex.ppl.c: ppl.l 99 129 $(LEX) $(LEXOPT) -d -Ppp -8 -olex.ppl.c ppl.l 100 130 !endif
Note:
See TracChangeset
for help on using the changeset viewer.