diff options
author | Aravind Batni | 2011-08-19 17:57:41 -0500 |
---|---|---|
committer | AravindBatni | 2011-08-19 20:20:10 -0500 |
commit | 6e060535e975c4e0e39acc0fbda272a1f954d464 (patch) | |
tree | 81ff1591c2e31e1d250c84192ef0e0983ed1a600 | |
parent | 653651c68f094bf9b7013f44a90fe018d281f1b2 (diff) | |
download | mcsdk-tools-6e060535e975c4e0e39acc0fbda272a1f954d464.tar.gz mcsdk-tools-6e060535e975c4e0e39acc0fbda272a1f954d464.tar.xz mcsdk-tools-6e060535e975c4e0e39acc0fbda272a1f954d464.zip |
updated makefiles
-rwxr-xr-x | boot_loader/examples/ethernet/Utilities/Makefile | 28 | ||||
-rwxr-xr-x[-rw-r--r--] | boot_loader/examples/ethernet/simple/makefile | 8 | ||||
-rwxr-xr-x | bttbl2hfile/Makefile | 28 | ||||
-rwxr-xr-x | hfile2array/Makefile | 28 |
4 files changed, 84 insertions, 8 deletions
diff --git a/boot_loader/examples/ethernet/Utilities/Makefile b/boot_loader/examples/ethernet/Utilities/Makefile new file mode 100755 index 0000000..e2b2574 --- /dev/null +++ b/boot_loader/examples/ethernet/Utilities/Makefile | |||
@@ -0,0 +1,28 @@ | |||
1 | |||
2 | # get the type of OS currently running | ||
3 | OS=$(shell uname) | ||
4 | |||
5 | # check if the OS string contains 'Linux' | ||
6 | ifneq (,$(findstring Linux, $(OS))) | ||
7 | # Linux OS... | ||
8 | APP_EXT= | ||
9 | CLEAN=rm -f | ||
10 | else | ||
11 | # windows OS... | ||
12 | APP_EXT=.exe | ||
13 | CLEAN=del | ||
14 | endif | ||
15 | |||
16 | SRCS = $(wildcard *.c) | ||
17 | EXES = $(patsubst %.c,%$(APP_EXT),$(SRCS)) | ||
18 | |||
19 | .PHONY: all clean | ||
20 | all: $(EXES) | ||
21 | |||
22 | clean: | ||
23 | $(CLEAN) $(EXES) | ||
24 | |||
25 | %$(APP_EXT): %.c | ||
26 | $(CC) $(CFLAGS) -o $@ $< | ||
27 | |||
28 | |||
diff --git a/boot_loader/examples/ethernet/simple/makefile b/boot_loader/examples/ethernet/simple/makefile index 949de97..0ed52b5 100644..100755 --- a/boot_loader/examples/ethernet/simple/makefile +++ b/boot_loader/examples/ethernet/simple/makefile | |||
@@ -35,11 +35,3 @@ clean: | |||
35 | rm simple.btbl | 35 | rm simple.btbl |
36 | rm simple.le.btbl | 36 | rm simple.le.btbl |
37 | rm simple.map | 37 | rm simple.map |
38 | |||
39 | |||
40 | |||
41 | |||
42 | |||
43 | |||
44 | |||
45 | |||
diff --git a/bttbl2hfile/Makefile b/bttbl2hfile/Makefile new file mode 100755 index 0000000..e2b2574 --- /dev/null +++ b/bttbl2hfile/Makefile | |||
@@ -0,0 +1,28 @@ | |||
1 | |||
2 | # get the type of OS currently running | ||
3 | OS=$(shell uname) | ||
4 | |||
5 | # check if the OS string contains 'Linux' | ||
6 | ifneq (,$(findstring Linux, $(OS))) | ||
7 | # Linux OS... | ||
8 | APP_EXT= | ||
9 | CLEAN=rm -f | ||
10 | else | ||
11 | # windows OS... | ||
12 | APP_EXT=.exe | ||
13 | CLEAN=del | ||
14 | endif | ||
15 | |||
16 | SRCS = $(wildcard *.c) | ||
17 | EXES = $(patsubst %.c,%$(APP_EXT),$(SRCS)) | ||
18 | |||
19 | .PHONY: all clean | ||
20 | all: $(EXES) | ||
21 | |||
22 | clean: | ||
23 | $(CLEAN) $(EXES) | ||
24 | |||
25 | %$(APP_EXT): %.c | ||
26 | $(CC) $(CFLAGS) -o $@ $< | ||
27 | |||
28 | |||
diff --git a/hfile2array/Makefile b/hfile2array/Makefile new file mode 100755 index 0000000..e2b2574 --- /dev/null +++ b/hfile2array/Makefile | |||
@@ -0,0 +1,28 @@ | |||
1 | |||
2 | # get the type of OS currently running | ||
3 | OS=$(shell uname) | ||
4 | |||
5 | # check if the OS string contains 'Linux' | ||
6 | ifneq (,$(findstring Linux, $(OS))) | ||
7 | # Linux OS... | ||
8 | APP_EXT= | ||
9 | CLEAN=rm -f | ||
10 | else | ||
11 | # windows OS... | ||
12 | APP_EXT=.exe | ||
13 | CLEAN=del | ||
14 | endif | ||
15 | |||
16 | SRCS = $(wildcard *.c) | ||
17 | EXES = $(patsubst %.c,%$(APP_EXT),$(SRCS)) | ||
18 | |||
19 | .PHONY: all clean | ||
20 | all: $(EXES) | ||
21 | |||
22 | clean: | ||
23 | $(CLEAN) $(EXES) | ||
24 | |||
25 | %$(APP_EXT): %.c | ||
26 | $(CC) $(CFLAGS) -o $@ $< | ||
27 | |||
28 | |||