2003-11-20 01:56:41 +01:00
|
|
|
#############################################################
|
|
|
|
#
|
|
|
|
# Microwindows - 2003/11/17 Greg Haerr
|
|
|
|
# (requires CVS 2003/11/17 or later)
|
|
|
|
#
|
|
|
|
#############################################################
|
|
|
|
MICROWIN_SITE:=ftp://ftp.microwindows.org/pub/microwindows
|
|
|
|
MICROWIN_SOURCE:=microwindows-src-snapshot.tar.gz
|
|
|
|
MICROWIN_DIR:=$(BUILD_DIR)/microwin
|
|
|
|
#MICROWIN_SOURCE:=microwindows-0.91.tar.gz
|
|
|
|
#MICROWIN_DIR:=$(BUILD_DIR)/microwindows-0.91
|
|
|
|
|
2006-10-01 17:17:52 +02:00
|
|
|
MICROWIN_CAT:=$(ZCAT)
|
2003-11-20 01:56:41 +01:00
|
|
|
MICROWIN_BINARY:=$(MICROWIN_DIR)/src/bin/nano-X
|
|
|
|
MICROWIN_TARGET_BINARY:=$(TARGET_DIR)/usr/bin/nano-X
|
2006-11-23 00:03:57 +01:00
|
|
|
MICROWIN_VERSION=$(subst $(MICROWIN_DIR)/microwindows-,,$(wildcard $(MICROWIN_DIR)/microwindows-*))
|
2003-11-20 01:56:41 +01:00
|
|
|
|
|
|
|
MICROWIN_CONFIG:=$(MICROWIN_DIR)/src/Configs/config.uclibc
|
|
|
|
|
|
|
|
$(DL_DIR)/$(MICROWIN_SOURCE):
|
2009-01-16 12:42:52 +01:00
|
|
|
$(call DOWNLOAD,$(MICROWIN_SITE),$(MICROWIN_SOURCE))
|
2003-11-20 01:56:41 +01:00
|
|
|
|
|
|
|
microwin-source: $(DL_DIR)/$(MICROWIN_SOURCE)
|
|
|
|
|
|
|
|
$(MICROWIN_DIR)/.unpacked: $(DL_DIR)/$(MICROWIN_SOURCE)
|
2006-11-23 00:03:57 +01:00
|
|
|
[ -d $(MICROWIN_DIR) ] || mkdir $(MICROWIN_DIR)
|
|
|
|
$(MICROWIN_CAT) $(DL_DIR)/$(MICROWIN_SOURCE) | tar -C $(MICROWIN_DIR) $(TAR_OPTIONS) -
|
2003-11-20 01:56:41 +01:00
|
|
|
touch $(MICROWIN_DIR)/.unpacked
|
|
|
|
|
2006-11-23 00:03:57 +01:00
|
|
|
$(MICROWIN_DIR)/.prepared: $(MICROWIN_DIR)/.unpacked
|
|
|
|
mv $(MICROWIN_DIR)/microwindows-$(MICROWIN_VERSION)/* $(MICROWIN_DIR)
|
2006-11-23 00:09:20 +01:00
|
|
|
toolchain/patch-kernel.sh $(MICROWIN_DIR) package/microwin/ microwindows-$(MICROWIN_VERSION)\*.patch
|
2006-11-23 00:03:57 +01:00
|
|
|
touch $(MICROWIN_DIR)/.prepared
|
|
|
|
|
|
|
|
$(MICROWIN_DIR)/.configured: $(MICROWIN_DIR)/.prepared
|
2003-11-20 01:56:41 +01:00
|
|
|
(cd $(MICROWIN_DIR); \
|
2007-08-21 21:20:18 +02:00
|
|
|
)
|
2005-11-24 07:53:24 +01:00
|
|
|
touch $(MICROWIN_DIR)/.configured
|
2003-11-20 01:56:41 +01:00
|
|
|
|
|
|
|
$(MICROWIN_BINARY): $(MICROWIN_DIR)/.configured
|
2010-07-06 09:27:32 +02:00
|
|
|
$(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)
|
2003-11-20 01:56:41 +01:00
|
|
|
|
|
|
|
$(MICROWIN_TARGET_BINARY): $(MICROWIN_BINARY)
|
2010-07-06 09:27:32 +02:00
|
|
|
$(MAKE) INSTALL_PREFIX=$(TARGET_DIR)/usr INSTALL_OWNER1= INSTALL_OWNER2= CC="$(TARGET_CC)" -C $(MICROWIN_DIR)/src CONFIG=$(MICROWIN_CONFIG) install
|
2003-11-20 01:56:41 +01:00
|
|
|
|
2009-09-02 17:02:02 +02:00
|
|
|
microwin: $(MICROWIN_TARGET_BINARY)
|
2003-11-20 01:56:41 +01:00
|
|
|
|
|
|
|
microwin-clean:
|
|
|
|
-$(MAKE) -C $(MICROWIN_DIR)/src clean
|
|
|
|
|
|
|
|
microwin-dirclean:
|
|
|
|
rm -rf $(MICROWIN_DIR)
|
|
|
|
|
2005-02-10 04:06:39 +01:00
|
|
|
#############################################################
|
|
|
|
#
|
|
|
|
# Toplevel Makefile options
|
|
|
|
#
|
|
|
|
#############################################################
|
2008-12-08 09:15:27 +01:00
|
|
|
ifeq ($(BR2_PACKAGE_MICROWIN),y)
|
2006-11-23 00:03:57 +01:00
|
|
|
TARGETS+=microwin
|
|
|
|
endif
|