.PHONY: all install clean TFTP_DIR := tftp-hpa-0.48 ifeq ($(TARGET_DIR),) TARGET_DIR=../../../build_warp/root TARGET_STRIP=${CROSS_COMPILE}strip endif all: $(TFTP_DIR) $(TFTP_DIR)/aconfig.h $(MAKE) -C $(TFTP_DIR) $(TFTP_DIR): tar xzf $(TFTP_DIR).tar.gz $(TFTP_DIR)/aconfig.h: ( cd $(TFTP_DIR); ./configure --host powerpc --without-tcpwrappers --without-remap ) # Do not use make install since it installs too much. We only want the tftpd. install: all install -m755 $(TFTP_DIR)/tftpd/tftpd $(TARGET_DIR)/sbin/tftpd $(TARGET_STRIP) $(TARGET_DIR)/usr/sbin/tftpd mkdir -p $(TARGET_DIR)/tftpboot clean: rm -f $(TARGET_DIR)/usr/sbin/tftpd rm -rf $(TFTP_DIR)