2008-03-26 20:19:39 +00:00
|
|
|
# __________ __ ___.
|
|
|
|
# Open \______ \ ____ ____ | | _\_ |__ _______ ___
|
|
|
|
# Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
|
|
|
|
# Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
|
|
|
|
# Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
|
|
|
|
# \/ \/ \/ \/ \/
|
2008-03-26 20:20:39 +00:00
|
|
|
# $Id$
|
2008-03-26 20:19:39 +00:00
|
|
|
#
|
|
|
|
|
2008-03-26 23:35:34 +00:00
|
|
|
ROOT=../..
|
2008-03-26 20:19:39 +00:00
|
|
|
|
2008-05-12 18:30:18 +00:00
|
|
|
ifeq ($(findstring CYGWIN,$(shell uname)),CYGWIN)
|
|
|
|
CFLAGS+=-mno-cygwin
|
2008-05-12 20:31:50 +00:00
|
|
|
EXT = .exe
|
2008-05-12 18:30:18 +00:00
|
|
|
else
|
|
|
|
ifeq ($(findstring MINGW,$(shell uname)),MINGW)
|
|
|
|
EXT = .exe
|
|
|
|
CC = mingw32-gcc
|
|
|
|
endif
|
|
|
|
endif
|
|
|
|
|
2008-03-26 23:35:34 +00:00
|
|
|
COMMON=$(ROOT)/apps/gui/wps_parser.c \
|
|
|
|
$(ROOT)/apps/gui/wps_debug.c \
|
|
|
|
$(ROOT)/apps/misc.c \
|
|
|
|
$(ROOT)/apps/recorder/bmp.c
|
|
|
|
|
|
|
|
INCLUDE=-I $(ROOT)/apps/gui \
|
|
|
|
-I $(ROOT)/firmware/export \
|
|
|
|
-I $(ROOT)/apps \
|
|
|
|
-I .
|
|
|
|
|
|
|
|
CFLAGS = -g -D__PCTOOL__ -DDEBUG -DROCKBOX_DIR_LEN=9 -DWPS_DIR=\".\"
|
|
|
|
|
2008-03-27 00:00:53 +00:00
|
|
|
all:
|
|
|
|
@echo To build, run the buildall.sh script
|
2008-03-26 23:35:34 +00:00
|
|
|
|
2008-05-12 18:30:18 +00:00
|
|
|
checkwps: checkwps.c $(COMMON)
|
2008-03-26 23:35:34 +00:00
|
|
|
@echo CC [$(TARGET)]
|
2008-05-12 18:30:18 +00:00
|
|
|
@$(CC) $(INCLUDE) $(CFLAGS) $(COMMON) -D$(TARGET) checkwps.c -o $@.$(MODEL)$(EXT)
|
2008-03-26 20:19:39 +00:00
|
|
|
|
|
|
|
clean:
|
2008-05-12 18:30:18 +00:00
|
|
|
rm -f checkwps.$(MODEL)$(EXT)
|