MODCGI_VERSION:=0.2 MODCGI_SOURCE:=modcgi-$(MODCGI_VERSION).tar.bz2 MODCGI_SITE:=http://www.eiband.info/dsmod/source MODCGI_DIR:=$(SOURCE_DIR)/modcgi-$(MODCGI_VERSION) MODCGI_TARGET_DIR:=root/usr/bin MODCGI_TARGET_BINARY:=modcgi $(DL_DIR)/$(MODCGI_SOURCE): @$(DL_TOOL) $(DL_DIR) $(TOPDIR)/.config $(MODCGI_SOURCE) $(MODCGI_SITE) $(MODCGI_DIR)/.unpacked: $(DL_DIR)/$(MODCGI_SOURCE) tar -C $(SOURCE_DIR) $(VERBOSE) -xjf $(DL_DIR)/$(MODCGI_SOURCE) touch $@ $(MODCGI_DIR)/$(MODCGI_TARGET_BINARY): $(MODCGI_DIR)/.unpacked $(MAKE) CROSS="$(TARGET_MAKE_PATH)/$(TARGET_CROSS)" \ CFLAGS="$(TARGET_CFLAGS)" \ LDFLAGS="-static-libgcc" \ -C $(MODCGI_DIR) modcgi-precompiled: $(MODCGI_DIR)/$(MODCGI_TARGET_BINARY) $(TARGET_STRIP) $(MODCGI_DIR)/$(MODCGI_TARGET_BINARY) cp $(MODCGI_DIR)/$(MODCGI_TARGET_BINARY) $(MODCGI_TARGET_DIR)/ modcgi-source: $(MODCGI_DIR)/.unpacked modcgi-clean: -$(MAKE) -C $(MODCGI_DIR) clean modcgi-dirclean: rm -rf $(MODCGI_DIR)