Ignore:
Timestamp:
Aug 13, 2007, 1:23:41 AM (13 years ago)
Author:
Brendan Oakley
Message:

Mike's new build system, switch to wasm and use Mike's new OWDDK

Location:
OCO/trunk/mif
Files:
1 added
1 moved

Legend:

Unmodified
Added
Removed
  • OCO/trunk/mif/drvmake.mif

    • Property svn:eol-style set to native
    r237 r238  
    1 #/* SCCSID = src/dev/mme/tropez/makefile, tropez, c.basedd 97/10/22 */
    2 #****************************************************************************
    3 #*                                                                          *
    4 #* Copyright (c) IBM Corporation 1994 - 1997.                               *
    5 #*                                                                          *
    6 #* The following IBM OS/2 source code is provided to you solely for the     *
    7 #* the purpose of assisting you in your development of OS/2 device drivers. *
    8 #* You may use this code in accordance with the IBM License Agreement       *
    9 #* provided in the IBM Device Driver Source Kit for OS/2.                   *
    10 #*                                                                          *
    11 #****************************************************************************/
     1#**************************************************************************
    122#
    13 #- Set the environmental variables for compiling
     3# Top drv16 makefile for the uniaud16 with Open Watcom 1.7 and above
    144#
     5# MAKEFILE is maintained by Michael Greene <greenemk@cox.net>
     6#
     7# Copyright (c) 2007 The UNIAUD Group Contributors. All Rights Reserved.
     8#
     9#**************************************************************************
     10
    1511.ERASE
    1612
     
    1814.SUFFIXES: .sys .obj .asm .inc .def .lrf .ref .lst .sym .map .c .cpp .h .lib
    1915
    20 NAME   = uniaud16
    21 WMAPNAME = uniaud16.wmap
     16NAME       = uniaud16
     17WMAPNAME   = uniaud16.wmap
     18VERSIONINC = $(%UNIBASE16)\bin\version.lnk
    2219
    23 !include ..\..\makefile.inc
     20!include $(%UNIBASE16)\mif\makedirs.inc
     21!include $(%UNIBASE16)\mif\makeopts.inc
    2422
    25 .BEFORE
    26    @set LIB=$(DDK_BASE)\LIB
    27    @set INCLUDE=;.;$(%WATCOM)\H;..\runtime;..\include;$(DDK_BASE)\SRC\DEV\RESOURCE\RMCALLS;$(DDK_BASE)\H;$(DDK_BASE)\SRC\INC;..\OS2Runtime;$(DDK_BASE)\src\dev\mme\midi;
    28    @set PATH=$(DDK_BASE)\TOOLS;$(%WATCOM)\BINP;$(%WATCOM)\BINW;$(%PATH)
     23# Object files
     24RTOBJS = cpp.obj devhelp.obj math.obj iodelay.obj
    2925
    30 !include ..\include\version.mak
     26OBJS = segments.obj header.obj audiohw.obj event.obj commdbg.obj fmsynth.obj   &
     27       apm.obj apmevent.obj idc_vdd.obj init.obj ioctl.obj irq.obj mixer.obj   &
     28       malloc.obj maudio.obj memutil.obj midimsg.obj midipars.obj midistrm.obj &
     29       mpu401.obj wtsynth.obj parse.obj queue.obj rtmidi.obj ssm_idc.obj       &
     30       strategy.obj stream.obj timer.obj vddentry.obj waudio.obj convert.obj   &
     31       convsrate.obj waveplay.obj waverec.obj wavestrm.obj dwavestrm.obj       &
     32       ossidc16.obj
    3133
    32 !if "$(IBM_BUILD)" == "1"
    33 CPPFLAGS += -DIBM_BUILD
    34 CFLAGS   += -DIBM_BUILD
     34all: $(NAME).sys $(NAME).sym cpfiles
     35
     36$(NAME).lnk:
     37  @%write $^@ name $(NAME).sys
     38  @%write $^@ system os2_dll
     39  @%write $^@ option quiet,verbose,caseexact,cache,map=$(WMAPNAME)
     40  @%write $^@ import DOSIODELAYCNT DOSCALLS.427
     41  @%write $^@ import DOS32FLATDS   DOSCALLS.370
     42  @%write $^@ library $(%WATCOM)\lib286\os2\os2.lib,$(%WATCOM)\lib286\plibs.lib
     43!ifdef DEBUG
     44  @%write $^@ segment _DEBUGTEXT PRELOAD SHARED IOPL READWRITE
    3545!endif
    3646
    37 #########################################
    38 # Object file list
    39 #########################################
    40 OBJS1=segments.obj header.obj
    41 OBJS2=audiohw.obj event.obj commdbg.obj
    42 OBJS3=fmsynth.obj apm.obj apmevent.obj
    43 OBJS4=idc_vdd.obj init.obj ioctl.obj irq.obj mixer.obj
    44 OBJS5=malloc.obj maudio.obj memutil.obj
    45 OBJS6=midimsg.obj midipars.obj midistrm.obj mpu401.obj wtsynth.obj
    46 OBJS7=parse.obj queue.obj rtmidi.obj
    47 OBJS8=ssm_idc.obj strategy.obj stream.obj timer.obj vddentry.obj waudio.obj
    48 OBJS9=convert.obj convsrate.obj waveplay.obj waverec.obj wavestrm.obj dwavestrm.obj ossidc16.obj
    49 OBJS=$(OBJS1) $(OBJS2) $(OBJS3) $(OBJS4) $(OBJS5) $(OBJS6) $(OBJS7) $(OBJS8) $(OBJS9)
     47$(NAME).sys: $(OBJS) $(RTOBJS) $(NAME).lnk
     48  $(LINK) @$(NAME).lnk @$(VERSIONINC) FILE {$(OBJS) $(RTOBJS)}
    5049
    51 all: $(OBJDIR)\$(NAME).sys $(OBJDIR)\$(NAME).sym
     50$(NAME).sym: $(WMAPNAME)
     51  $(WAT2MAP) $(WMAPNAME) $(NAME).map
     52  # use -@ here incase mapsym not on system
     53  -@mapsym $(NAME).map
    5254
    53 $(OBJDIR)\$(NAME).lrf: makefile.os2 ..\include\version.mak
    54    @%write $^@ system os2 dll
    55    @%write $^@ option quiet
    56    @%write $^@ option verbose
    57    @%write $^@ option caseexact
    58    @%write $^@ option cache
    59    @%write $^@ option map=$(OBJDIR)\$(WMAPNAME)
    60    @%write $^@ option description '@$#$(_VENDOR):$(_VERSION)$#@'
    61    @%write $^@ name $(OBJDIR)\$(NAME).sys
    62    @for %f in ($(OBJS)) do @%append $^@ file $(OBJDIR)\%f
    63    @%write $^@ import DOSIODELAYCNT DOSCALLS.427
    64    @%write $^@ import DOS32FLATDS DOSCALLS.370
    65    @%write $(OBJDIR)\$(NAME).lrf library $(DDK_BASE)\lib\os2286.lib
    66    @%write $(OBJDIR)\$(NAME).lrf library $(ALSA_LIB)\runtime.lib
    67    @%write $(OBJDIR)\$(NAME).lrf library $(DDK_BASE)\src\dev\resource\rmcalls\rmcalls.lib
    68    @%write $(OBJDIR)\$(NAME).lrf library $(DDK_BASE)\SRC\DEV\THINKPAD\DOCKII\APMCALLS\apmcalls.lib
    69    @%write $(OBJDIR)\$(NAME).lrf library $(%WATCOM)\lib286\plibs.lib
    70 !ifdef DEBUG
    71    @%write $(OBJDIR)\$(NAME).lrf segment _DEBUGTEXT PRELOAD SHARED IOPL READWRITE
    72 !endif
     55# copy to an easy spot to access and try gpl copy
     56cpfiles: .SYMBOLIC
     57  if not exist $(FINALDIR) mkdir $(FINALDIR)
     58  copy uniaud16.sy* $(FINALDIR)
    7359
    74 #   @%write $(OBJDIR)\$(NAME).lrf library $(%WATCOM)\lib286\os2\clibs.lib
     60  # copy to gpl tree if exists
     61  if exist $(ALSA_GPL).W4 copy uniaud16.sy* $(ALSA_GPL).W4
     62  if exist $(ALSA_GPL).KEE copy uniaud16.sy* $(ALSA_GPL).KEE
    7563
    76 $(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
    77    $(LINK) @$(OBJDIR)\$(NAME).lrf
    78    copy $(OBJDIR)\$(NAME).sys $(ALSA_BIN).KEE
    79    copy $(OBJDIR)\$(NAME).sys $(ALSA_BIN).W4
    80    copy $(OBJDIR)\$(NAME).sys $(ALSA_BIN_)
    81 
    82 $(OBJDIR)\$(NAME).sym: $(OBJDIR)\$(WMAPNAME)
    83    $(WAT2MAP) $(OBJDIR)\$(WMAPNAME) $(OBJDIR)\$(NAME).MAP
    84    cd $(OBJDIR)
    85    mapsym $(NAME).MAP
    86    cd ..\..
    87    copy $(OBJDIR)\$(NAME).sym $(ALSA_BIN).KEE
    88    copy $(OBJDIR)\$(NAME).sym $(ALSA_BIN).W4
    89    copy $(OBJDIR)\$(NAME).sym $(ALSA_BIN_)
    90 
    91 clean: .SYMBOLIC
    92      -del *.obj *.err *.lnk *.sys *.sym *.lst *.map *.wmap *.lrf
Note: See TracChangeset for help on using the changeset viewer.