update master mirror url
[openwrt.git] / obsolete-buildroot / make / mkdosfs.mk
1 #############################################################
2 #
3 # mkdosfs
4 #
5 #############################################################
6 MKDOSFS_SOURCE=dosfstools-2.8.src.tar.gz
7 MKDOSFS_SITE=http://ftp.uni-erlangen.de/pub/Linux/LOCAL/dosfstools
8 MKDOSFS_DIR=$(BUILD_DIR)/dosfstools-2.8
9 MKDOSFS_CAT:=zcat
10 MKDOSFS_BINARY:=mkdosfs/mkdosfs
11 MKDOSFS_TARGET_BINARY:=sbin/mkdosfs
12 ifeq ($(strip $(BUILD_WITH_LARGEFILE)),true)
13 MKDOSFS_CFLAGS="-Os -g -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64"
14 else
15 MKDOSFS_CFLAGS="-Os -g"
16 endif
17
18 $(DL_DIR)/$(MKDOSFS_SOURCE):
19 $(WGET) -P $(DL_DIR) $(MKDOSFS_SITE)/$(MKDOSFS_SOURCE)
20
21 mkdosfs-source: $(DL_DIR)/$(MKDOSFS_SOURCE)
22
23 $(MKDOSFS_DIR)/.unpacked: $(DL_DIR)/$(MKDOSFS_SOURCE)
24 $(MKDOSFS_CAT) $(DL_DIR)/$(MKDOSFS_SOURCE) | tar -C $(BUILD_DIR) -xvf -
25 touch $(MKDOSFS_DIR)/.unpacked
26
27 $(MKDOSFS_DIR)/$(MKDOSFS_BINARY): $(MKDOSFS_DIR)/.unpacked
28 $(MAKE) CFLAGS=$(MKDOSFS_CFLAGS) CC=$(TARGET_CC) -C $(MKDOSFS_DIR);
29 $(STRIP) $(MKDOSFS_DIR)/mkdosfs/mkdosfs;
30 touch -c $(MKDOSFS_DIR)/mkdosfs/mkdosfs
31
32 $(TARGET_DIR)/$(MKDOSFS_TARGET_BINARY): $(MKDOSFS_DIR)/$(MKDOSFS_BINARY)
33 cp -a $(MKDOSFS_DIR)/$(MKDOSFS_BINARY) $(TARGET_DIR)/$(MKDOSFS_TARGET_BINARY)
34 touch -c $(TARGET_DIR)/sbin/mkdosfs
35
36 mkdosfs: uclibc $(TARGET_DIR)/$(MKDOSFS_TARGET_BINARY)
37
38 mkdosfs-clean:
39 $(MAKE) DESTDIR=$(TARGET_DIR) CC=$(TARGET_CC) -C $(MKDOSFS_DIR) uninstall
40 -$(MAKE) -C $(MKDOSFS_DIR) clean
41
42 mkdosfs-dirclean:
43 rm -rf $(MKDOSFS_DIR)
44
This page took 0.044629 seconds and 5 git commands to generate.