extend Makefile to allow building checkwps on cygwin and MinGW. Make make call a bit easier -- no need to pass the model twice.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@17477 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
d03d4f36f3
commit
c9a11d534d
2 changed files with 14 additions and 4 deletions
|
@ -9,6 +9,16 @@
|
|||
|
||||
ROOT=../..
|
||||
|
||||
ifeq ($(findstring CYGWIN,$(shell uname)),CYGWIN)
|
||||
CFLAGS+=-mno-cygwin
|
||||
ext = .exe
|
||||
else
|
||||
ifeq ($(findstring MINGW,$(shell uname)),MINGW)
|
||||
EXT = .exe
|
||||
CC = mingw32-gcc
|
||||
endif
|
||||
endif
|
||||
|
||||
COMMON=$(ROOT)/apps/gui/wps_parser.c \
|
||||
$(ROOT)/apps/gui/wps_debug.c \
|
||||
$(ROOT)/apps/misc.c \
|
||||
|
@ -24,9 +34,9 @@ CFLAGS = -g -D__PCTOOL__ -DDEBUG -DROCKBOX_DIR_LEN=9 -DWPS_DIR=\".\"
|
|||
all:
|
||||
@echo To build, run the buildall.sh script
|
||||
|
||||
checkwps.$(MODEL): checkwps.c $(COMMON)
|
||||
checkwps: checkwps.c $(COMMON)
|
||||
@echo CC [$(TARGET)]
|
||||
@$(CC) $(INCLUDE) $(CFLAGS) $(COMMON) -D$(TARGET) checkwps.c -o $@
|
||||
@$(CC) $(INCLUDE) $(CFLAGS) $(COMMON) -D$(TARGET) checkwps.c -o $@.$(MODEL)$(EXT)
|
||||
|
||||
clean:
|
||||
rm -f checkwps.$(MODEL)
|
||||
rm -f checkwps.$(MODEL)$(EXT)
|
||||
|
|
|
@ -3,6 +3,6 @@ cat targets.txt | (
|
|||
while read target model
|
||||
do
|
||||
rm -f checkwps.$model
|
||||
make MODEL=$model TARGET=$target checkwps.$model
|
||||
make MODEL=$model TARGET=$target checkwps
|
||||
done
|
||||
)
|
||||
|
|
Loading…
Reference in a new issue