############################################################################### # This file is part of the IPCop Firewall. # # # # IPCop 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. # # # # IPCop 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 IPCop; if not, write to the Free Software # # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA # # # # Makefiles are based on LFSMake, which is # # Copyright (C) 2002 Rod Roard # # # # Modifications by: # # ??-12-2003 Mark Wormgoor < mark@wormgoor.com> # # - Modified Makefile for IPCop build # # # # $Id: Exp $ # # ############################################################################### ############################################################################### # Definitions ############################################################################### include Config VER = 105 THISAPP = ADM8211 DL_FILE = $(THISAPP)_src_$(VER).tar.gz DL_FROM = http://www.admtek.com.tw/download/NIC/adm8211/ DIR_APP = $(DIR_SRC)/$(THISAPP) TARGET = $(DIR_INFO)/$(THISAPP)-$(VER) ############################################################################### # Top-level Rules ############################################################################### install : $(TARGET) check : @echo "====================================== Checking $(DL_FILE) ..." @cd $(DIR_TMP) && wget --spider -nv $(DL_FROM)/$(DL_FILE) download : $(DIR_DL)/$(DL_FILE) uninstall : @echo "You don't want to uninstall this." versions : @cd $(DIR_TMP) && rm -f .listing && echo " " && \ echo "This makefile works with $(THISAPP)." && \ echo "Versions at $(DL_FROM)/ are:" && \ echo " " && \ wget -q --dont-remove-listing $(DL_FROM)/gurgle* && \ grep 'tar.gz' .listing | grep -v 'doc' | cut -c 33- && \ echo " " && rm -f .listing ############################################################################### # Downloading ############################################################################### $(DIR_DL)/$(DL_FILE) : @echo "====================================== Downloading $(DL_FILE) ..." @cd $(DIR_TMP) && wget -c -nv $(DL_FROM)/$(DL_FILE) @mv $(DIR_TMP)/$(DL_FILE) $(DIR_DL) ############################################################################### # Installation Details ############################################################################### $(TARGET) : $(DIR_DL)/$(DL_FILE) @$(PREBUILD) @rm -rf $(DIR_APP) && cd $(DIR_SRC) && tar zxf $(DIR_DL)/$(DL_FILE) cd $(DIR_APP) && sed -i \ -e 's%/usr/src/linux-2.4/include%/usr/src/linux/include%' \ -e 's%^CC.*$$%CC=$(KGCC)%' Makefile cd $(DIR_APP) && make cd $(DIR_APP) && install -c -m 0664 -o root -g root 8211.o /lib/modules/$(KVER)/misc find /lib/modules/$(KVER)/ -name '*.o' -a -type f | xargs gzip -f9 @rm -rf $(DIR_APP) @$(POSTBUILD)