Ignore:
Timestamp:
Apr 14, 2001, 6:26:09 PM (24 years ago)
Author:
sandervl
Message:

makefile updates

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sbliveos2/trunk/drv16/makefile.os2

    r166 r174  
    3131!include ..\include\version.mak
    3232
    33 #########################################
    34 # Options for Watcom 16-bit C compiler
    35 #########################################
    36 #  -bt=os2   = Build target OS is OS/2
    37 #  -ms       = Memory model small
    38 #  -3        = Enable use of 80386 instructions
    39 #  -4        = Optimize for 486 (assumes -3)
    40 #  -5        = Optimize for Pentium (assumes -3)
    41 #  -j        = char default is unsigned
    42 #  -d1       = Include line number info in object
    43 #              (necessary to produce assembler listing)
    44 #  -d2       = Include debugging info for ICAT
    45 #              (necessary to produce assembler listing)
    46 #  -o        = Optimization - i = enable inline intrinsic functions
    47 #                             r = optimize for 80486 and pentium pipes
    48 #                             s = space is preferred to time
    49 #                             l = enable loop optimizations
    50 #                             a = relax aliasing constraints
    51 #                             n = allow numerically unstable optimizations
    52 #  -s        = Omit stack size checking from start of each function
    53 #  -zl       = Place no library references into objects
    54 #  -wx       = Warning level set to maximum (vs 1..4)
    55 #  -zfp      = Prevent use of FS selector
    56 #  -zgp      = Prevent use of GS selector
    57 #  -zq       = Operate quietly
    58 #  -zm       = Put each function in its own segment
    59 #  -zu       = Do not assume that SS contains segment of DGROUP
    60 #
    61 CC=wcc
    62 CPP=wpp
    63 !if "$(DEBUG)" == "1"
    64 CFLAGS  =-ms -5 -bt=os2 -hc -d2 -oi -s -j -wx -zl -zfp -zgp -zq -zu -zp1 -DDEBUG -DTARGET_OS216
    65 CPPFLAGS=-ms -5 -bt=os2 -hc -d2 -oi -s -j -wx -zl -zfp -zgp -zq -zu -zp1 -DDEBUG -DTARGET_OS216
    66 LFLAGS  = d codeview
    67 !else
    68 CFLAGS  =-ms -5 -bt=os2         -oi -s -j -wx -zl -zfp -zgp -zq -zu -zp1 -DTARGET_OS216
    69 CPPFLAGS=-ms -5 -bt=os2    -olinars -s -j -wx -zl -zfp -zgp -zq -zu -zp1 -DTARGET_OS216
    70 LFLAGS  =
    71 !endif
    72 
    73 #########################################
    74 # Options for Watcom assembler
    75 #########################################
    76 #  -bt=os2   = Build target OS is OS/2
    77 #  -d1       = Include line number info in object
    78 #              (necessary to produce assembler listing)
    79 #  -i        = Include list
    80 #  -zq       = Operate quietly
    81 #  -3p       = 80386 protected-mode instructions
    82 #
    83 ASM=wasm
    84 AFLAGS=-d1 -zq -3p -i
    85 LINK=wlink $(LFLAGS)
    86 
    87 #########################################
    88 # Inference rules
    89 #########################################
    90 
    91 .c.obj: .AUTODEPEND
    92      $(CC) $(CPPFLAGS) $*.c
    93 
    94 .cpp.obj: .AUTODEPEND
    95      $(CPP) $(CPPFLAGS) $*.cpp
    96 
    97 .asm.obj: .AUTODEPEND
    98      $(ASM) $(AFLAGS) $*.asm
     33!include ..\makefile.inc
     34!include ..\include\sblive16.mak
    9935
    10036#########################################
     
    11248OBJS=$(OBJS1) $(OBJS2) $(OBJS3) $(OBJS4) $(OBJS5) $(OBJS6) $(OBJS7) $(OBJS8) $(OBJS9)
    11349
    114 all: $(NAME).sys $(NAME).sym
     50all: $(OBJDIR)\$(NAME).sys $(OBJDIR)\$(NAME).sym
    11551
    116 
    117 $(NAME).lrf: makefile.os2 ..\include\version.mak
     52$(OBJDIR)\$(NAME).lrf: makefile.os2 ..\include\version.mak
    11853   @%write $^@ system os2 dll
    11954   @%write $^@ option quiet
     
    12156   @%write $^@ option caseexact
    12257   @%write $^@ option cache
    123    @%write $^@ option map=$(WMAPNAME)
     58   @%write $^@ option map=$(OBJDIR)\$(WMAPNAME)
    12459   @%write $^@ option description '@$#$(_VENDOR):$(_VERSION)$#@'
    125    @%write $^@ name $(NAME).sys
    126    @for %f in ($(OBJS)) do @%append $^@ file %f
     60   @%write $^@ name $(OBJDIR)\$(NAME).sys
     61   @for %f in ($(OBJS)) do @%append $^@ file $(OBJDIR)\%f
    12762   @%write $^@ import DOSIODELAYCNT DOSCALLS.427
    128    @%write $(NAME).lrf library $(%DDK)\BASE\lib\os2286.lib
    129    @%write $(NAME).lrf library ..\runtime\runtime.lib
    130    @%write $(NAME).lrf library $(%DDK)\BASE\src\dev\resource\rmcalls\rmcalls.lib
    131    @%write $(NAME).lrf library $(%DDK)\BASE\SRC\DEV\THINKPAD\DOCKII\APMCALLS\apmcalls.lib
    132    @%write $(NAME).lrf library $(%WATCOM)\lib286\plibs.lib
     63   @%write $(OBJDIR)\$(NAME).lrf library $(%DDK)\BASE\lib\os2286.lib
     64   @%write $(OBJDIR)\$(NAME).lrf library $(SBLIVE_LIB)\runtime.lib
     65   @%write $(OBJDIR)\$(NAME).lrf library $(%DDK)\BASE\src\dev\resource\rmcalls\rmcalls.lib
     66   @%write $(OBJDIR)\$(NAME).lrf library $(%DDK)\BASE\SRC\DEV\THINKPAD\DOCKII\APMCALLS\apmcalls.lib
     67   @%write $(OBJDIR)\$(NAME).lrf library $(%WATCOM)\lib286\plibs.lib
    13368
    134 $(NAME).sys: $(OBJS) $(NAME).lrf makefile.os2 $(%DDK)\BASE\lib\os2286.lib ..\runtime\runtime.lib $(%DDK)\BASE\src\dev\resource\rmcalls\rmcalls.lib
    135    $(LINK) @$(NAME).lrf
    136    copy $(NAME).sys ..\bin
     69$(OBJDIR)\$(NAME).sys: $(OBJS) $(OBJDIR)\$(NAME).lrf makefile.os2 $(%DDK)\BASE\lib\os2286.lib $(SBLIVE_LIB)\runtime.lib $(%DDK)\BASE\src\dev\resource\rmcalls\rmcalls.lib
     70   $(LINK) @$(OBJDIR)\$(NAME).lrf
     71   copy $(OBJDIR)\$(NAME).sys ..\bin
    13772
    138 $(NAME).sym: $(WMAPNAME)
    139    wat2map $(WMAPNAME) $(NAME).MAP
     73$(OBJDIR)\$(NAME).sym: $(OBJDIR)\$(WMAPNAME)
     74   $(WAT2MAP) $(OBJDIR)\$(WMAPNAME) $(OBJDIR)\$(NAME).MAP
     75   cd $(OBJDIR)
    14076   mapsym $(NAME).MAP
    141    copy $(NAME).sym ..\bin
     77   cd ..\..
     78   copy $(OBJDIR)\$(NAME).sym ..\bin
    14279
    14380clean:
Note: See TracChangeset for help on using the changeset viewer.