hide some non-critical error messages; prevent newbie bug reports
[openwrt.git] / obsolete-buildroot / make / tinylogin.mk
1 #############################################################
2 #
3 # tinylogin
4 #
5 #############################################################
6 # Enable this to use the tinylogin daily snapshot
7 USE_TINYLOGIN_SNAPSHOT=true
8
9 ifeq ($(USE_TINYLOGIN_SNAPSHOT),true)
10 # Be aware that this changes daily....
11 TINYLOGIN_DIR:=$(BUILD_DIR)/tinylogin
12 TINYLOGIN_SOURCE:=tinylogin-snapshot.tar.bz2
13 TINYLOGIN_SITE:=http://tinylogin.busybox.net/downloads/snapshots
14 else
15 TINYLOGIN_DIR:=$(BUILD_DIR)/tinylogin-1.4
16 TINYLOGIN_SOURCE:=tinylogin-1.4.tar.bz2
17 TINYLOGIN_SITE:=http://tinylogin.busybox.net/downloads
18 endif
19
20 $(DL_DIR)/$(TINYLOGIN_SOURCE):
21 $(WGET) -P $(DL_DIR) $(TINYLOGIN_SITE)/$(TINYLOGIN_SOURCE)
22
23 tinylogin-source: $(DL_DIR)/$(TINYLOGIN_SOURCE)
24
25 $(TINYLOGIN_DIR)/Config.h: $(DL_DIR)/$(TINYLOGIN_SOURCE)
26 bzcat $(DL_DIR)/$(TINYLOGIN_SOURCE) | tar -C $(BUILD_DIR) -xvf -
27 $(SED) "s/\`id -u\` -ne 0/0 == 1/" \
28 $(TINYLOGIN_DIR)/install.sh
29 $(SED) "s/4755 --owner=root --group=root/755/" \
30 $(TINYLOGIN_DIR)/install.sh
31 $(SED) "s/^DOSTATIC.*/DOSTATIC=false/g;" $(TINYLOGIN_DIR)/Makefile
32 $(SED) "s/^DODEBUG.*/DODEBUG=false/g;" $(TINYLOGIN_DIR)/Makefile
33 # date test this one
34 touch $(TINYLOGIN_DIR)/Config.h
35
36 $(TINYLOGIN_DIR)/tinylogin: $(TINYLOGIN_DIR)/Config.h
37 $(MAKE) CC=$(TARGET_CC) CROSS="$(TARGET_CROSS)" \
38 CFLAGS_EXTRA="$(TARGET_CFLAGS)" -C $(TINYLOGIN_DIR)
39
40 $(TARGET_DIR)/bin/tinylogin: $(TINYLOGIN_DIR)/tinylogin
41 $(MAKE) CC=$(TARGET_CC) CROSS="$(TARGET_CROSS)" \
42 PREFIX="$(TARGET_DIR)" -C $(TINYLOGIN_DIR) \
43 CFLAGS_EXTRA="$(TARGET_CFLAGS)" install
44
45 tinylogin: uclibc $(TARGET_DIR)/bin/tinylogin
46
47 tinylogin-clean:
48 rm -f $(TARGET_DIR)/bin/tinylogin
49 -$(MAKE) -C $(TINYLOGIN_DIR) clean
50
51 tinylogin-dirclean:
52 rm -rf $(TINYLOGIN_DIR)
This page took 0.04225 seconds and 5 git commands to generate.