Changeset 691 for trunk/makefile_pre.mk


Ignore:
Timestamp:
Jun 16, 2007, 3:36:42 AM (18 years ago)
Author:
Steven Levine
Message:

Commit primary makefiles to OpenWatcom

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/makefile_pre.mk

    r481 r691  
    33
    44# 01 Sep 06 SHL Adjust .res case
     5# 02 Jun 07 SHL Convert to OpenWatcom
    56
    6 LINK = ilink
     7CC = wcc386
     8LINK = wlink
    79
    8 !ifndef DEBUG
    9 DEBUG = 0
     10# fixme for wrc to build working .res
     11# fixme for wrc to not clobber bldlevel strings
     12USE_WRC = 0
     13
     14!if $(USE_WRC)
     15RC = wrc
     16!else
     17RC = rc
    1018!endif
    1119
    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
    1342
    14 !if $(DEBUG)
    15 LFLAGS = /DE /ALIGN:4 /EXEPACK:2 /NOI /MAP /PMTYPE:PM /NOE
     43!ifdef %DEBUG
     44CFLAGS =   -bt=os2 -mf -bm -d1 -olirs   -s -j -wx -zfp -zgp -zq -hd
    1645!else
    17 LFLAGS = /ALIGN:4 /EXEPACK /MAP /NOI /PMTYPE:PM /NOE
     46CFLAGS =   -bt=os2 -mf -bm -d1 -olirs   -s -j -wx -zfp -zgp -zq -hd
    1847!endif
    1948
    20 # Includes can be in current director or dll subdirectory
    21 RCFLAGS = -i dll
     49!ifdef %DEBUG
     50LFLAGS = sys os2v2_pm op quiet op verbose op cache op caseexact op map debug dwarf all
     51!else
     52LFLAGS = 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
     58RCFLAGS = -r -i=dll -ad
     59# Pass 2 flags
     60RCFLAGS2 =-ad
     61!else
     62RCFLAGS = -r -i dll
     63RCFLAGS2 = -x2
     64!endif
    2265
    2366.SUFFIXES:
    24 .SUFFIXES: .c .rc .ipf
     67.SUFFIXES: .obj .c .res .rc .ipf
    2568
     69!if $(USE_WRC)
     70.rc.res: .AUTODEPEND
     71  $(RC) $(RCFLAGS) $*.rc
     72!else
    2673.rc.res:
    27    $(RC) $(RCFLAGS) -r $*.rc
     74   $(RC) $(RCFLAGS) $*.rc
    2875   ren $*.res $*.res
     76!endif
    2977
    30 .c.obj:
    31   $(CC) $(CFLAGS) /C $*.c
     78.c.obj: .AUTODEPEND
     79  $(CC) $(CFLAGS) $*.c
    3280
    3381# The end
Note: See TracChangeset for help on using the changeset viewer.