Changeset 89


Ignore:
Timestamp:
Mar 4, 2007, 5:40:05 PM (19 years ago)
Author:
stevenhl
Message:

Correct make clean operation

Location:
OCO/trunk
Files:
6 edited

Legend:

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

    r33 r89  
    7272!endif
    7373
     74#   @%write $(OBJDIR)\$(NAME).lrf library $(%WATCOM)\lib286\os2\clibs.lib
     75
    7476$(OBJDIR)\$(NAME).sys: $(OBJS) $(OBJDIR)\$(NAME).lrf makefile.os2 $(DDK_BASE)\lib\os2286.lib $(ALSA_LIB)\runtime.lib $(DDK_BASE)\src\dev\resource\rmcalls\rmcalls.lib
    7577   $(LINK) @$(OBJDIR)\$(NAME).lrf
     
    8789   copy $(OBJDIR)\$(NAME).sym $(ALSA_BIN_)
    8890
    89 clean:
    90      del *.obj *.err *.lnk *.sys *.sym *.lst *.map *.wmap *.lrf
     91clean: .SYMBOLIC
     92     -del *.obj *.err *.lnk *.sys *.sym *.lst *.map *.wmap *.lrf
  • OCO/trunk/install/makefile.os2

    r33 r89  
    134134#############################################################################
    135135
    136 clean:
    137      del *.dll *.obj *.err *.lrf *.res *.hlp
     136clean: .SYMBOLIC
     137     -del *.dll *.obj *.err *.lrf *.res *.hlp
    138138
    139139
  • OCO/trunk/makefile.os2

    r33 r89  
    3737    @cd ..
    3838
    39 clean:
     39clean: .SYMBOLIC
    4040    @echo BUILDING runtime
    4141    @cd runtime
  • OCO/trunk/runtime/makefile.os2

    r33 r89  
    4141   copy $(OBJDIR)\$(NAME).lib $(ALSA_LIB)
    4242
    43 clean:
     43clean: .SYMBOLIC
    4444     cd $(OBJDIR)
    45      del *.obj *.err *.lnk *.sys *.sym *.lst *.map *.wmap *.lrf *.lib
     45     -del *.obj *.err *.lnk *.sys *.sym *.lst *.map *.wmap *.lrf *.lib
    4646     cd ..\..
    4747
  • OCO/trunk/tools/wat2map.cmd

    r33 r89  
    1 /* $Id: wat2map.cmd,v 1.1.1.1 2003/07/02 13:57:10 eleph Exp $ */
    2 
    3 /* SCCSID = %W% %E% */
     1/* $Id: wat2map.cmd,v 1.2 2002/04/26 23:09:44 smilcke Exp $ */
     2
     3/* SCCSID = src/dev/mme/pciaudio/wat2map.cmd, pciaudio, c.basedd 99/08/20 */
    44/****************************************************************************
    55 *                                                                          *
     
    1212 *                                                                          *
    1313 ****************************************************************************/
    14 /**@internal %W%
     14
     15/* 05 Jul 05 SHL - Correct do/end errors, close files
     16   05 Jul 05 SHL - Partial 16/32 bit support (see f32bit)
     17*/
     18
     19/**@internal src/dev/mme/pciaudio/wat2map.cmd, pciaudio, c.basedd
    1520 * WAT2MAP - translate symbol map from Watcom format to MS format.
    16  * @version %I%
     21 * @version 1.1
    1722 * @context
    1823 *  Unless otherwise noted, all interfaces are Ring-0, 16-bit, kernel stack.
     
    4752/* <End of helpText> - don't modify this string - used to flag end of help. */
    4853/****************************************************************************/
     54
    4955CALL RXFUNCADD 'sysloadfuncs','rexxutil','sysloadfuncs'
    5056call sysloadfuncs
     57
     58f32bit = 0      /* fixme to autodetect */
    5159
    5260Parse Arg arg1 arg2 rest
     
    7482   watcomText = LineIn( mapFile )
    7583   Parse Value watcomText With "Executable Image: " fileName "." fileExt
    76 
    7784   If fileName <> "" Then Do;   /* Found match */
    7885      call lineout outfile ,' '
     
    103110
    104111/*--- 4.  Translate segment table.  ---*/
    105 call lineout outfile , " Start     Length     Name                   Class"
     112if f32bit then
     113  call lineout outfile , " Start         Length     Name                   Class"
     114else
     115  call lineout outfile , " Start     Length     Name                   Class"
     116
    106117Do While Lines( mapFile ) <> 0
    107118   watcomText = LineIn( mapFile )
    108119   Parse Value watcomText With segName className groupName address size .
    109120   If segName = "" Then Leave;          /* Empty line, break from loop. */
    110    length = Substr( size, 4, 5 ) || 'H     '
     121   if f32bit then
     122     length = size || 'H  '
     123   else
     124     length = Substr( size, 4, 5 ) || 'H     '
    111125   segName = Left( segName, 23 )
    112126   call lineout outfile ,' ' || address || ' ' || length || segName || className
     
    124138Do While Lines( mapFile ) <> 0
    125139   watcomText = LineIn( mapFile )
    126    Parse Value watcomText With seg ':' ofs 10 . 16 declaration
     140   Parse Value watcomText With seg ':' ofs declaration
     141   if length(ofs) = 9 then
     142     ofs = left(ofs, 8) || strip(translate(right(ofs, 1),, '+*'))
     143
    127144   is_Adress = (is_Hex(seg) = 1) & (is_Hex(ofs) = 1)
    128145   If (is_Adress = 1) Then Do;
     146
     147      if \ f32bit then
     148        ofs = right(ofs, 4)
    129149
    130150      /*--- Haven't done the work to xlate operator symbols - skip the line. */
     
    156176      declaration = ReplaceSubstr( '~', 'd', declaration )
    157177
    158       call lineout outfile ,' ' || seg || ':' || ofs || '       ' || declaration
     178      fill = copies(' ', 7)
     179      call lineout outfile ,' ' || seg || ':' || ofs || fill || declaration
    159180   End;
    160181End; /* End While through symbol section, end of input file. */
     182
     183call stream mapfile, 'C', 'CLOSE'
     184call lineout outfile
    161185
    162186Return;  /* End of program.  */
     
    184208      Return StripMatchedParen( string )
    185209   End;
    186 End;
     210
    187211
    188212ReplaceSubstr:
     
    198222   End;
    199223   Return string
    200 End;
     224
    201225
    202226is_Hex:
     
    204228   Parse Arg string
    205229   Return (Length(string) > 0) &  (Verify( string, '0123456789abcdefABCDEF' ) = 0)
    206 End;
Note: See TracChangeset for help on using the changeset viewer.