summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xboot_loader/examples/ethernet/Utilities/Makefile28
-rwxr-xr-x[-rw-r--r--]boot_loader/examples/ethernet/simple/makefile8
-rwxr-xr-xbttbl2hfile/Makefile28
-rwxr-xr-xhfile2array/Makefile28
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
3OS=$(shell uname)
4
5# check if the OS string contains 'Linux'
6ifneq (,$(findstring Linux, $(OS)))
7# Linux OS...
8APP_EXT=
9CLEAN=rm -f
10else
11# windows OS...
12APP_EXT=.exe
13CLEAN=del
14endif
15
16SRCS = $(wildcard *.c)
17EXES = $(patsubst %.c,%$(APP_EXT),$(SRCS))
18
19.PHONY: all clean
20all: $(EXES)
21
22clean:
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
3OS=$(shell uname)
4
5# check if the OS string contains 'Linux'
6ifneq (,$(findstring Linux, $(OS)))
7# Linux OS...
8APP_EXT=
9CLEAN=rm -f
10else
11# windows OS...
12APP_EXT=.exe
13CLEAN=del
14endif
15
16SRCS = $(wildcard *.c)
17EXES = $(patsubst %.c,%$(APP_EXT),$(SRCS))
18
19.PHONY: all clean
20all: $(EXES)
21
22clean:
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
3OS=$(shell uname)
4
5# check if the OS string contains 'Linux'
6ifneq (,$(findstring Linux, $(OS)))
7# Linux OS...
8APP_EXT=
9CLEAN=rm -f
10else
11# windows OS...
12APP_EXT=.exe
13CLEAN=del
14endif
15
16SRCS = $(wildcard *.c)
17EXES = $(patsubst %.c,%$(APP_EXT),$(SRCS))
18
19.PHONY: all clean
20all: $(EXES)
21
22clean:
23 $(CLEAN) $(EXES)
24
25%$(APP_EXT): %.c
26 $(CC) $(CFLAGS) -o $@ $<
27
28