# 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 !include $(TARGETDIR)\$(TARGET).inc !ifeqi FIXPACK beta ZIPFILE= $(ROOT)\$(TARGET)-$(VERSION)-BETA.zip !else ZIPFILE= $(ROOT)\$(TARGET)-$(VERSION).zip !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 $(TRCUST) $(TARGET).tsf @!rm -rf $(ZIPDIR) @$(TOOLS)\CreatePath.cmd $(ZIPDIR)\trace @copy $(TARGETDIR)\retail\$(TARGET).os2 $(ZIPDIR) >NUL @copy $(TARGETDIR)\retail\$(TARGET).sym $(ZIPDIR) >NUL @copy $(TARGETDIR)\retail\$(TARGET).nif $(ZIPDIR) >NUL @copy $(TARGETDIR)\$(TARGET).txt $(ZIPDIR) >NUL @copy $(COMMON)\LICENSE $(ZIPDIR) >NUL @copy $(TARGETDIR)\trace\$(TARGET).os2 $(ZIPDIR)\trace >NUL @copy $(TARGETDIR)\trace\$(TARGET).sym $(ZIPDIR)\trace >NUL @copy $(TARGETDIR)\trace\$(TARGET).nif $(ZIPDIR)\trace >NUL @copy $(TARGETDIR)\$(TRACEFILE) $(ZIPDIR)\trace >NUL #@$(TOOLS)\CreatePath.cmd $(ZIPDIR)\debug #@copy $(TARGETDIR)\debug\$(TARGET).os2 $(ZIPDIR)\debug >NUL #@copy $(TARGETDIR)\debug\$(TARGET).sym $(ZIPDIR)\debug >NUL #@copy $(TARGETDIR)\debug\$(TARGET).nif $(ZIPDIR)\debug >NUL @!rm -f $(ZIPFILE) @cd $(ZIPDIR) @zip -r -9 $(ZIPFILE) * @cd $(CURDIR) @!rm -rf $(ZIPDIR) $(TRACEFILE): $(TARGET).tsf $(TRCUST) $[@ clean: .SYMBOLIC @!rm -rf debug retail trace @!rm -f version.h @!rm -f TRC00F8.TFF