Changeset 719
- Timestamp:
- Jul 4, 2007, 2:54:53 AM (18 years ago)
- Location:
- trunk
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/dll/internal/makefile
r716 r719 31 31 CFLAGS = -bt=os2 -mf -bm -d2 -olirs -s -j -wx -zfp -zgp -zq -hd 32 32 33 # fixme34 #LFLAGS = /EXEPACK:2 /MAP /PMTYPE:VIO35 36 33 all: $(BASE).exe .symbolic 37 34 … … 48 45 @%write $^@ option cache 49 46 @%write $^@ option caseexact 50 !if $(DEBUG)47 !ifdef DEBUG 51 48 @%write $^@ debug dwarf all 52 49 !endif -
trunk/dll/makefile
r706 r719 25 25 # 12 May 07 SHL Drop obsolete macros 26 26 # 02 Jun 07 SHL Convert to OpenWatcom 27 28 # Warning - may still be missing some *.h dependencies27 # 27 Jun 07 SHL Allow DEBUG set from command line or environment 28 # 03 Jul 07 SHL Change DEBUG semantics to ifdef/ifndef 29 29 30 30 # Environment: 31 31 32 # DEBUG 0 = release build, 1 = debug build 33 # WARN define for verbose compile time warnings 32 # DEBUG - not defined = release build, defined = debug build 34 33 35 34 BASE = fm3dll … … 44 43 # fixme for wrc to build working .res 45 44 # fixme for wrc to not clobber bldlevel strings 45 46 !ifndef USE_WRC 46 47 USE_WRC = 0 48 !endif 47 49 48 50 !if $(USE_WRC) … … 50 52 !else 51 53 RC = rc 54 !endif 55 56 # Keep this code in sync with makefile_pre.mk 57 !ifndef DEBUG # if not defined on wmake command line 58 !ifdef %DEBUG # if defined in environment 59 DEBUG = $(%DEBUG) # use environment setting 60 !endif 52 61 !endif 53 62 … … 75 84 # -zq quiet 76 85 77 !ifdef %DEBUG86 !ifdef DEBUG 78 87 CFLAGS = -bt=os2 -mf -bd -bm -d2 -olirs -s -sg -j -wx -zfp -zgp -zq -hd 79 88 !else … … 84 93 CFLAGSR = -bt=os2 -mf -bd -bm -olirs -s -j -wx -zfp -zgp 85 94 86 !ifdef %DEBUG95 !ifdef DEBUG 87 96 LFLAGS = sys os2v2_dll initinstance terminstance op quiet op verbose op cache & 88 97 op caseexact op implib op map debug dwarf all -
trunk/makefile
r703 r719 17 17 # differences in how Watcom handles macros. 18 18 19 # Environment: 20 21 # DEBUG 0 = release build, 1 = debug build 19 # Environment - see makefile_pre.mk 22 20 23 21 BASE = fm3 … … 26 24 # e.g. FM2_VER=-3-5-9 results in FM2-3-5-9.wpi being built 27 25 # If FM2_VER is empty, then FM2.wpi is built 28 # NOTE: Start the va riable with '-'26 # NOTE: Start the value with '-' 29 27 30 28 !ifndef FM2_VER # if defined on wmake command, use it … … 38 36 # e.g. FM2UTILS_VER=-1-0 results in FM2Utils-1.0.wpi being built 39 37 # If FM2UTILS_VER is empty, then FM2UTILS.wpi is built 40 # NOTE: Start the va riable with '-'38 # NOTE: Start the value with '-' 41 39 42 40 !ifndef FM2UTILS_VER # if defined on wmake command, use it … … 99 97 # Apply to each *.mak for other exes 100 98 lxlite:: *.mak .symbolic 101 # !$(MAKE) -f $? $(__MAKEOPTS__) lxlite102 99 @for %f in ($<) do $(MAKE) -f %f $(__MAKEOPTS__) lxlite 103 100 -
trunk/makefile_post.mk
r691 r719 13 13 14 14 $(BASE).exe: $(BASE).lrf $(BASE).obj $(BASE).res $(BASE).def .explicit 15 @$(LINK) @$(BASE).lrf @$(BASE).def15 $(LINK) @$(BASE).lrf @$(BASE).def 16 16 $(RC) $(RCFLAGS2) $(BASE).res $@ 17 17 bldlevel $@ -
trunk/makefile_pre.mk
r714 r719 5 5 # 02 Jun 07 SHL Convert to OpenWatcom 6 6 # 27 Jun 07 SHL Use same CFLAGS for all builds 7 # 27 Jun 07 SHL Allow DEBUG set from command line or environment 8 # 03 Jul 07 SHL Change DEBUG semantics to ifdef/ifndef 7 9 8 10 CC = wcc386 9 11 LINK = wlink 10 12 11 # fixme for wrc to build working .res12 # fixme for wrc to not clobber bldlevel strings13 # fixme use use wrc when wrc fixed (v1.7 maybe) 14 # wrc 1.6 is broken - does not copy resident name table 13 15 14 16 !ifndef USE_WRC … … 20 22 !else 21 23 RC = rc 24 !endif 25 26 # Keep this code in sync with dll\makefile 27 !ifndef DEBUG # if not defined on wmake command line 28 !ifdef %DEBUG # if defined in environment 29 DEBUG = $(%DEBUG) # pass environment value 30 !endif 22 31 !endif 23 32 … … 46 55 47 56 # We always compile with debug info to avoid needed a full rebuild just to debug 48 CFLAGS = 57 CFLAGS = -bt=os2 -mf -bm -d2 -olirs -s -j -wx -zfp -zgp -zq -hd 49 58 50 !ifdef %DEBUG51 LFLAGS = sys os2v2_pm op quiet op verbose op cache op caseexact op map debug dwarf all52 !else53 59 LFLAGS = sys os2v2_pm op quiet op verbose op cache op caseexact op map 60 !ifdef DEBUG 61 LFLAGS += debug dwarf all 54 62 !endif 55 63
Note:
See TracChangeset
for help on using the changeset viewer.