From 1b6ab008c156bdb619306c20852c838ccebc5bec Mon Sep 17 00:00:00 2001 From: Gregory Nutt Date: Sat, 6 Sep 2014 13:19:02 -0600 Subject: Add generic setup logic to every Makefile that installs a program. Each will need customization --- apps/system/cdcacm/Makefile | 9 +++++++++ apps/system/composite/Makefile | 9 +++++++++ apps/system/flash_eraseall/Makefile | 9 +++++++++ apps/system/free/Makefile | 9 +++++++++ apps/system/hex2bin/Makefile | 9 +++++++++ apps/system/i2c/Makefile | 9 +++++++++ apps/system/install/Makefile | 9 +++++++++ apps/system/mdio/Makefile | 9 +++++++++ apps/system/nxplayer/Makefile | 9 +++++++++ apps/system/poweroff/Makefile | 9 +++++++++ apps/system/prun/Makefile | 9 +++++++++ apps/system/ramtest/Makefile | 9 +++++++++ apps/system/ramtron/Makefile | 9 +++++++++ apps/system/sdcard/Makefile | 9 +++++++++ apps/system/sudoku/Makefile | 9 +++++++++ apps/system/sysinfo/Makefile | 9 +++++++++ apps/system/usbmsc/Makefile | 9 +++++++++ apps/system/vi/Makefile | 9 +++++++++ apps/system/zmodem/Makefile | 9 +++++++++ 19 files changed, 171 insertions(+) (limited to 'apps/system') diff --git a/apps/system/cdcacm/Makefile b/apps/system/cdcacm/Makefile index 74e81c7b2..a9e260750 100644 --- a/apps/system/cdcacm/Makefile +++ b/apps/system/cdcacm/Makefile @@ -58,6 +58,15 @@ else endif endif +ifeq ($(WINTOOL),y) + INSTALL_DIR = "${shell cygpath -w $(BIN_DIR)}" +else + INSTALL_DIR = $(BIN_DIR) +endif + +CONFIG_XYZ_PROGNAME ?= xyz$(EXEEXT) +PROGNAME = $(CONFIG_XYZ_PROGNAME) + ROOTDEPPATH = --dep-path . # USB CDC/ACM built-in application info diff --git a/apps/system/composite/Makefile b/apps/system/composite/Makefile index 8a13a623e..ecc3e9a71 100644 --- a/apps/system/composite/Makefile +++ b/apps/system/composite/Makefile @@ -58,6 +58,15 @@ else endif endif +ifeq ($(WINTOOL),y) + INSTALL_DIR = "${shell cygpath -w $(BIN_DIR)}" +else + INSTALL_DIR = $(BIN_DIR) +endif + +CONFIG_XYZ_PROGNAME ?= xyz$(EXEEXT) +PROGNAME = $(CONFIG_XYZ_PROGNAME) + ROOTDEPPATH = --dep-path . # USB storage built-in application info diff --git a/apps/system/flash_eraseall/Makefile b/apps/system/flash_eraseall/Makefile index d03a7561b..eac6c9532 100644 --- a/apps/system/flash_eraseall/Makefile +++ b/apps/system/flash_eraseall/Makefile @@ -72,6 +72,15 @@ else endif endif +ifeq ($(WINTOOL),y) + INSTALL_DIR = "${shell cygpath -w $(BIN_DIR)}" +else + INSTALL_DIR = $(BIN_DIR) +endif + +CONFIG_XYZ_PROGNAME ?= xyz$(EXEEXT) +PROGNAME = $(CONFIG_XYZ_PROGNAME) + ROOTDEPPATH = --dep-path . # Common build diff --git a/apps/system/free/Makefile b/apps/system/free/Makefile index d7a42c050..4bddd7a8e 100644 --- a/apps/system/free/Makefile +++ b/apps/system/free/Makefile @@ -68,6 +68,15 @@ else endif endif +ifeq ($(WINTOOL),y) + INSTALL_DIR = "${shell cygpath -w $(BIN_DIR)}" +else + INSTALL_DIR = $(BIN_DIR) +endif + +CONFIG_XYZ_PROGNAME ?= xyz$(EXEEXT) +PROGNAME = $(CONFIG_XYZ_PROGNAME) + ROOTDEPPATH = --dep-path . # Common build diff --git a/apps/system/hex2bin/Makefile b/apps/system/hex2bin/Makefile index 48a984033..d150fa1a0 100644 --- a/apps/system/hex2bin/Makefile +++ b/apps/system/hex2bin/Makefile @@ -66,6 +66,15 @@ else endif endif +ifeq ($(WINTOOL),y) + INSTALL_DIR = "${shell cygpath -w $(BIN_DIR)}" +else + INSTALL_DIR = $(BIN_DIR) +endif + +CONFIG_XYZ_PROGNAME ?= xyz$(EXEEXT) +PROGNAME = $(CONFIG_XYZ_PROGNAME) + ROOTDEPPATH = --dep-path . VPATH = diff --git a/apps/system/i2c/Makefile b/apps/system/i2c/Makefile index de3dc21d4..c14d88890 100644 --- a/apps/system/i2c/Makefile +++ b/apps/system/i2c/Makefile @@ -58,6 +58,15 @@ else endif endif +ifeq ($(WINTOOL),y) + INSTALL_DIR = "${shell cygpath -w $(BIN_DIR)}" +else + INSTALL_DIR = $(BIN_DIR) +endif + +CONFIG_XYZ_PROGNAME ?= xyz$(EXEEXT) +PROGNAME = $(CONFIG_XYZ_PROGNAME) + ROOTDEPPATH = --dep-path . VPATH = diff --git a/apps/system/install/Makefile b/apps/system/install/Makefile index a617fb4fc..e455c3360 100644 --- a/apps/system/install/Makefile +++ b/apps/system/install/Makefile @@ -72,6 +72,15 @@ else endif endif +ifeq ($(WINTOOL),y) + INSTALL_DIR = "${shell cygpath -w $(BIN_DIR)}" +else + INSTALL_DIR = $(BIN_DIR) +endif + +CONFIG_XYZ_PROGNAME ?= xyz$(EXEEXT) +PROGNAME = $(CONFIG_XYZ_PROGNAME) + ROOTDEPPATH = --dep-path . # Common build diff --git a/apps/system/mdio/Makefile b/apps/system/mdio/Makefile index fa7f6bd10..f25441430 100644 --- a/apps/system/mdio/Makefile +++ b/apps/system/mdio/Makefile @@ -64,6 +64,15 @@ else endif endif +ifeq ($(WINTOOL),y) + INSTALL_DIR = "${shell cygpath -w $(BIN_DIR)}" +else + INSTALL_DIR = $(BIN_DIR) +endif + +CONFIG_XYZ_PROGNAME ?= xyz$(EXEEXT) +PROGNAME = $(CONFIG_XYZ_PROGNAME) + ROOTDEPPATH = --dep-path . # Common build diff --git a/apps/system/nxplayer/Makefile b/apps/system/nxplayer/Makefile index 3f0c9d949..1d45fe2b9 100644 --- a/apps/system/nxplayer/Makefile +++ b/apps/system/nxplayer/Makefile @@ -74,6 +74,15 @@ else endif endif +ifeq ($(WINTOOL),y) + INSTALL_DIR = "${shell cygpath -w $(BIN_DIR)}" +else + INSTALL_DIR = $(BIN_DIR) +endif + +CONFIG_XYZ_PROGNAME ?= xyz$(EXEEXT) +PROGNAME = $(CONFIG_XYZ_PROGNAME) + ROOTDEPPATH = --dep-path . # Common build diff --git a/apps/system/poweroff/Makefile b/apps/system/poweroff/Makefile index a2d0f9d85..43d5025fa 100644 --- a/apps/system/poweroff/Makefile +++ b/apps/system/poweroff/Makefile @@ -72,6 +72,15 @@ else endif endif +ifeq ($(WINTOOL),y) + INSTALL_DIR = "${shell cygpath -w $(BIN_DIR)}" +else + INSTALL_DIR = $(BIN_DIR) +endif + +CONFIG_XYZ_PROGNAME ?= xyz$(EXEEXT) +PROGNAME = $(CONFIG_XYZ_PROGNAME) + ROOTDEPPATH = --dep-path . # Common build diff --git a/apps/system/prun/Makefile b/apps/system/prun/Makefile index 0801f0298..52ad17b61 100644 --- a/apps/system/prun/Makefile +++ b/apps/system/prun/Makefile @@ -78,6 +78,15 @@ else endif endif +ifeq ($(WINTOOL),y) + INSTALL_DIR = "${shell cygpath -w $(BIN_DIR)}" +else + INSTALL_DIR = $(BIN_DIR) +endif + +CONFIG_XYZ_PROGNAME ?= xyz$(EXEEXT) +PROGNAME = $(CONFIG_XYZ_PROGNAME) + ROOTDEPPATH = --dep-path . # Common build diff --git a/apps/system/ramtest/Makefile b/apps/system/ramtest/Makefile index 1b426207a..68a1a6d65 100644 --- a/apps/system/ramtest/Makefile +++ b/apps/system/ramtest/Makefile @@ -65,6 +65,15 @@ else endif endif +ifeq ($(WINTOOL),y) + INSTALL_DIR = "${shell cygpath -w $(BIN_DIR)}" +else + INSTALL_DIR = $(BIN_DIR) +endif + +CONFIG_XYZ_PROGNAME ?= xyz$(EXEEXT) +PROGNAME = $(CONFIG_XYZ_PROGNAME) + ROOTDEPPATH = --dep-path . # Common build diff --git a/apps/system/ramtron/Makefile b/apps/system/ramtron/Makefile index 4f5327abc..b88e70d30 100644 --- a/apps/system/ramtron/Makefile +++ b/apps/system/ramtron/Makefile @@ -72,6 +72,15 @@ else endif endif +ifeq ($(WINTOOL),y) + INSTALL_DIR = "${shell cygpath -w $(BIN_DIR)}" +else + INSTALL_DIR = $(BIN_DIR) +endif + +CONFIG_XYZ_PROGNAME ?= xyz$(EXEEXT) +PROGNAME = $(CONFIG_XYZ_PROGNAME) + ROOTDEPPATH = --dep-path . # Common build diff --git a/apps/system/sdcard/Makefile b/apps/system/sdcard/Makefile index e66855a3c..0e9a96603 100644 --- a/apps/system/sdcard/Makefile +++ b/apps/system/sdcard/Makefile @@ -72,6 +72,15 @@ else endif endif +ifeq ($(WINTOOL),y) + INSTALL_DIR = "${shell cygpath -w $(BIN_DIR)}" +else + INSTALL_DIR = $(BIN_DIR) +endif + +CONFIG_XYZ_PROGNAME ?= xyz$(EXEEXT) +PROGNAME = $(CONFIG_XYZ_PROGNAME) + ROOTDEPPATH = --dep-path . # Common build diff --git a/apps/system/sudoku/Makefile b/apps/system/sudoku/Makefile index 40370372e..bc2e79512 100644 --- a/apps/system/sudoku/Makefile +++ b/apps/system/sudoku/Makefile @@ -68,6 +68,15 @@ else endif endif +ifeq ($(WINTOOL),y) + INSTALL_DIR = "${shell cygpath -w $(BIN_DIR)}" +else + INSTALL_DIR = $(BIN_DIR) +endif + +CONFIG_XYZ_PROGNAME ?= xyz$(EXEEXT) +PROGNAME = $(CONFIG_XYZ_PROGNAME) + ROOTDEPPATH = --dep-path . # Common build diff --git a/apps/system/sysinfo/Makefile b/apps/system/sysinfo/Makefile index 7956fac88..e563adc30 100644 --- a/apps/system/sysinfo/Makefile +++ b/apps/system/sysinfo/Makefile @@ -73,6 +73,15 @@ else endif endif +ifeq ($(WINTOOL),y) + INSTALL_DIR = "${shell cygpath -w $(BIN_DIR)}" +else + INSTALL_DIR = $(BIN_DIR) +endif + +CONFIG_XYZ_PROGNAME ?= xyz$(EXEEXT) +PROGNAME = $(CONFIG_XYZ_PROGNAME) + ROOTDEPPATH = --dep-path . # Common build diff --git a/apps/system/usbmsc/Makefile b/apps/system/usbmsc/Makefile index de0d25a6a..42da35650 100644 --- a/apps/system/usbmsc/Makefile +++ b/apps/system/usbmsc/Makefile @@ -58,6 +58,15 @@ else endif endif +ifeq ($(WINTOOL),y) + INSTALL_DIR = "${shell cygpath -w $(BIN_DIR)}" +else + INSTALL_DIR = $(BIN_DIR) +endif + +CONFIG_XYZ_PROGNAME ?= xyz$(EXEEXT) +PROGNAME = $(CONFIG_XYZ_PROGNAME) + ROOTDEPPATH = --dep-path . # USB storage built-in application info diff --git a/apps/system/vi/Makefile b/apps/system/vi/Makefile index d3e8d8f34..040f1255a 100644 --- a/apps/system/vi/Makefile +++ b/apps/system/vi/Makefile @@ -69,6 +69,15 @@ else endif endif +ifeq ($(WINTOOL),y) + INSTALL_DIR = "${shell cygpath -w $(BIN_DIR)}" +else + INSTALL_DIR = $(BIN_DIR) +endif + +CONFIG_XYZ_PROGNAME ?= xyz$(EXEEXT) +PROGNAME = $(CONFIG_XYZ_PROGNAME) + ROOTDEPPATH = --dep-path . # Common build diff --git a/apps/system/zmodem/Makefile b/apps/system/zmodem/Makefile index e8d813634..0ff3899af 100644 --- a/apps/system/zmodem/Makefile +++ b/apps/system/zmodem/Makefile @@ -68,6 +68,15 @@ else endif endif +ifeq ($(WINTOOL),y) + INSTALL_DIR = "${shell cygpath -w $(BIN_DIR)}" +else + INSTALL_DIR = $(BIN_DIR) +endif + +CONFIG_XYZ_PROGNAME ?= xyz$(EXEEXT) +PROGNAME = $(CONFIG_XYZ_PROGNAME) + ROOTDEPPATH = --dep-path . # Common build -- cgit v1.2.3