]> Gitweb @ Texas Instruments - Open Source Git Repositories - git.TI.com/gitweb - keystone-rtos/mcsdk-tools.git/blob - bttbl2hfile/Makefile
Merge branch 'master' of gtgit01.gt.design.ti.com:git/projects/mcsdk-tools
[keystone-rtos/mcsdk-tools.git] / bttbl2hfile / Makefile
2 # get the type of OS currently running
3 OS=$(shell uname)
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
16 SRCS = $(wildcard *.c)
17 EXES = $(patsubst %.c,%$(APP_EXT),$(SRCS))
19 .PHONY: all clean
20 all: $(EXES)
22 clean:
23         $(CLEAN) $(EXES)
25 %$(APP_EXT): %.c
26         $(CC) $(CFLAGS) -o $@ $<