]> Gitweb @ Texas Instruments - Open Source Git Repositories - git.TI.com/gitweb - keystone-rtos/mcsdk-tools.git/commitdiff
updated makefiles
authorAravind Batni <aravindbr@ti.com>
Fri, 19 Aug 2011 22:57:41 +0000 (18:57 -0400)
committerAravindBatni <aravindbr@ti.com>
Sat, 20 Aug 2011 01:20:10 +0000 (21:20 -0400)
boot_loader/examples/ethernet/Utilities/Makefile [new file with mode: 0755]
boot_loader/examples/ethernet/simple/makefile [changed mode: 0644->0755]
bttbl2hfile/Makefile [new file with mode: 0755]
hfile2array/Makefile [new file with mode: 0755]

diff --git a/boot_loader/examples/ethernet/Utilities/Makefile b/boot_loader/examples/ethernet/Utilities/Makefile
new file mode 100755 (executable)
index 0000000..e2b2574
--- /dev/null
@@ -0,0 +1,28 @@
+
+# get the type of OS currently running
+OS=$(shell uname)
+
+# check if the OS string contains 'Linux'
+ifneq (,$(findstring Linux, $(OS)))
+# Linux OS...
+APP_EXT=
+CLEAN=rm -f
+else
+# windows OS...
+APP_EXT=.exe
+CLEAN=del
+endif
+
+SRCS = $(wildcard *.c)
+EXES = $(patsubst %.c,%$(APP_EXT),$(SRCS))
+
+.PHONY: all clean
+all: $(EXES)
+
+clean:
+       $(CLEAN) $(EXES)
+
+%$(APP_EXT): %.c
+       $(CC) $(CFLAGS) -o $@ $<
+
+
old mode 100644 (file)
new mode 100755 (executable)
index 949de97..0ed52b5
@@ -35,11 +35,3 @@ clean:
        rm simple.btbl
        rm simple.le.btbl
        rm simple.map
-       
-       
-
-       
-
-
-
-
diff --git a/bttbl2hfile/Makefile b/bttbl2hfile/Makefile
new file mode 100755 (executable)
index 0000000..e2b2574
--- /dev/null
@@ -0,0 +1,28 @@
+
+# get the type of OS currently running
+OS=$(shell uname)
+
+# check if the OS string contains 'Linux'
+ifneq (,$(findstring Linux, $(OS)))
+# Linux OS...
+APP_EXT=
+CLEAN=rm -f
+else
+# windows OS...
+APP_EXT=.exe
+CLEAN=del
+endif
+
+SRCS = $(wildcard *.c)
+EXES = $(patsubst %.c,%$(APP_EXT),$(SRCS))
+
+.PHONY: all clean
+all: $(EXES)
+
+clean:
+       $(CLEAN) $(EXES)
+
+%$(APP_EXT): %.c
+       $(CC) $(CFLAGS) -o $@ $<
+
+
diff --git a/hfile2array/Makefile b/hfile2array/Makefile
new file mode 100755 (executable)
index 0000000..e2b2574
--- /dev/null
@@ -0,0 +1,28 @@
+
+# get the type of OS currently running
+OS=$(shell uname)
+
+# check if the OS string contains 'Linux'
+ifneq (,$(findstring Linux, $(OS)))
+# Linux OS...
+APP_EXT=
+CLEAN=rm -f
+else
+# windows OS...
+APP_EXT=.exe
+CLEAN=del
+endif
+
+SRCS = $(wildcard *.c)
+EXES = $(patsubst %.c,%$(APP_EXT),$(SRCS))
+
+.PHONY: all clean
+all: $(EXES)
+
+clean:
+       $(CLEAN) $(EXES)
+
+%$(APP_EXT): %.c
+       $(CC) $(CFLAGS) -o $@ $<
+
+