- Timestamp:
- Jan 5, 2008, 3:51:36 AM (18 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
-
dll/makefile (modified) (5 diffs)
-
makefile_pre.mk (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/dll/makefile
r899 r903 34 34 # 22 Sep 07 SHL Switch to 4 byte packing (-zp4) 35 35 # 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 36 37 37 38 # Environment: … … 48 49 LINK = wlink 49 50 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 53 USE_RC = $(%USE_RC) 54 !else 55 USE_RC = 0 56 !endif 57 !endif 58 59 !if $(USE_RC) 60 RC = rc 61 !else 62 62 RC = wrc 63 !else64 RC = rc65 63 !endif 66 64 … … 119 117 120 118 # rc Includes can be in current director or dll subdirectory 121 !if $(USE_WRC) 119 !if $(USE_RC) 120 RCFLAGS = -r -i dll 121 RCFLAGS2 = -x2 122 !else 122 123 # Pass 1 flags 123 124 RCFLAGS = -r -i=dll -ad 124 125 # Pass 2 flags 125 126 RCFLAGS2 = 126 !else127 RCFLAGS = -r -i dll128 RCFLAGS2 = -x2129 127 !endif 130 128 … … 213 211 $(BASERES).res: *.rc *.dlg fm3dll2.h fm3dlg.h $(ICONS) 214 212 $(RC) $(RCFLAGS) $* 215 !if ! $(USE_WRC)213 !if $(USE_RC) 216 214 ren $*.res $*.res 217 215 !endif … … 242 240 bldlevel $@ 243 241 244 !endif 242 !endif # MAKERES mode 243 244 # For testing new code 245 tmp.obj: tmp.c 245 246 246 247 $(BASERES).str: $(BASE).str fm3str.h version.h -
trunk/makefile_pre.mk
r874 r903 10 10 # 22 Sep 07 SHL Switch to 4 byte packing (-zp4) 11 11 # 26 Sep 07 SHL Support USE_WRC from environment 12 # 03 Jan 08 SHL Switch to wrc.exe default; support USE_RC from environment 12 13 13 14 CC = wcc386 14 15 LINK = wlink 15 16 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 19 USE_RC = $(%USE_RC) 21 20 !else 22 USE_ WRC = 021 USE_RC = 0 23 22 !endif 24 23 !endif 25 24 26 !if $(USE_WRC) 25 !if $(USE_RC) 26 RC = rc 27 !else 27 28 RC = wrc 28 !else29 RC = rc30 29 !endif 31 30 … … 72 71 73 72 # rc Includes can be in current director or dll subdirectory 74 !if $(USE_WRC) 73 !if $(USE_RC) 74 RCFLAGS = -r -i dll 75 RCFLAGS2 = -x2 76 !else 75 77 # Pass 1 flags 76 78 RCFLAGS = -r -i=dll -ad 77 79 # Pass 2 flags 78 80 RCFLAGS2 =-ad 79 !else80 RCFLAGS = -r -i dll81 RCFLAGS2 = -x282 81 !endif 83 82 … … 85 84 .SUFFIXES: .obj .c .res .rc .ipf 86 85 87 !if $(USE_WRC) 88 .rc.res: .AUTODEPEND 89 $(RC) $(RCFLAGS) $*.rc 90 !else 86 !if $(USE_RC) 91 87 .rc.res: 92 88 $(RC) $(RCFLAGS) $*.rc 93 89 ren $*.res $*.res 90 !else 91 .rc.res: .AUTODEPEND 92 $(RC) $(RCFLAGS) $*.rc 94 93 !endif 95 94
Note:
See TracChangeset
for help on using the changeset viewer.
