BINUTILS_CAT:=bzcat
BINUTILS_DIR1:=$(TOOL_BUILD_DIR)/binutils-build
+
$(DL_DIR)/$(BINUTILS_SOURCE):
$(WGET) -P $(DL_DIR) $(BINUTILS_SITE)/$(BINUTILS_SOURCE)
binutils: $(STAGING_DIR)/$(GNU_TARGET_NAME)/bin/ld $(STAGING_DIR)/lib/libg.a
+binutils-source: $(DL_DIR)/$(BINUTILS_SOURCE)
+
binutils-clean:
rm -f $(STAGING_DIR)/bin/$(GNU_TARGET_NAME)*
-$(MAKE) -C $(BINUTILS_DIR1) clean
binutils_target-dirclean:
rm -rf $(BINUTILS_DIR2)
-
-
-
-
boa: uclibc $(BOA_WORKDIR)/.installed
+boa-source: $(DL_DIR)/$(BOA_SOURCE)
+
boa-clean:
@if [ -d $(BOA_WORKDIR)/Makefile ] ; then \
$(MAKE) -C $(BOA_WORKDIR) clean ; \
bridge: $(TARGET_DIR)/sbin/brctl
+bridge-source: $(DL_DIR)/$(BRIDGE_SOURCE)
+
bridge-clean:
$(MAKE) DESTDIR=$(TARGET_DIR) CC=$(TARGET_CC) -C $(BRIDGE_BUILD_DIR) uninstall
-$(MAKE) -C $(BRIDGE_BUILD_DIR) clean
ccache_target: uclibc $(TARGET_DIR)/$(CCACHE_TARGET_BINARY)
+ccache_target-sources: $(DL_DIR)/$(CCACHE_SOURCE)
+
ccache_target-clean:
$(MAKE) DESTDIR=$(TARGET_DIR) -C $(CCACHE_DIR2) uninstall
-$(MAKE) -C $(CCACHE_DIR2) clean
@rm -rf $(TARGET_DIR)/usr/info
$(CRAMFS_DIR)/mkcramfs -q -D $(SOURCE_DIR)/device_table.txt $(TARGET_DIR) $(IMAGE)
-cramfsroot-source: $(DL_DIR)/$(GENEXT2_SOURCE)
+cramfsroot-source: cramfs-source
cramfsroot-clean:
- -$(MAKE) -C $(GENEXT2_DIR) clean
+ -$(MAKE) -C $(CRAMFS_DIR) clean
cramfsroot-dirclean:
- rm -rf $(GENEXT2_DIR)
-
+ rm -rf $(CRAMFS_DIR)
$(DL_DIR)/$(FLEX_PATCH):
$(WGET) -P $(DL_DIR) $(FLEX_SITE)/$(FLEX_PATCH)
-ed-source: $(DL_DIR)/$(FLEX_SOURCE) $(DL_DIR)/$(FLEX_PATCH)
+flex-source: $(DL_DIR)/$(FLEX_SOURCE) $(DL_DIR)/$(FLEX_PATCH)
$(FLEX_DIR)/.unpacked: $(DL_DIR)/$(FLEX_SOURCE) $(DL_DIR)/$(FLEX_PATCH)
$(FLEX_CAT) $(DL_DIR)/$(FLEX_SOURCE) | tar -C $(BUILD_DIR) -xvf -
#
#############################################################
GCC_BUILD_DIR1:=$(TOOL_BUILD_DIR)/gcc-2.95-initial
+
$(DL_DIR)/$(GCC_SOURCE):
$(WGET) -P $(DL_DIR) $(GCC_SITE)/$(GCC_SOURCE)
#
#############################################################
STLPORT_PATCH=$(SOURCE_DIR)/STLport-4.5.3.patch
+
$(DL_DIR)/$(STLPORT_SOURCE):
$(WGET) -P $(DL_DIR) $(STLPORT_SITE)/$(STLPORT_SOURCE)
stlport: $(STAGING_DIR)/lib/libstdc++.a
+stlport-source: $(DL_DIR)/$(STLPORT_SOURCE)
+
stlport-clean:
rm -f $(STAGING_DIR)/lib/libstdc++*
rm -f $(STAGING_DIR)/include/c++*
gcc2_95: binutils uclibc-configured gcc2_95_initial uclibc \
$(STAGING_DIR)/bin/$(ARCH)-uclibc-g++ $(STLPORT_TARGET)
+gcc2_95-source: $(DL_DIR)/$(GCC_SOURCE)
+
gcc2_95-clean:
rm -rf $(GCC_BUILD_DIR2)
rm -f $(STAGING_DIR)/bin/$(GNU_TARGET_NAME)*
#
#############################################################
GCC_BUILD_DIR1:=$(TOOL_BUILD_DIR)/gcc-3.3-initial
+
$(DL_DIR)/$(GCC_SOURCE):
$(WGET) -P $(DL_DIR) $(GCC_SITE)/$(GCC_SOURCE)
gcc3_3: binutils uclibc-configured gcc3_3_initial $(LIBFLOAT_TARGET) uclibc \
$(GCC_BUILD_DIR2)/.installed $(GCC_TARGETS)
+gcc3_3-source: $(DL_DIR)/$(GCC_SOURCE)
+
gcc3_3-clean:
rm -rf $(GCC_BUILD_DIR2)
rm -f $(STAGING_DIR)/bin/$(GNU_TARGET_NAME)*
gdb: $(TARGET_DIR)/usr/bin/gdb
+gdb-source: $(DL_DIR)/$(GDB_SOURCE)
+
gdb-clean:
$(MAKE) -C $(GDB_DIR) clean
$(DL_DIR)/$(GETTEXT_SOURCE):
$(WGET) -P $(DL_DIR) $(GETTEXT_SITE)/$(GETTEXT_SOURCE)
-ed-source: $(DL_DIR)/$(GETTEXT_SOURCE)
+gettext-source: $(DL_DIR)/$(GETTEXT_SOURCE)
$(GETTEXT_DIR)/.unpacked: $(DL_DIR)/$(GETTEXT_SOURCE)
$(GETTEXT_CAT) $(DL_DIR)/$(GETTEXT_SOURCE) | tar -C $(BUILD_DIR) -xvf -
HOSTAP_TARGET_MODULE_DIR=$(TARGET_DIR)/lib/modules/$(LINUX_VERSION)/hostap
$(DL_DIR)/$(HOSTAP_SOURCE):
- $(WGET) -P $(DL_DIR) $(HOSTAP_SOURCE_URL) -O $(DL_DIR)/$(HOSTAP_SOURCE)
+ $(WGET) -P $(DL_DIR) $(HOSTAP_SOURCE_URL) -O $(DL_DIR)/$(HOSTAP_SOURCE)
hostap-source: $(DL_DIR)/$(HOSTAP_SOURCE)
hotplug: uclibc $(TARGET_DIR)/sbin/hotplug
-ext2root-source: $(DL_DIR)/$(HOTPLUG_SOURCE)
+hotplug-source: $(DL_DIR)/$(HOTPLUG_SOURCE)
hotplug-clean:
rm -f $(TARGET_DIR)/sbin/hotplug
iptables: $(TARGET_DIR)/sbin/iptables
+iptables-source: $(DL_DIR)/$(IPTABLES_SOURCE)
+
iptables-clean:
$(MAKE) DESTDIR=$(TARGET_DIR) CC=$(TARGET_CC) -C $(IPTABLES_BUILD_DIR) uninstall
-$(MAKE) -C $(IPTABLES_BUILD_DIR) clean
$(LINUX_KERNEL): $(LINUX_DIR)/.configured
-system-linux: $(LINUX_DIR)/.configured
+kernel-headers: $(LINUX_DIR)/.configured
-system-linux-clean: clean
+kernel-headers-source: $(DL_DIR)/$(LINUX_SOURCE)
+
+kernel-headers-clean: clean
rm -f $(LINUX_KERNEL)
rm -rf $(LINUX_DIR)
-system-linux-dirclean:
+kernel-headers-dirclean:
rm -rf $(LINUX_DIR)
endif
linux: $(STAGING_DIR)/include/linux/version.h $(TARGET_DIR)/lib/modules/$(LINUX_VERSION)/modules.dep
+linux-source: $(DL_DIR)/$(LINUX_SOURCE)
+
# This has been renamed so we do _NOT_ by default run this on 'make clean'
linuxclean: clean
rm -f $(LINUX_KERNEL)
#
#############################################################
# Copyright (C) 2002 by Ken Restivo <ken@246gt.com>
-# $Id: ncurses.mk,v 1.28 2003/11/01 05:34:39 mjn3 Exp $
+# $Id: ncurses.mk,v 1.29 2003/11/12 09:31:12 andersen Exp $
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU Library General Public License as
ncurses-headers: $(TARGET_DIR)/usr/lib/libncurses.a
+ncurses-source: $(DL_DIR)/$(NCURSES_SOURCE)
+
ncurses-clean:
rm -f $(STAGING_DIR)/lib/libncurses.so* $(TARGET_DIR)/lib/libncurses.so*
rm -f $(STAGING_DIR)/usr/share/tabset $(TARGET_DIR)/usr/share/tabset
cp -a $(STAGING_DIR)/include/net-snmp $(TARGET_DIR)/usr/include/net-snmp
cp -a $(STAGING_DIR)/include/ucd-snmp $(TARGET_DIR)/usr/include/net-snmp
+netsnmp-source: $(DL_DIR)/$(NETSNMP_SOURCE)
+
netsnmp-clean:
$(MAKE) -C $(NETSNMP_DIR) clean
newt: uclibc slang $(TARGET_DIR)/lib/libnewt.so.$(NEWT_VERSION)
+newt-source: $(DL_DIR)/$(NEWT_SOURCE)
+
newt-clean:
rm -f $(TARGET_DIR)/lib/libnewt.so*
-$(MAKE) -C $(NEWT_DIR) clean
openssh: $(TARGET_DIR)/usr/bin/ssh
+openssh-source: $(DL_DIR)/$(OPENSSH_SOURCE)
+
openssh-clean:
$(MAKE) -C $(OPENSSH_DIR) clean
openssl-headers: $(TARGET_DIR)/usr/lib/libssl.a
+openssl: uclibc $(TARGET_DIR)/usr/lib/libcrypto.so.0.9.7
+
+openssl-source: $(DL_DIR)/$(OPENSSL_SOURCE)
+
openssl-clean:
rm -f $(STAGING_DIR)/bin/openssl $(TARGET_DIR)/bin/openssl
rm -f $(STAGING_DIR)/lib/libcrypto.so* $(TARGET_DIR)/lib/libcrypto.so*
openssl-dirclean:
rm -rf $(OPENSSL_DIR)
-openssl: uclibc $(TARGET_DIR)/usr/lib/libcrypto.so.0.9.7
-
sfdisk: uclibc $(TARGET_DIR)/sbin/sfdisk
+sfdisk-source: $(DL_DIR)/$(SFDISK_SOURCE)
+
sfdisk-clean:
rm -f $(TARGET_DIR)/sbin/sfdisk
-$(MAKE) -C $(SFDISK_DIR) clean
socat: uclibc $(SOCAT_WORKDIR)/.installed
+socat-source: $(DL_DIR)/$(SOCAT_SOURCE)
+
socat-clean:
@if [ -d $(SOCAT_WORKDIR)/Makefile ] ; then \
$(MAKE) -C $(SOCAT_WORKDIR) clean ; \
tinyx: zlib $(TINYX_LIBX)/libX11.so.6.2 $(TINYX_BINX)/Xfbdev
+tinyx-source: $(DL_DIR)/$(TINYX_SOURCE)
+
tinyx-clean:
-rm -rf $(TARGET_DIR)/usr/X11R6
-$(MAKE) -C $(TINYX_DIR) clean
tn5250: uclibc slang $(TARGET_DIR)/usr/bin/tn5250
+tn5250-source: $(DL_DIR)/$(TN5250_SOURCE)
+
tn5250-clean:
$(MAKE) -C $(TN5250_DIR) clean
ttcp: $(TARGET_DIR)/usr/bin/ttcp
+ttcp-source: $(DL_DIR)/$(TTCP_SOURCE)
+
ttcp-clean:
rm -f $(TTCP_BUILD_DIR)/*.o $(TTCP_BUILD_DIR)/ttcp
$(DL_DIR)/$(UCLIBC_SOURCE):
$(WGET) -P $(DL_DIR) $(UCLIBC_SITE)/$(UCLIBC_SOURCE)
-uclibc-source: $(DL_DIR)/$(UCLIBC_SOURCE) #$(UCLIBC_PATCH)
-
$(UCLIBC_DIR)/.unpacked: $(DL_DIR)/$(UCLIBC_SOURCE)
bzcat $(DL_DIR)/$(UCLIBC_SOURCE) | tar -C $(BUILD_DIR) -xvf -
touch $(UCLIBC_DIR)/.unpacked
uclibc: $(STAGING_DIR)/bin/$(ARCH)-linux-gcc $(STAGING_DIR)/lib/libc.a \
$(UCLIBC_TARGETS)
+uclibc-source: $(DL_DIR)/$(UCLIBC_SOURCE)
+
+uclibc-configured-source: uclibc-source
+
uclibc-clean:
-$(MAKE) -C $(UCLIBC_DIR) clean
rm -f $(UCLIBC_DIR)/.config
util-linux: uclibc $(UTIL-LINUX_TARGET_BINARY)
+util-linux-source: $(DL_DIR)/$(UTIL-LINUX_SOURCE)
+
util-linux-clean:
#There is no working 'uninstall' target. Just skip it...
#$(MAKE) DESTDIR=$(TARGET_DIR) -C $(UTIL-LINUX_DIR) uninstall
valgrind:
endif
+valgrind-source: $(DL_DIR)/$(VALGRIND_SOURCE)
+
valgrind-clean:
$(MAKE) -C $(VALGRIND_DIR) clean
wtools: $(TARGET_DIR)/sbin/iwconfig
+wtools-source: $(DL_DIR)/$(WTOOLS_SOURCE)
+
wtools-clean:
$(MAKE) DESTDIR=$(TARGET_DIR) CC=$(TARGET_CC) -C $(WTOOLS_BUILD_DIR) uninstall
-$(MAKE) -C $(WTOOLS_BUILD_DIR) clean
zlib: uclibc $(TARGET_DIR)/lib/libz.so.1.1.4
+zlib-source: $(DL_DIR)/$(ZLIB_SOURCE)
+
zlib-clean:
rm -f $(TARGET_DIR)/lib/libz.so*
-$(MAKE) -C $(ZLIB_DIR) clean