Changeset 174 for sbliveos2/trunk/lib32


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

    r148 r174  
    1 INC    = $(%WATCOM)\H;..\include;..\runtime;..\sblive
    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 .cpp .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  -dDEBUG -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 CPP     = WPP386 $(CFLAGS) $(IWC)
    30 ASM     = alp $(ASFLAGS) $(INCA)
    31 
    32 DFLAGS  = -l -s
    33 DIS     = WDISASM $(DFLAGS)
    34 
    35 !if "$(DEBUG)" == "1"
    36 LFLAGS  = system os2v2 physdevice option int, dosseg, map, eliminate, mang, tog sort global d codeview
    37 !else
    38 LFLAGS  = system os2v2 physdevice option int, dosseg, map, eliminate, mang, tog sort global
    39 !endif
    40 QFLAGS  = system os2 option quiet, map, align=512
    41 LINK    = WLINK $(LFLAGS)
    42 
    43 BFLAGS  = -c -b -q -n
    44 LIB     = WLIB $(BFLAGS)
    45 
    46 .obj.lst:
    47         $(DIS) $*
    48 
    49 .cpp.obj: .AUTODEPEND
    50         $(CPP) $*.cpp
    51 
    52 .c.obj: .AUTODEPEND
    53         $(CC) $*.c
    54 
    55 .asm.obj: .AUTODEPEND
    56         $(ASM) $*.asm -Fl:$*.lst
    5710
    5811#===================================================================
     
    7124FILELAST =
    7225FILES    = $(FILE0) $(FILE1) $(FILE2) $(FILE3) $(FILE4) $(FILE5) $(FILE6) $(FILE7) $(FILE8) $(FILE9)
     26
     27!if "$(KEE)" == "1"
     28TARGET   = linuxlibkee
     29!else
    7330TARGET   = linuxlib
     31!endif
    7432
     33LNKFILE  = $(OBJDIR)\$(TARGET).lnk
    7534
    7635
     
    8039#
    8140#===================================================================
    82 all: $(TARGET).lib
     41all: $(OBJDIR)\$(TARGET).lib
    8342
    8443
    85 $(TARGET).lnk: makefile.os2
    86     @%create $(TARGET).lnk
    87     @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
    8847
    89 $(TARGET).lib: $(TARGET).lnk $(FILES)
    90     $(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
    9152
    9253clean:
     54     cd $(OBJDIR)
    9355     del *.obj *.err *.lnk *.sys *.sym *.lst *.map *.wmap *.lib
     56     cd ..
Note: See TracChangeset for help on using the changeset viewer.