summaryrefslogtreecommitdiff
path: root/obsolete-buildroot/make/tinylogin.mk
diff options
context:
space:
mode:
authorMike Baker <mbm@openwrt.org>2004-05-25 04:32:27 +0000
committerMike Baker <mbm@openwrt.org>2004-05-25 04:32:27 +0000
commite5f9af658d60e0a3a1eb6cc56cbabce4ea7e8c98 (patch)
treea2e08d2be3224409a033d25af8861d9853e72de7 /obsolete-buildroot/make/tinylogin.mk
parentedab25e640eee1fd2ecc9d4dee916b5164cc35f8 (diff)
downloadmtk-20170518-e5f9af658d60e0a3a1eb6cc56cbabce4ea7e8c98.zip
mtk-20170518-e5f9af658d60e0a3a1eb6cc56cbabce4ea7e8c98.tar.gz
mtk-20170518-e5f9af658d60e0a3a1eb6cc56cbabce4ea7e8c98.tar.bz2
Initial revision
SVN-Revision: 30
Diffstat (limited to 'obsolete-buildroot/make/tinylogin.mk')
-rw-r--r--obsolete-buildroot/make/tinylogin.mk52
1 files changed, 52 insertions, 0 deletions
diff --git a/obsolete-buildroot/make/tinylogin.mk b/obsolete-buildroot/make/tinylogin.mk
new file mode 100644
index 0000000..549de76
--- /dev/null
+++ b/obsolete-buildroot/make/tinylogin.mk
@@ -0,0 +1,52 @@
+#############################################################
+#
+# tinylogin
+#
+#############################################################
+# Enable this to use the tinylogin daily snapshot
+USE_TINYLOGIN_SNAPSHOT=true
+
+ifeq ($(USE_TINYLOGIN_SNAPSHOT),true)
+# Be aware that this changes daily....
+TINYLOGIN_DIR:=$(BUILD_DIR)/tinylogin
+TINYLOGIN_SOURCE:=tinylogin-snapshot.tar.bz2
+TINYLOGIN_SITE:=http://tinylogin.busybox.net/downloads/snapshots
+else
+TINYLOGIN_DIR:=$(BUILD_DIR)/tinylogin-1.4
+TINYLOGIN_SOURCE:=tinylogin-1.4.tar.bz2
+TINYLOGIN_SITE:=http://tinylogin.busybox.net/downloads
+endif
+
+$(DL_DIR)/$(TINYLOGIN_SOURCE):
+ $(WGET) -P $(DL_DIR) $(TINYLOGIN_SITE)/$(TINYLOGIN_SOURCE)
+
+tinylogin-source: $(DL_DIR)/$(TINYLOGIN_SOURCE)
+
+$(TINYLOGIN_DIR)/Config.h: $(DL_DIR)/$(TINYLOGIN_SOURCE)
+ bzcat $(DL_DIR)/$(TINYLOGIN_SOURCE) | tar -C $(BUILD_DIR) -xvf -
+ $(SED) "s/\`id -u\` -ne 0/0 == 1/" \
+ $(TINYLOGIN_DIR)/install.sh
+ $(SED) "s/4755 --owner=root --group=root/755/" \
+ $(TINYLOGIN_DIR)/install.sh
+ $(SED) "s/^DOSTATIC.*/DOSTATIC=false/g;" $(TINYLOGIN_DIR)/Makefile
+ $(SED) "s/^DODEBUG.*/DODEBUG=false/g;" $(TINYLOGIN_DIR)/Makefile
+ # date test this one
+ touch $(TINYLOGIN_DIR)/Config.h
+
+$(TINYLOGIN_DIR)/tinylogin: $(TINYLOGIN_DIR)/Config.h
+ $(MAKE) CC=$(TARGET_CC) CROSS="$(TARGET_CROSS)" \
+ CFLAGS_EXTRA="$(TARGET_CFLAGS)" -C $(TINYLOGIN_DIR)
+
+$(TARGET_DIR)/bin/tinylogin: $(TINYLOGIN_DIR)/tinylogin
+ $(MAKE) CC=$(TARGET_CC) CROSS="$(TARGET_CROSS)" \
+ PREFIX="$(TARGET_DIR)" -C $(TINYLOGIN_DIR) \
+ CFLAGS_EXTRA="$(TARGET_CFLAGS)" install
+
+tinylogin: uclibc $(TARGET_DIR)/bin/tinylogin
+
+tinylogin-clean:
+ rm -f $(TARGET_DIR)/bin/tinylogin
+ -$(MAKE) -C $(TINYLOGIN_DIR) clean
+
+tinylogin-dirclean:
+ rm -rf $(TINYLOGIN_DIR)