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/drv32/makefile.os2

    r152 r174  
    2020#
    2121#******************************************************************************
     22
    2223!include ..\include\version.mak
    2324
    24 INC    = .;$(%WATCOM)\H;..\runtime;..\include;$(%DDK)\base\h
    25 INCA    = -I:$(%DDK)\BASE\INC
     25CINCLUDES = .;$(%WATCOM)\H;..\runtime;..\include;$(%DDK)\base\h
     26AINCLUDES = -I:$(%DDK)\BASE\INC
    2627
    27 #===================================================================
    28 #
    29 #   Auto-dependency information
    30 #
    31 #===================================================================
    32 .ERASE
    33 .SUFFIXES:
    34 .SUFFIXES: .lst .obj .lib .cpp .c .asm .def
     28LNKFILE = $(OBJDIR)\sblive32.lnk
    3529
    36 !if "$(DEBUG)" == "1"
    37 CFLAGS  = -dDEBUG -bt=os2v2 -e60 -hc -d2 -5r -i$(INC) -omlinear -s -w4 -xd -ze -zdp -zl -zq -nt=CODE32 -zff -zgf -zp1
    38 ASFLAGS = -Mb -Li -Sv:M510
    39 !else
    40 CFLAGS  = -bt=os2v2 -e60 -5r -i$(INC) -omlinear -s -w4 -xd -ze -zdp -zl -zq -nt=CODE32 -zff -zgf -zp1
    41 ASFLAGS = -Mb -Li -Sv:M510
    42 !endif
    43 
    44 !if "$(KEE)" == "1"
    45 CFLAGS  = $(CFLAGS) -mf -DKEE
    46 ASFLAGS = $(ASFLAGS) -D:KEE
    47 LNKFILE = sblivekee.lnk
    48 !else
    49 CFLAGS  = $(CFLAGS) -mc -zu
    50 LNKFILE = sblive.lnk
    51 !endif
    52 
    53 CC      = WPP386 $(CFLAGS) $(IWC)
    54 ASM     = alp $(ASFLAGS) $(INCA)
    55 
    56 DFLAGS  = -l -s
    57 DIS     = WDISASM $(DFLAGS)
    58 
    59 !if "$(DEBUG)" == "1"
    60 LFLAGS  = system os2v2 physdevice option int, dosseg, map, eliminate, mang, tog sort global d codeview
    61 !else
    62 LFLAGS  = system os2v2 physdevice option int, dosseg, map, eliminate, mang, tog sort global
    63 !endif
    64 QFLAGS  = system os2 option quiet, map, align=512
    65 LINK    = WLINK $(LFLAGS)
    66 
    67 BFLAGS  = -s -t -c -b -q -n
    68 LIB     = WLIB $(BFLAGS)
    69 
    70 IFLAGS  = /nologo
    71 IMPLIB  = IMPLIB $(IFLAGS)
    72 
    73 .obj.lst:
    74         $(DIS) $*
    75 
    76 .c.obj: .AUTODEPEND
    77         $(CC) $*.c
    78 
    79 .cpp.obj: .AUTODEPEND
    80         $(CC) $*.cpp
    81 
    82 .asm.obj: .AUTODEPEND
    83         $(ASM) $*.asm -Fl:$*.lst
    84 
    85 .def.lib:
    86         $(IMPLIB) $*.lib $*.def
     30EVERYTHING_AS_CPP=1
     3132BIT=1
     32!include ..\makefile.inc
     33!include ..\include\sblive32.mak
    8734
    8835#===================================================================
     
    9441FILE2    = strategy.obj
    9542FILE3    = init.obj
    96 FILE4    = impmvdm.lib devhlp.obj
     43FILE4    = devhlp.obj
    9744FILE5    = idc.obj dispatch.obj
    9845FILE6    = impdos.lib
     
    10047FILE7    = impkee.lib
    10148!endif
    102 FILE8    = ..\sblive\sblive32.lib ..\lib32\linuxlib.lib
     49FILE8    = impmvdm.lib
    10350FILELAST = end.obj
    10451FILES    = $(FILEFIRST) $(FILE0) $(FILE1) $(FILE2) $(FILE3) $(FILE4) $(FILE5) $(FILE6) $(FILE7) $(FILE8) $(FILE9) $(FILELAST)
     52
    10553TARGET   = sblive32
    106 WMAPNAME = sblive32.wmap
     54WMAPNAME = $(OBJDIR)\sblive32.wmap
    10755
    10856
     
    11361#
    11462#===================================================================
    115 all: $(TARGET).sys
     63all: $(OBJDIR)\$(TARGET).sys
    11664
    11765$(LNKFILE): makefile.os2 ..\include\version.mak
    118     @%write $^@ name $(TARGET).sys
    11966    @%write $^@ option alignment=16
    12067    @%write $^@ option description '@$#$(_VENDOR):$(_VERSION)$#@'
    12168    @%write $^@ option map=$(WMAPNAME)
    122     @for %f in ($(FILES)) do @%append $^@ file %f
    123 #!if "$(KEE)" == "1"
     69# why the @#$@#$!@$ doesn't this work here?????????????????????/
     70#    @%write $^@ name $(OBJDIR)\$(TARGET).sys
     71    @%write $^@ name $(TARGET).sys
     72    @for %f in ($(FILES)) do @%append $^@ file $(OBJDIR)\%f
    12473    @%write $^@ import DOSIODELAYCNT DOSCALLS.427
    125 #!endif
     74!if "$(KEE)" == "1"
     75    @%write $^@ library $(SBLIVE_LIB)\sblive32kee.lib
     76    @%write $^@ library $(SBLIVE_LIB)\linuxlibkee.lib
     77!else
     78    @%write $^@ library $(SBLIVE_LIB)\sblive32.lib
     79    @%write $^@ library $(SBLIVE_LIB)\linuxlib.lib
     80!endif
    12681    @%write $^@ library $(%WATCOM)\lib386\os2\clib3r.lib
    12782
    128 $(TARGET).sys: $(LNKFILE) $(FILES)
     83$(OBJDIR)\$(TARGET).sys: $(LNKFILE) $(FILES)
    12984     $(LINK) @$(LNKFILE)
    130      ..\drv16\wat2map $(WMAPNAME) $(TARGET).MAP
     85     $(WAT2MAP) $(WMAPNAME) $(OBJDIR)\$(TARGET).MAP
     86     cd $(OBJDIR)
    13187     mapsym $(TARGET).MAP
    132      copy $(TARGET).sys ..\bin
     88     cd ..\..
     89#     copy $(TARGET).sys $(OBJDIR)\$(TARGET).sys
     90     copy sblive32.sys bin\releasekee
    13391!ifdef KEE
    134      copy $(TARGET).sys ..\bin\$(TARGET)kee.sys
     92     copy $(OBJDIR)\$(TARGET).sys $(SBLIVE_BIN)\$(TARGET)kee.sys
    13593!else
    136      copy $(TARGET).sys ..\bin\$(TARGET)w4.sys
     94     copy $(OBJDIR)\$(TARGET).sys $(SBLIVE_BIN)\$(TARGET)w4.sys
    13795!endif
    138      copy $(TARGET).sym ..\bin
     96     copy $(OBJDIR)\$(TARGET).sys $(SBLIVE_BIN)
    13997
    14098clean:
     99     cd $(OBJDIR)
    141100     del *.obj *.err *.lnk *.sys *.sym *.lst *.map *.wmap *.lib
    142    
     101     cd ..
Note: See TracChangeset for help on using the changeset viewer.