Changeset 6109 for trunk/tools


Ignore:
Timestamp:
Jun 26, 2001, 2:08:46 AM (24 years ago)
Author:
bird
Message:

Made it compile without bison and flex, and with the other compilers. But due to performance we have to add -O and -Tm- in debug mode of VAC.

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#
    210
    311
     
    1826NO_MAIN_BIN_COPY = 1
    1927
     28
    2029# Subdirectories.
    2130SUBDIRS = \
     
    2635# include common definitions
    2736#
    28 CCENV=EMX
    2937!include ../../makefile.inc
     38
    3039
    3140#
    3241# Addjust common definitions
    3342#
    34 #DEFS      = -D__WINE__ -D__WIN32OS2__ -idirafter ../../include/win -idirafter ../../include
    35 CDEFINES   = -D__EMX__ -DMASM -D__SEMICOLON__
     43!if "$(CCENV)" == "EMX"
     44CDEFINES   = $(CDEFINES) -D__EMX__ -DMASM -D__SEMICOLON__
     45!else
     46CDEFINES   = $(CDEFINES) -DMASM -D__SEMICOLON__ -DYY_USE_PROTOS
     47!endif
     48!if "$(VAC3)" == "1" || "$(VAC36)" == "1"
     49!ifdef DEBUG
     50CFLAGS     = $(CFLAGS) -O+ -Tm-
     51!endif
     52!endif
     53
    3654
    3755YACC    = bison
     
    6179$(OBJDIR)\lex.ppl.$(OBJ) \
    6280$(OBJDIR)\writeres.$(OBJ) \
     81!if "$(CCENV)" == "VAC36" || "$(CCENV)" == "VAC3"
     82$(OBJDIR)\getopt.$(OBJ)
     83!endif
    6384
    6485
     
    85106
    86107#
     108# Needed tools
     109#
     110needed: all
     111
     112
     113#
    87114# Extra rules.
    88115#
     116!ifdef HAVE_BISON
    89117y.tab.c y.tab.h: parser.y
    90118    $(YACC) -d -t parser.y -o y.tab.c
    91119
     120ppy.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
    92125lexyy.c: parser.l
    93126    $(LEX) -8 -d parser.l
    94127
    95 ppy.tab.c ppy.tab.h: ppy.y
    96     $(YACC) $(YACCOPT) -bppy -ppp -d -t ppy.y -o ppy.tab.c
    97 
    98128lex.ppl.c: ppl.l
    99129    $(LEX) $(LEXOPT) -d -Ppp -8 -olex.ppl.c ppl.l
    100 
     130!endif
Note: See TracChangeset for help on using the changeset viewer.