1 #############################################################
3 # Microwindows - 2003/11/17 Greg Haerr
4 # (requires CVS 2003/11/17 or later)
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
14 MICROWIN_BINARY
:=$(MICROWIN_DIR
)/src
/bin
/nano-X
15 MICROWIN_TARGET_BINARY
:=$(TARGET_DIR
)/usr
/bin
/nano-X
17 MICROWIN_CONFIG
:=$(MICROWIN_DIR
)/src
/Configs
/config.uclibc
19 $(DL_DIR
)/$(MICROWIN_SOURCE
):
20 $(WGET
) -P
$(DL_DIR
) $(MICROWIN_SITE
)/$(MICROWIN_SOURCE
)
22 microwin-source
: $(DL_DIR
)/$(MICROWIN_SOURCE
)
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
28 $(MICROWIN_DIR
)/.configured
: $(MICROWIN_DIR
)/.unpacked
29 (cd
$(MICROWIN_DIR
); \
31 touch
$(MICROWIN_DIR
)/.configured
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
)
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
39 microwin
: uclibc
$(MICROWIN_TARGET_BINARY
)
42 -$(MAKE
) -C
$(MICROWIN_DIR
)/src
clean
45 rm -rf
$(MICROWIN_DIR
)