############################################################# # # mISDN # ############################################################# MISDN_VER=1_1_9_2 MISDN_SOURCE_URL:=http://www.misdn.org/downloads/releases MISDN_SOURCE:=mISDN-$(MISDN_VER).tar.gz MISDN_BUILD_DIR:=$(BUILD_DIR)/mISDN-$(MISDN_VER) # # download source # $(DL_DIR)/$(MISDN_SOURCE): $(WGET) -P $(DL_DIR) $(MISDN_SOURCE_URL)/$(MISDN_SOURCE) # # unpack source # $(MISDN_BUILD_DIR)/.unpacked: $(DL_DIR)/$(MISDN_SOURCE) mkdir -p $(MISDN_BUILD_DIR) zcat $(DL_DIR)/$(MISDN_SOURCE) | tar -C $(BUILD_DIR) $(TAR_OPTIONS) - touch $@ # # build drivers # $(MISDN_BUILD_DIR)/.compiled: $(MISDN_BUILD_DIR)/.unpacked $(MAKE) -C $(MISDN_BUILD_DIR) \ LINUX=$(LINUX_DIR) \ KVERS=$(LINUX_VERSION) \ CC=$(TARGET_CC) touch $@ $(MISDN_BUILD_DIR)/.installed: $(MISDN_BUILD_DIR)/.compiled mkdir -p $(TARGET_DIR)/lib/modules/$(LINUX_VERSION)/kernel/drivers/isdn/hardware/mISDN install -D -m 664 $(MISDN_BUILD_DIR)/drivers/isdn/hardware/mISDN/*.ko $(TARGET_DIR)/lib/modules/$(LINUX_VERSION)/kernel/drivers/isdn/hardware/mISDN touch $@ misdn: $(MISDN_BUILD_DIR)/.installed misdn-clean: rm -f $(MISDN_BUILD_DIR)/.compiled $(MISDN_BUILD_DIR/.installed rm -rf $(TARGET_DIR)/lib/modules/$(LINUX_VERSION)/kernel/drivers/isdn/hardware/mISDN $(MAKE) -C(MISDN_BUILD_DIR) clean misdn-source: $(MISDN_SOURCE) misdn-dirclean: rm -rf $(MISDN_BUILD_DIR)