# This source is the part of the generic ndis driver for OS/2 # Copyright (C) 2010-2012 Mensys # Copyright (C) 2010-2012 David Azarewicz # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or # (at your option) any later version. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program; if not, write to the Free Software # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA # # To build this driver you must have installed : # OpenWatcom # ZIP (must be in PATH) # DDK # OS2 Toolkit # # See SETENV.CMD.TEMPLATE for the environment setup !ifndef %ROOT # if not defined in the environment !error ROOT must be set in the environment !endif TARGET=e1000e ROOT=$(%ROOT) TOOLS=$(ROOT)\tools COMMON=$(ROOT)\common TARGETDIR=$(ROOT)\$(TARGET) ZIPDIR=$(ROOT)\$(TARGET)\tmp CURDIR=$+$(%cwd)$- TRCUST=trcust TRACEFILE=TRC00F8.TFF MKMSGF=$(%DDK)\tools\mkmsgf !include $(TARGETDIR)\$(TARGET).inc !ifeqi FIXPACK beta WPIFILE= $(ROOT)\$(TARGET)-$(VERSION)-BETA.wpi !else WPIFILE= $(ROOT)\$(TARGET)-$(VERSION).wpi !endif $(TARGET): .SYMBOLIC wmake -h $(__MAKEOPTS__) -f $(TOOLS)\makefile.drv TARGET=$(TARGET) DRIVERNAME=$(TARGET) wmake -h $(__MAKEOPTS__) -f $(TOOLS)\makefile.drv TARGET=$(TARGET) DRIVERNAME=$(TARGET) TRACING=1 wmake -h $(__MAKEOPTS__) -f $(TOOLS)\makefile.drv TARGET=$(TARGET) DRIVERNAME=$(TARGET) DEBUG=1 #path is set by previous makefile.drv @$(TRCUST) $(TARGET).tsf @$(MKMSGF) $(TARGET).acs $(TARGET).msg #@$(MKMSGF) $(TARGET)h.acs $(TARGET)h.msg @!rm -rf $(ZIPDIR) @md $(ZIPDIR) @md $(ZIPDIR)\MACS @copy $(TARGETDIR)\retail\$(TARGET).os2 $(ZIPDIR)\MACS >NUL @copy $(TARGETDIR)\retail\$(TARGET).sym $(ZIPDIR)\MACS >NUL @copy $(TARGETDIR)\retail\$(TARGET).nif $(ZIPDIR)\MACS >NUL @copy $(TARGETDIR)\$(TARGET).txt $(ZIPDIR)\MACS >NUL @copy $(TARGETDIR)\$(TARGET).msg $(ZIPDIR) >NUL @copy $(COMMON)\LICENSE $(ZIPDIR) >NUL ! ifdef EXTRADIR @md $(ZIPDIR)\$(EXTRADIR) @copy $(TARGETDIR)\$(EXTRADIR)\* $(ZIPDIR)\$(EXTRADIR) >NUL ! endif @-del $(WPIFILE) @wic $(WPIFILE) -a 1 -r -c$(ZIPDIR) * # -u @!rm -rf $(ZIPDIR) @md $(ZIPDIR) @md $(ZIPDIR)\IBMCOM @md $(ZIPDIR)\IBMCOM\MACS @md $(ZIPDIR)\OS2 @md $(ZIPDIR)\OS2\SYSTEM @md $(ZIPDIR)\OS2\SYSTEM\TRACE @copy $(TARGETDIR)\trace\$(TARGET).os2 $(ZIPDIR)\IBMCOM\MACS >NUL @copy $(TARGETDIR)\trace\$(TARGET).sym $(ZIPDIR)\IBMCOM\MACS >NUL @copy $(TARGETDIR)\$(TRACEFILE) $(ZIPDIR)\OS2\SYSTEM\TRACE >NUL @wic $(WPIFILE) -a 2 -r -c$(ZIPDIR) * @!rm -rf $(ZIPDIR) @wic $(WPIFILE) -s $(TARGETDIR)\$(TARGET).wis $(TRACEFILE): $(TARGET).tsf $(TRCUST) $[@ clean: .SYMBOLIC @!rm -rf debug retail trace @!rm -f version.h @!rm -f TRC00F8.TFF @!rm -f $(TARGET).msg