summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 653651c)
raw | patch | inline | side by side (parent: 653651c)
author | Aravind Batni <aravindbr@ti.com> | |
Fri, 19 Aug 2011 22:57:41 +0000 (18:57 -0400) | ||
committer | AravindBatni <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] | patch | blob |
boot_loader/examples/ethernet/simple/makefile | [changed mode: 0644->0755] | patch | blob | history |
bttbl2hfile/Makefile | [new file with mode: 0755] | patch | blob |
hfile2array/Makefile | [new file with mode: 0755] | patch | blob |
diff --git a/boot_loader/examples/ethernet/Utilities/Makefile b/boot_loader/examples/ethernet/Utilities/Makefile
--- /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/boot_loader/examples/ethernet/simple/makefile b/boot_loader/examples/ethernet/simple/makefile
rm simple.btbl
rm simple.le.btbl
rm simple.map
-
-
-
-
-
-
-
-
diff --git a/bttbl2hfile/Makefile b/bttbl2hfile/Makefile
--- /dev/null
+++ b/bttbl2hfile/Makefile
@@ -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
--- /dev/null
+++ b/hfile2array/Makefile
@@ -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 $@ $<
+
+