summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAravind Batni2011-08-19 17:57:41 -0500
committerAravindBatni2011-08-19 20:20:10 -0500
commit6e060535e975c4e0e39acc0fbda272a1f954d464 (patch)
tree81ff1591c2e31e1d250c84192ef0e0983ed1a600 /hfile2array/Makefile
parent653651c68f094bf9b7013f44a90fe018d281f1b2 (diff)
downloadmcsdk-tools-6e060535e975c4e0e39acc0fbda272a1f954d464.tar.gz
mcsdk-tools-6e060535e975c4e0e39acc0fbda272a1f954d464.tar.xz
mcsdk-tools-6e060535e975c4e0e39acc0fbda272a1f954d464.zip
updated makefiles
Diffstat (limited to 'hfile2array/Makefile')
-rwxr-xr-xhfile2array/Makefile28
1 files changed, 28 insertions, 0 deletions
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