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

    r148 r174  
    1 INC     = $(%WATCOM)\H;..\include;..\runtime
    2 INCA    = $(%DDK)\BASE\H
     1CINCLUDES = $(%WATCOM)\H;..\include;..\runtime;..\sblive
     2AINCLUDES = $(%DDK)\BASE\H
    33
    4 #===================================================================
    5 #
    6 #   Auto-dependency information
    7 #
    8 #===================================================================
    9 .ERASE
    10 .SUFFIXES:
    11 .SUFFIXES: .lst .obj .c .asm
     4CDEFINES = -D__KERNEL__ -DPRIVATE_PCM_VOLUME -DMODULE -DPCI_8010 -dTARGET_OS2
    125
    13 !if "$(DEBUG)" == "1"
    14 CFLAGS  = -D__KERNEL__ -DPRIVATE_PCM_VOLUME -DMODULE -DPCI_8010 -dTARGET_OS2 -bt=os2v2 -e60 -hc -d2 -5r -i$(INC) -omlinear -s -w4 -ze -zdp -zl -zq -nt=CODE32 -zff -zgf -zp1
    15 !else
    16 CFLAGS  = -D__KERNEL__ -DPRIVATE_PCM_VOLUME -DMODULE -DPCI_8010 -dTARGET_OS2 -bt=os2v2 -e60 -5r -i$(INC) -omlinear -s -w4 -ze -zdp -zl -zq -nt=CODE32 -zff -zgf -zp1
    17 !endif
     632BIT=1
     7!include ..\makefile.inc
     8!include ..\include\sblive32.mak
    189
    19 ASFLAGS = -Mb -Li -Sv:ALP
    20 
    21 !if "$(KEE)" == "1"
    22 CFLAGS = $(CFLAGS) -mf -DKEE
    23 ASFLAGS= $(ASFLAGS) -D:KEE
    24 !else
    25 CFLAGS = $(CFLAGS) -mc -zu
    26 !endif
    27 
    28 CC      = WCC386 $(CFLAGS) $(IWC)
    29 ASM     = alp $(ASFLAGS) $(INCA)
    30 
    31 DFLAGS  = -l -s
    32 DIS     = WDISASM $(DFLAGS)
    33 
    34 !if "$(DEBUG)" == "1"
    35 LFLAGS  = system os2v2 physdevice option int, dosseg, map, eliminate, mang, tog sort global d codeview
    36 !else
    37 LFLAGS  = system os2v2 physdevice option int, dosseg, map, eliminate, mang, tog sort global
    38 !endif
    39 QFLAGS  = system os2 option quiet, map, align=512
    40 LINK    = WLINK $(LFLAGS)
    41 
    42 BFLAGS  = -c -b -q -n
    43 LIB     = WLIB $(BFLAGS)
    44 
    45 .obj.lst:
    46         $(DIS) $*
    47 
    48 .c.obj: .AUTODEPEND
    49         $(CC) $*.c
    50 
    51 .asm.obj: .AUTODEPEND
    52         $(ASM) $*.asm -Fl:$*.lst
    5310
    5411#===================================================================
     
    6724FILELAST =
    6825FILES    = $(FILE0) $(FILE1) $(FILE2) $(FILE3) $(FILE4) $(FILE5) $(FILE6) $(FILE7) $(FILE8) $(FILE9)
     26
     27!if "$(KEE)" == "1"
     28TARGET   = sblive32kee
     29!else
    6930TARGET   = sblive32
     31!endif
    7032
     33LNKFILE  = $(OBJDIR)\$(TARGET).lnk
    7134
    7235
     
    7639#
    7740#===================================================================
    78 all: $(TARGET).lib
     41all: $(OBJDIR)\$(TARGET).lib
    7942
    8043
    81 $(TARGET).lnk: makefile.os2
    82     @%create $(TARGET).lnk
    83     @for %f in ($(FILES)) do @%append $(TARGET).lnk -+%f
     44$(LNKFILE): makefile.os2
     45    @%create $(LNKFILE)
     46    @for %f in ($(FILES)) do @%append $(LNKFILE) -+$(OBJDIR)\%f
    8447
    85 $(TARGET).lib: $(TARGET).lnk $(FILES)
    86     $(LIB) $(TARGET).lib @$(TARGET).lnk
     48$(OBJDIR)\$(TARGET).lib: $(LNKFILE) $(FILES)
     49    $(LIB) $(OBJDIR)\$(TARGET).lib @$(LNKFILE)
     50    copy $(OBJDIR)\$(TARGET).lib $(SBLIVE_LIB)
     51
    8752
    8853clean:
     54     cd $(OBJDIR)
    8955     del *.obj *.err *.lnk *.sys *.sym *.lst *.map *.wmap *.lib
     56     cd ..
Note: See TracChangeset for help on using the changeset viewer.