Changeset 1133
- Timestamp:
- Aug 30, 2008, 6:27:29 AM (17 years ago)
- Location:
- trunk
- Files:
-
- 3 edited
-
dll/makefile (modified) (5 diffs)
-
makefile (modified) (4 diffs)
-
makefile_pre.mk (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/dll/makefile
r1054 r1133 28 28 # 03 Jul 07 SHL Change DEBUG semantics to ifdef/ifndef 29 29 # 04 Jul 07 SHL Pass DEBUG settings to sub-make 30 # 04 Jul 07 SHL Add missing . AUTODEPEND30 # 04 Jul 07 SHL Add missing .autodepend 31 31 # 06 Aug 07 SHL Tweak CFLAGS for DEBUG builds 32 32 # 26 Aug 07 SHL Clean *.lrf … … 40 40 # 05 May 08 SHL Add FORTIFY support 41 41 # 26 May 08 SHL Update WARNALL to warn about more 42 # 22 Jul 08 SHL Change from dllsyms to syms target for consistency 42 43 43 44 # Environment: … … 163 164 164 165 !ifndef MAKERES 165 .c.obj: . AUTODEPEND166 .c.obj: .autodepend 166 167 $(CC) $(CFLAGS) $*.c 167 168 !else … … 202 203 fm3res.str 203 204 204 dllsyms: $(SYMS) .symbolic205 syms: $(SYMS) .symbolic 205 206 206 207 $(BASE).dll $(BASE).lib: $(OBJS) $(BASE).def $(BASE).lrf … … 253 254 cd.. 254 255 255 $(BASERES).obj: $(BASERES).c . AUTODEPEND256 $(BASERES).obj: $(BASERES).c .autodepend 256 257 $(CC) $(CFLAGSR) $(BASERES).c 257 258 -
trunk/makefile
r1054 r1133 19 19 # 21 Jan 08 SHL Add *.lrf to clean target 20 20 # 22 Feb 08 JBS Suppress lxlite processing when DEBUG=1 21 # 08 Jul 08 SHL Avoid extra work for wmake -a dist 22 # 22 Jul 08 SHL Change from dll\dllsyms to dll\syms target for consistency 23 # 22 Jul 08 SHL Pass FORTIFY options to subordinate makefiles 21 24 22 25 # Environment - see makefile_pre.mk … … 42 45 !include makefile_pre.mk 43 46 44 45 47 all: dll $(BASE) allexe .symbolic 46 48 47 49 syms: exesyms dllsyms .symbolic 48 50 49 dist: all syms lxlitewpi .symbolic51 dist: lxlitedll $(BASE) lxliteexe syms wpi .symbolic 50 52 51 53 # Only update resources … … 58 60 dll: .symbolic 59 61 cd dll 60 $(MAKE) $(__MAKEOPTS__) $(DEBUG_OPT) 62 $(MAKE) $(__MAKEOPTS__) $(DEBUG_OPT) $(FORTIFY_OPT) 61 63 cd .. 62 64 63 65 dllsyms: .symbolic 64 66 cd dll 65 $(MAKE) $(__MAKEOPTS__) $(DEBUG_OPT) dllsyms67 $(MAKE) $(__MAKEOPTS__) $(DEBUG_OPT) $(FORTIFY_OPT) syms 66 68 cd .. 67 69 68 70 $(BASE): $(BASE).exe $(BASE).res .symbolic 69 71 70 $(BASE).res: $(BASE).rc icons\$(BASE).ico bitmaps\*.bmp 72 $(BASE).res: $(BASE).rc icons\$(BASE).ico bitmaps\*.bmp .autodepend 71 73 72 $(BASE).obj: $(BASE).c dll\version.h 74 $(BASE).obj: $(BASE).c dll\version.h .autodepend 73 75 74 76 # make EXE compenents 75 77 76 78 allexe: *.mak .symbolic 77 @for %f in ($<) do $(MAKE) -f %f $(__MAKEOPTS__) $(DEBUG_OPT) 79 @for %f in ($<) do $(MAKE) -f %f $(__MAKEOPTS__) $(DEBUG_OPT) $(FORTIFY_OPT) 78 80 79 81 # make SYM files 80 82 81 83 exesyms: *.mak .symbolic 82 @for %f in ($<) do $(MAKE) -f %f $(__MAKEOPTS__) $(DEBUG_OPT) sym84 @for %f in ($<) do $(MAKE) -f %f $(__MAKEOPTS__) $(DEBUG_OPT) $(FORTIFY_OPT) sym 83 85 84 86 # make WPI files … … 89 91 cd .. 90 92 93 lxlite:: lxlitedll lxliteexe .symbolic 94 91 95 # makefile_post.mk contains lxlite target for $(BASE).exe 92 96 # Apply to each *.mak for other exes 93 lxlite :: *.mak .symbolic97 lxliteexe: *.mak .symbolic 94 98 !ifdef DEBUG 95 99 ! ifeq DEBUG 0 96 @for %f in ($<) do $(MAKE) -f %f $(__MAKEOPTS__) $(DEBUG_OPT) lxlite100 @for %f in ($<) do $(MAKE) -f %f $(__MAKEOPTS__) $(DEBUG_OPT) $(FORTIFY_OPT) lxlite 97 101 ! endif 98 102 !else 99 @for %f in ($<) do $(MAKE) -f %f $(__MAKEOPTS__) $(DEBUG_OPT) lxlite103 @for %f in ($<) do $(MAKE) -f %f $(__MAKEOPTS__) $(DEBUG_OPT) $(FORTIFY_OPT) lxlite 100 104 !endif 101 105 102 106 # Apply to dlls 103 lxlite :: .symbolic107 lxlitedll: .symbolic 104 108 cd dll 105 109 !ifdef DEBUG 106 110 ! ifeq DEBUG 0 107 # $(MAKE) $(__MAKEOPTS__) $(DEBUG_OPT) lxlite108 $(MAKE) $(DEBUG_OPT) lxlite111 $(MAKE) $(__MAKEOPTS__) $(DEBUG_OPT) $(FORTIFY_OPT) lxlite 112 # $(MAKE) $(DEBUG_OPT) $(FORTIFY_OPT) lxlite 109 113 ! endif 110 114 !else 111 # $(MAKE) $(__MAKEOPTS__) $(DEBUG_OPT) lxlite112 $(MAKE) $(DEBUG_OPT) lxlite115 $(MAKE) $(__MAKEOPTS__) $(DEBUG_OPT) $(FORTIFY_OPT) lxlite 116 # $(MAKE) $(DEBUG_OPT) $(FORTIFY_OPT) lxlite 113 117 !endif 114 118 cd .. -
trunk/makefile_pre.mk
r1023 r1133 13 13 # 23 Jan 08 JBS Add support for building SYM files (Ticket 226) 14 14 # 27 May 08 SHL Add WARNALL and FORTIFY support 15 # 22 Jul 08 SHL Pass FORTIFY to subordinate makefiles 15 16 16 17 CC = wcc386 … … 45 46 !endif 46 47 47 !ifdef %FORTIFY # if defined in environment 48 FORTIFY = $(%FORTIFY) # use value from environment 48 !ifdef FORTIFY # if defined on wmake command line 49 FORTIFY_OPT = FORTIFY=$(FORTIFY) # set in case needed by sub-make 50 !else 51 !ifdef %FORTIFY # if defined in environment 52 FORTIFY = $(%FORTIFY) # use value from environment 53 FORTIFY_OPT = FORTIFY=$(FORTIFY) # set in case needed by sub-make 54 !endif 49 55 !endif 50 56 … … 81 87 # -wcd=309 unprototyped function called indirectly 82 88 83 # We always compile with debug info to avoid need eda full rebuild just to debug89 # We always compile with debug info to avoid needing a full rebuild just to debug 84 90 CFLAGS = -bt=os2 -mf -bm -d2 -olirs -s -j -wx -zfp -zgp -zp4 -zq -hd 85 91
Note:
See TracChangeset
for help on using the changeset viewer.
