Changeset 903 for trunk


Ignore:
Timestamp:
Jan 5, 2008, 3:51:36 AM (18 years ago)
Author:
Steven Levine
Message:

Switch to wrc.exe as default resource compiler.
Support USE_RC wmake variable to override.

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/dll/makefile

    r899 r903  
    3434# 22 Sep 07 SHL Switch to 4 byte packing (-zp4)
    3535# 03 Jan 08 SHL Prepare for final, implending switch to wrc.exe
     36# 03 Jan 08 SHL Switch to wrc.exe default; support USE_RC from environment
    3637
    3738# Environment:
     
    4849LINK = wlink
    4950
    50 # // 01 Jan 08 SHL fixme debug
    51 # USE_WRC = 1
    52 
    53 !ifndef USE_WRC                 # if not defined on command line
    54 !ifdef %USE_WRC                 # if defined in environment
    55 USE_WRC = $(%USE_WRC)
    56 !else
    57 USE_WRC = 0
    58 !endif
    59 !endif
    60 
    61 !if $(USE_WRC)
     51!ifndef USE_RC                  # if not defined on command line
     52!ifdef %USE_RC                  # if defined in environment
     53USE_RC = $(%USE_RC)
     54!else
     55USE_RC = 0
     56!endif
     57!endif
     58
     59!if $(USE_RC)
     60RC = rc
     61!else
    6262RC = wrc
    63 !else
    64 RC = rc
    6563!endif
    6664
     
    119117
    120118# rc Includes can be in current director or dll subdirectory
    121 !if $(USE_WRC)
     119!if $(USE_RC)
     120RCFLAGS = -r -i dll
     121RCFLAGS2 = -x2
     122!else
    122123# Pass 1 flags
    123124RCFLAGS = -r -i=dll -ad
    124125# Pass 2 flags
    125126RCFLAGS2 =
    126 !else
    127 RCFLAGS = -r -i dll
    128 RCFLAGS2 = -x2
    129127!endif
    130128
     
    213211$(BASERES).res: *.rc *.dlg fm3dll2.h fm3dlg.h $(ICONS)
    214212  $(RC) $(RCFLAGS) $*
    215 !if ! $(USE_WRC)
     213!if $(USE_RC)
    216214  ren $*.res $*.res
    217215!endif
     
    242240  bldlevel $@
    243241
    244 !endif
     242!endif # MAKERES mode
     243
     244# For testing new code
     245tmp.obj: tmp.c
    245246
    246247$(BASERES).str: $(BASE).str fm3str.h version.h
  • trunk/makefile_pre.mk

    r874 r903  
    1010# 22 Sep 07 SHL Switch to 4 byte packing (-zp4)
    1111# 26 Sep 07 SHL Support USE_WRC from environment
     12# 03 Jan 08 SHL Switch to wrc.exe default; support USE_RC from environment
    1213
    1314CC = wcc386
    1415LINK = wlink
    1516
    16 # 26 Sep 07 SHL fixme for rc.exe logic to be gone
    17 
    18 !ifndef USE_WRC                 # if not defined on command line
    19 !ifdef %USE_WRC                 # if defined in environment
    20 USE_WRC = $(%USE_WRC)
     17!ifndef USE_RC                  # if not defined on command line
     18!ifdef %USE_RC                  # if defined in environment
     19USE_RC = $(%USE_RC)
    2120!else
    22 USE_WRC = 0
     21USE_RC = 0
    2322!endif
    2423!endif
    2524
    26 !if $(USE_WRC)
     25!if $(USE_RC)
     26RC = rc
     27!else
    2728RC = wrc
    28 !else
    29 RC = rc
    3029!endif
    3130
     
    7271
    7372# rc Includes can be in current director or dll subdirectory
    74 !if $(USE_WRC)
     73!if $(USE_RC)
     74RCFLAGS = -r -i dll
     75RCFLAGS2 = -x2
     76!else
    7577# Pass 1 flags
    7678RCFLAGS = -r -i=dll -ad
    7779# Pass 2 flags
    7880RCFLAGS2 =-ad
    79 !else
    80 RCFLAGS = -r -i dll
    81 RCFLAGS2 = -x2
    8281!endif
    8382
     
    8584.SUFFIXES: .obj .c .res .rc .ipf
    8685
    87 !if $(USE_WRC)
    88 .rc.res: .AUTODEPEND
    89   $(RC) $(RCFLAGS) $*.rc
    90 !else
     86!if $(USE_RC)
    9187.rc.res:
    9288   $(RC) $(RCFLAGS) $*.rc
    9389   ren $*.res $*.res
     90!else
     91.rc.res: .AUTODEPEND
     92  $(RC) $(RCFLAGS) $*.rc
    9493!endif
    9594
Note: See TracChangeset for help on using the changeset viewer.