fix ar7 flash map driver handling of jffs2 images
[openwrt.git] / obsolete-buildroot / make / microwin.mk
1 #############################################################
2 #
3 # Microwindows - 2003/11/17 Greg Haerr
4 # (requires CVS 2003/11/17 or later)
5 #
6 #############################################################
7 MICROWIN_SITE:=ftp://ftp.microwindows.org/pub/microwindows
8 MICROWIN_SOURCE:=microwindows-src-snapshot.tar.gz
9 MICROWIN_DIR:=$(BUILD_DIR)/microwin
10 #MICROWIN_SOURCE:=microwindows-0.91.tar.gz
11 #MICROWIN_DIR:=$(BUILD_DIR)/microwindows-0.91
12
13 MICROWIN_CAT:=zcat
14 MICROWIN_BINARY:=$(MICROWIN_DIR)/src/bin/nano-X
15 MICROWIN_TARGET_BINARY:=$(TARGET_DIR)/usr/bin/nano-X
16
17 MICROWIN_CONFIG:=$(MICROWIN_DIR)/src/Configs/config.uclibc
18
19 $(DL_DIR)/$(MICROWIN_SOURCE):
20 $(WGET) -P $(DL_DIR) $(MICROWIN_SITE)/$(MICROWIN_SOURCE)
21
22 microwin-source: $(DL_DIR)/$(MICROWIN_SOURCE)
23
24 $(MICROWIN_DIR)/.unpacked: $(DL_DIR)/$(MICROWIN_SOURCE)
25 $(MICROWIN_CAT) $(DL_DIR)/$(MICROWIN_SOURCE) | tar -C $(BUILD_DIR) -xvf -
26 touch $(MICROWIN_DIR)/.unpacked
27
28 $(MICROWIN_DIR)/.configured: $(MICROWIN_DIR)/.unpacked
29 (cd $(MICROWIN_DIR); \
30 );
31 touch $(MICROWIN_DIR)/.configured
32
33 $(MICROWIN_BINARY): $(MICROWIN_DIR)/.configured
34 $(MAKE) ARCH=LINUX-$(shell echo $(ARCH) | tr a-z A-Z) $(shell echo $(ARCH) | tr a-z A-Z)TOOLSPREFIX=$(TARGET_CROSS) CC=$(TARGET_CC) -C $(MICROWIN_DIR)/src CONFIG=$(MICROWIN_CONFIG)
35
36 $(MICROWIN_TARGET_BINARY): $(MICROWIN_BINARY)
37 $(MAKE) INSTALL_PREFIX=$(TARGET_DIR)/usr INSTALL_OWNER1= INSTALL_OWNER2= CC=$(TARGET_CC) -C $(MICROWIN_DIR)/src CONFIG=$(MICROWIN_CONFIG) install
38
39 microwin: uclibc $(MICROWIN_TARGET_BINARY)
40
41 microwin-clean:
42 -$(MAKE) -C $(MICROWIN_DIR)/src clean
43
44 microwin-dirclean:
45 rm -rf $(MICROWIN_DIR)
46
This page took 0.053201 seconds and 5 git commands to generate.