# ??-12-2003 Mark Wormgoor < mark@wormgoor.com> #
# - Modified Makefile for IPCop build #
# #
-# $Id: unicorn,v 1.13.2.8 2005/02/05 15:38:16 gespinasse Exp $
+# $Id: unicorn,v 1.13.2.9 2006/08/23 07:03:38 gespinasse Exp $
# #
###############################################################################
include Config
-VER = 0.9.0
+VER = 0.9.3
THISAPP = bast-$(VER)
-DL_FILE = $(THISAPP).tgz
-DL_FROM = http://www.bewan.com/bewan/drivers
+DL_FILE = A1012-A1006-A904-A888-A983-$(VER).tgz
+DL_FROM = $(URL_IPFIRE)
DIR_APP = $(DIR_SRC)/unicorn
ifeq "$(SMP)" ""
TARGET = $(DIR_INFO)/$(THISAPP)
$(DL_FILE) = $(DL_FROM)/$(DL_FILE)
-$(DL_FILE)_MD5 = 8b4f880e79d9d23029cc8f85e2f6478a
+$(DL_FILE)_MD5 = ff9829f03168279a079d05aea780ee99
install : $(TARGET)
$(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects))
@$(PREBUILD)
@rm -rf $(DIR_APP) && cd $(DIR_SRC) && tar zxf $(DIR_DL)/$(DL_FILE)
- sed -i -e 's%^CC=gcc.*$$%CC=$(KGCC)%' $(DIR_APP)/unicorn_pci/Makefile
- sed -i -e 's%^CC=gcc.*$$%CC=$(KGCC)%' $(DIR_APP)/unicorn_usb/Makefile
- sed -i -e 's%^PATCHLEVEL.*$$%PATCHLEVEL=4%' $(DIR_APP)/unicorn_pci/Makefile
- sed -i -e 's%^PATCHLEVEL.*$$%PATCHLEVEL=4%' $(DIR_APP)/unicorn_usb/Makefile
- sed -i -e 's%^COPTIONS.*$$%CXX=$(KGCC) -x c++%' $(DIR_APP)/unicorn_pci/Makefile
ifeq "$(SMP)" ""
- sed -i -e 's%^KVERS.*$$%KVERS=$(KVER)%' $(DIR_APP)/unicorn_usb/Makefile
- sed -i -e 's%^KVERS.*$$%KVERS=$(KVER)%' $(DIR_APP)/unicorn_pci/Makefile
+ cd $(DIR_APP) && make PATCHLEVEL=4 KVERS=$(KVER) modules
+ cd $(DIR_APP) && make KVERS=$(KVER) only_modules_install
else
- sed -i -e 's%^KVERS.*$$%KVERS=$(KVER)-smp%' $(DIR_APP)/unicorn_usb/Makefile
- sed -i -e 's%^KVERS.*$$%KVERS=$(KVER)-smp%' $(DIR_APP)/unicorn_pci/Makefile
+ cd $(DIR_APP) && make PATCHLEVEL=4 KVERS=$(KVER)-smp modules
+ cd $(DIR_APP) && make KVERS=$(KVER)-smp only_modules_install
endif
- cd $(DIR_APP) && make modules
- cd $(DIR_APP) && make only_modules_install
ifeq "$(SMP)" ""
find /lib/modules/$(KVER)/ -name '*.o' -a -type f | xargs gzip -f9
cd $(DIR_APP)/tools && sed -i 's%^prefix=.*$$%prefix=/usr%' Makefile