update the makefile for Linux
[processor-sdk/audio-preprocessing.git] / file_demo_bios / am572x / build / makefile
index b589686527508b338e967b91c057ee2016bb71a6..3c3e38610ec67c905aa8852b2919c87ae1a65758 100644 (file)
@@ -1,11 +1,12 @@
 # set global environment variables\r
-C6X_GEN_INSTALL_PATH = C:/ti/ccsv6/tools/compiler/ti-cgt-c6000_8.1.0\r
-XDC_INSTALL_PATH = C:/ti/xdctools_3_32_00_06_core\r
-BIOS_INSTALL_PATH = C:/ti/bios_6_45_01_29\r
-VOLIB_INSTALL_PATH = C:/ti/volib_C66_2_1_0_1\r
-AER_INSTALL_PATH = C:/ti/aer_c64Px_obj_17_0_0_0\r
-UIA_INSTALL_PATH = C:/ti/uia_2_00_03_43\r
-XDAIS_INSTALL_PATH = C:/ti/xdais_7_24_00_04\r
+SDK_INSTALL_PATH ?= C:/ti\r
+C6X_GEN_INSTALL_PATH ?= $(SDK_INSTALL_PATH)/ccsv6/tools/compiler/ti-cgt-c6000_8.1.0\r
+XDC_INSTALL_PATH ?= $(SDK_INSTALL_PATH)/xdctools_3_32_00_06_core\r
+BIOS_INSTALL_PATH ?= $(SDK_INSTALL_PATH)/bios_6_45_01_29\r
+UIA_INSTALL_PATH ?= $(SDK_INSTALL_PATH)/uia_2_00_03_43\r
+XDAIS_INSTALL_PATH ?= $(SDK_INSTALL_PATH)/xdais_7_24_00_04\r
+VOLIB_INSTALL_PATH ?= $(SDK_INSTALL_PATH)/volib_C66_2_1_0_1\r
+AER_INSTALL_PATH ?= $(SDK_INSTALL_PATH)/aer_c64Px_obj_17_0_0_0\r
 \r
 GEN_OPTS__FLAG := --cmd_file="configPkg/compiler.opt"\r
 GEN_CMDS__FLAG := -l"configPkg/linker.cmd"\r
@@ -37,8 +38,14 @@ $(GEN_CMDS__FLAG) \
 \r
 -include ../makefile.init\r
 \r
+OS := $(shell uname)\r
+ifeq ($(OS), Linux)\r
+RM := rm -f\r
+RMDIR := rm -d -f -r\r
+else\r
 RM := DEL /F\r
 RMDIR := RMDIR /S/Q\r
+endif\r
 \r
 # All of the sources participating in the build are defined here\r
 ##-include subdir_vars.mk\r