Changeset 691 for trunk/makefile_pre.mk
- Timestamp:
- Jun 16, 2007, 3:36:42 AM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/makefile_pre.mk
r481 r691 3 3 4 4 # 01 Sep 06 SHL Adjust .res case 5 # 02 Jun 07 SHL Convert to OpenWatcom 5 6 6 LINK = ilink 7 CC = wcc386 8 LINK = wlink 7 9 8 !ifndef DEBUG 9 DEBUG = 0 10 # fixme for wrc to build working .res 11 # fixme for wrc to not clobber bldlevel strings 12 USE_WRC = 0 13 14 !if $(USE_WRC) 15 RC = wrc 16 !else 17 RC = rc 10 18 !endif 11 19 12 CFLAGS = /G5 /Gm+ /Gs- /Gt- /IDLL /Mp /O- /Q+ /Sp4 /Ss /Ti+ /W3 20 # Some flags are order dependent - see OpenWatcom docs 21 # -bc console app 22 # -bd build target is a Dynamic Link Library (DLL) (see bd) 23 # -bg gui app with WinMain entry point 24 # -bm multithread libs 25 # -bt=os2 target 26 # -d2 full debug 27 # -d3 full debug w/unref 28 # -hd dwarf 29 # -j signed char 30 # -mf flat 31 # -olinars optimze loops, inline, e(n)able fp recip, relax (a)lias, reordering, space 32 # -s disable stack checks 33 # -sg generate calls to grow the stack 34 # -st touch stack through SS first 35 # -wcd14 no reference to symbol 36 # -wcd726 no reference to formal parameter 37 # -wx max warnings 38 # -zfp disable fs use 39 # -zgp disable gs use 40 # -zp4 align 4 41 # -zq quiet 13 42 14 !if $(DEBUG)15 LFLAGS = /DE /ALIGN:4 /EXEPACK:2 /NOI /MAP /PMTYPE:PM /NOE 43 !ifdef %DEBUG 44 CFLAGS = -bt=os2 -mf -bm -d1 -olirs -s -j -wx -zfp -zgp -zq -hd 16 45 !else 17 LFLAGS = /ALIGN:4 /EXEPACK /MAP /NOI /PMTYPE:PM /NOE 46 CFLAGS = -bt=os2 -mf -bm -d1 -olirs -s -j -wx -zfp -zgp -zq -hd 18 47 !endif 19 48 20 # Includes can be in current director or dll subdirectory 21 RCFLAGS = -i dll 49 !ifdef %DEBUG 50 LFLAGS = sys os2v2_pm op quiet op verbose op cache op caseexact op map debug dwarf all 51 !else 52 LFLAGS = sys os2v2_pm op quiet op verbose op cache op caseexact op map 53 !endif 54 55 # rc Includes can be in current director or dll subdirectory 56 !if $(USE_WRC) 57 # Pass 1 flags 58 RCFLAGS = -r -i=dll -ad 59 # Pass 2 flags 60 RCFLAGS2 =-ad 61 !else 62 RCFLAGS = -r -i dll 63 RCFLAGS2 = -x2 64 !endif 22 65 23 66 .SUFFIXES: 24 .SUFFIXES: . c.rc .ipf67 .SUFFIXES: .obj .c .res .rc .ipf 25 68 69 !if $(USE_WRC) 70 .rc.res: .AUTODEPEND 71 $(RC) $(RCFLAGS) $*.rc 72 !else 26 73 .rc.res: 27 $(RC) $(RCFLAGS) -r$*.rc74 $(RC) $(RCFLAGS) $*.rc 28 75 ren $*.res $*.res 76 !endif 29 77 30 .c.obj: 31 $(CC) $(CFLAGS) /C$*.c78 .c.obj: .AUTODEPEND 79 $(CC) $(CFLAGS) $*.c 32 80 33 81 # The end
Note:
See TracChangeset
for help on using the changeset viewer.