summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorManuel Novoa III <mjn3@codepoet.org>2003-11-20 00:56:41 +0000
committerManuel Novoa III <mjn3@codepoet.org>2003-11-20 00:56:41 +0000
commit545d9674b0c25921279f1b57d637765171199bd9 (patch)
tree2e6aef671aee628744fb2548d10fbaa1c4d45041
parent963c24ed82c4039c7561b69fcb7aedcd575bfa63 (diff)
Contributed by Greg Haerr <greg@censoft.com>.
-rw-r--r--make/microwin.mk46
1 files changed, 46 insertions, 0 deletions
diff --git a/make/microwin.mk b/make/microwin.mk
new file mode 100644
index 000000000..e59600f39
--- /dev/null
+++ b/make/microwin.mk
@@ -0,0 +1,46 @@
+#############################################################
+#
+# 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
+
+MICROWIN_CAT:=zcat
+MICROWIN_BINARY:=$(MICROWIN_DIR)/src/bin/nano-X
+MICROWIN_TARGET_BINARY:=$(TARGET_DIR)/usr/bin/nano-X
+
+MICROWIN_CONFIG:=$(MICROWIN_DIR)/src/Configs/config.uclibc
+
+$(DL_DIR)/$(MICROWIN_SOURCE):
+ $(WGET) -P $(DL_DIR) $(MICROWIN_SITE)/$(MICROWIN_SOURCE)
+
+microwin-source: $(DL_DIR)/$(MICROWIN_SOURCE)
+
+$(MICROWIN_DIR)/.unpacked: $(DL_DIR)/$(MICROWIN_SOURCE)
+ $(MICROWIN_CAT) $(DL_DIR)/$(MICROWIN_SOURCE) | tar -C $(BUILD_DIR) -xvf -
+ touch $(MICROWIN_DIR)/.unpacked
+
+$(MICROWIN_DIR)/.configured: $(MICROWIN_DIR)/.unpacked
+ (cd $(MICROWIN_DIR); \
+ );
+ touch $(MICROWIN_DIR)/.configured
+
+$(MICROWIN_BINARY): $(MICROWIN_DIR)/.configured
+ $(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)
+
+$(MICROWIN_TARGET_BINARY): $(MICROWIN_BINARY)
+ $(MAKE) INSTALL_PREFIX=$(TARGET_DIR)/usr INSTALL_OWNER1= INSTALL_OWNER2= CC=$(TARGET_CC) -C $(MICROWIN_DIR)/src CONFIG=$(MICROWIN_CONFIG) install
+
+microwin: uclibc $(MICROWIN_TARGET_BINARY)
+
+microwin-clean:
+ -$(MAKE) -C $(MICROWIN_DIR)/src clean
+
+microwin-dirclean:
+ rm -rf $(MICROWIN_DIR)
+