Changeset 1259
- Timestamp:
- Oct 26, 2008, 3:03:41 AM (17 years ago)
- Location:
- trunk
- Files:
-
- 4 edited
-
dll/internal/makefile (modified) (3 diffs)
-
makefile (modified) (3 diffs)
-
makefile_post.mk (modified) (3 diffs)
-
makefile_pre.mk (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/dll/internal/makefile
r1148 r1259 6 6 # 14 Jun 07 SHL Convert to OpenWatcom 7 7 # 27 Jun 07 SHL Support DEBUG set from command line or environment 8 # 25 Oct 08 SHL Rework dependencies to avoid target dependent build failures 8 9 9 10 BASE=mkstr … … 33 34 all: $(BASE).exe .symbolic 34 35 36 syms: $(BASE).sym .symbolic 37 35 38 $(BASE).obj: $(BASE).c .AUTODEPEND 36 39 37 $(BASE).exe : $(BASE).obj $(BASE).lrf40 $(BASE).exe $(BASE).map: $(BASE).obj $(BASE).lrf 38 41 $(LINK) @$(BASE).lrf 39 42 bldlevel $@ … … 54 57 @%write $^@ library os2386.lib 55 58 59 lxlite: $(BASE).exe .symbolic 60 !ifndef DEBUG 61 lxlite /x- /b- $? 62 !endif 63 64 $(BASE).sym: $(BASE).map 65 @echo Processing: $? 66 -perl ..\..\debugtools\mapsymw.pl $(BASE).map 67 56 68 clean: .symbolic 57 69 -del $(BASE).exe -
trunk/makefile
r1133 r1259 22 22 # 22 Jul 08 SHL Change from dll\dllsyms to dll\syms target for consistency 23 23 # 22 Jul 08 SHL Pass FORTIFY options to subordinate makefiles 24 # 25 Oct 08 SHL Sanitize DEBUG usage 24 25 25 # Environment - see makefile_pre.mk 26 # Environment - see makefile_pre.mk and dll\makefile 26 27 27 28 BASE = fm3 … … 77 78 78 79 allexe: *.mak .symbolic 79 @for %f in ($<) do $(MAKE) -f %f $(__MAKEOPTS__) $(DEBUG_OPT) $(FORTIFY_OPT)80 @for %f in ($<) do $(MAKE) -f %f $(__MAKEOPTS__) $(DEBUG_OPT) $(FORTIFY_OPT) 80 81 81 82 # make SYM files 82 83 83 84 exesyms: *.mak .symbolic 84 @for %f in ($<) do $(MAKE) -f %f $(__MAKEOPTS__) $(DEBUG_OPT) $(FORTIFY_OPT) sym85 @for %f in ($<) do $(MAKE) -f %f $(__MAKEOPTS__) $(DEBUG_OPT) $(FORTIFY_OPT) sym 85 86 86 87 # make WPI files 87 88 88 89 wpi: .symbolic 89 cd warpin90 $(MAKE) $(__MAKEOPTS__) $(DEBUG_OPT) $(WARPIN_OPTS)91 cd ..90 cd warpin 91 $(MAKE) $(__MAKEOPTS__) $(DEBUG_OPT) $(WARPIN_OPTS) 92 cd .. 92 93 93 94 lxlite:: lxlitedll lxliteexe .symbolic … … 96 97 # Apply to each *.mak for other exes 97 98 lxliteexe: *.mak .symbolic 98 !ifdef DEBUG 99 ! ifeq DEBUG 0 100 @for %f in ($<) do $(MAKE) -f %f $(__MAKEOPTS__) $(DEBUG_OPT) $(FORTIFY_OPT) lxlite 101 ! endif 102 !else 103 @for %f in ($<) do $(MAKE) -f %f $(__MAKEOPTS__) $(DEBUG_OPT) $(FORTIFY_OPT) lxlite 99 !ifndef DEBUG 100 @for %f in ($<) do $(MAKE) -f %f $(__MAKEOPTS__) $(DEBUG_OPT) $(FORTIFY_OPT) lxlite 104 101 !endif 105 102 106 103 # Apply to dlls 107 104 lxlitedll: .symbolic 105 !ifndef DEBUG 108 106 cd dll 109 !ifdef DEBUG 110 ! ifeq DEBUG 0 111 $(MAKE) $(__MAKEOPTS__) $(DEBUG_OPT) $(FORTIFY_OPT) lxlite 112 # $(MAKE) $(DEBUG_OPT) $(FORTIFY_OPT) lxlite 113 ! endif 114 !else 115 $(MAKE) $(__MAKEOPTS__) $(DEBUG_OPT) $(FORTIFY_OPT) lxlite 116 # $(MAKE) $(DEBUG_OPT) $(FORTIFY_OPT) lxlite 107 $(MAKE) $(__MAKEOPTS__) $(DEBUG_OPT) $(FORTIFY_OPT) lxlite 108 cd .. 117 109 !endif 118 cd ..119 110 120 111 cleanobj: .symbolic -
trunk/makefile_post.mk
r987 r1259 6 6 # 02 Jun 07 SHL Convert to OpenWatcom 7 7 # 23 Feb 08 JBS Add support for building SYM files (Ticket 226) 8 # 25 Oct 08 JBS Rework DEBUG usage to match what C code expects 8 9 9 10 !ifndef MAKERES … … 37 38 $(BASE).exe: $(BASE).res .explicit 38 39 @if not exist $@ echo $@ missing 39 !ifdef DEBUG 40 ! ifeq DEBUG 0 41 lxlite $@ /x+ /b- 42 lxlite $@ /c:minstub 43 ! endif 44 !else 40 !ifndef DEBUG 45 41 lxlite $@ /x+ /b- 46 42 lxlite $@ /c:minstub 47 43 !endif 48 44 $(RC) $(RCFLAGS2) $(BASE).res $@ 49 !ifdef DEBUG 50 ! ifeq DEBUG 0 51 lxlite $@ /x- /b- 52 ! endif 53 !else 45 !ifndef DEBUG 54 46 lxlite $@ /x- /b- 55 47 !endif … … 59 51 60 52 lxlite:: $(BASE).exe .symbolic .explicit 61 !ifdef DEBUG 62 ! ifeq DEBUG 0 63 lxlite /x- /b- $? 64 ! endif 65 !else 53 !ifndef DEBUG 66 54 lxlite /x- /b- $? 67 55 !endif -
trunk/makefile_pre.mk
r1133 r1259 14 14 # 27 May 08 SHL Add WARNALL and FORTIFY support 15 15 # 22 Jul 08 SHL Pass FORTIFY to subordinate makefiles 16 # 06 Oct 08 SHL Pass DEBUG in CFLAGS; clean up USE_RC usage 17 18 # Environment: see dll\makefile 19 20 # DEBUG - not defined = release build, defined = debug build 21 # WARNALL - add more warnings if defined 22 # FORTIFY - build with FORTIFYed memory 23 # USE_RC - build with rc.exe if defined, other build with wrc.exe 16 24 17 25 CC = wcc386 … … 21 29 !ifdef %USE_RC # if defined in environment 22 30 USE_RC = $(%USE_RC) 23 !else24 USE_RC = 025 31 !endif 26 32 !endif 27 33 28 !if $(USE_RC)34 !ifdef USE_RC 29 35 RC = rc 30 36 !else … … 102 108 LFLAGS = sys os2v2_pm op quiet op verbose op cache op caseexact op map 103 109 !ifdef DEBUG 110 CFLAGS += -d$DEBUG_OPT 104 111 LFLAGS += debug dwarf all 105 112 !endif 106 113 107 114 # rc Includes can be in current director or dll subdirectory 108 !if $(USE_RC)115 !ifdef USE_RC 109 116 RCFLAGS = -r -i dll 110 117 RCFLAGS2 = -x2 … … 119 126 .SUFFIXES: .obj .c .res .rc .ipf .sym .map 120 127 121 !if $(USE_RC)128 !ifdef USE_RC 122 129 .rc.res: 123 130 $(RC) $(RCFLAGS) $*.rc
Note:
See TracChangeset
for help on using the changeset viewer.
