Fixed checkwps build warnings. Updated checkwps makefile to be closer to main.

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@22593 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Björn Stenberg 2009-09-01 14:53:37 +00:00
parent f81cadad2a
commit ffaf24674d
3 changed files with 28 additions and 21 deletions

View file

@ -121,6 +121,8 @@ int get_cpu_boost_counter(void);
ptr = (typeof(ptr))tmp_ptr1; \
}
#ifndef __PCTOOL__
/* newer? SDL includes endian.h, So we ignore it */
#ifdef SIMULATOR
#undef letoh16
@ -158,6 +160,8 @@ int get_cpu_boost_counter(void);
#define swap_odd_even_le32(x) (x)
#endif
#endif
/* static endianness conversion */
#define SWAP_16(x) ((typeof(x))(unsigned short)(((unsigned short)(x) >> 8) | \
((unsigned short)(x) << 8)))

View file

@ -7,16 +7,17 @@
# $Id$
#
FLAGS=-g -D__PCTOOL__ -DDEBUG -DROCKBOX_DIR_LEN=9 -DWPS_DIR=\".\"
FLAGS=-g -D__PCTOOL__ -DDEBUG -DROCKBOX_DIR_LEN=9 -DWPS_DIR=\".\" $(TARGET)
COMMON = $(ROOTDIR)/apps/gui/skin_engine/wps_debug.c \
SRC = $(ROOTDIR)/apps/gui/skin_engine/wps_debug.c \
$(ROOTDIR)/apps/gui/skin_engine/skin_parser.c \
$(ROOTDIR)/apps/gui/skin_engine/skin_buffer.c \
$(ROOTDIR)/apps/misc.c \
$(ROOTDIR)/apps/recorder/bmp.c \
$(ROOTDIR)/firmware/common/strlcpy.c
$(ROOTDIR)/firmware/common/strlcpy.c \
$(APPSDIR)/checkwps.c
INCLUDE = -I $(ROOTDIR)/apps/gui \
INCLUDES = -I$(ROOTDIR)/apps/gui \
-I$(ROOTDIR)/apps/gui/skin_engine \
-I$(ROOTDIR)/firmware/export \
-I$(ROOTDIR)/apps \
@ -25,10 +26,9 @@ INCLUDE = -I $(ROOTDIR)/apps/gui \
# Makes mkdepfile happy
GCCOPTS+=-D__PCTOOL__
SRC=$(APPSDIR)/checkwps.c $(COMMON)
OTHER_SRC=$(SRC)
ASMDEFS_SRC=$(SRC)
$(BUILDDIR)/$(BINARY): $(APPSDIR)/checkwps.c $(COMMON)
@echo CC $(BINARY)
@$(HOSTCC) $(INCLUDE) $(FLAGS) $(COMMON) $(TARGET) $(APPSDIR)/checkwps.c -o $@
.SECONDEXPANSION: # $$(OBJ) is not populated until after this
$(BUILDDIR)/$(BINARY): $$(OBJ)
@echo LD $(BINARY)
$(SILENT)$(HOSTCC) $(INCLUDE) $(FLAGS) -o $@ $+

View file

@ -54,8 +54,11 @@ all: $(DEPFILE) build
# Subdir makefiles. their primary purpose is to populate SRC, OTHER_SRC &
# ASMDEFS_SRC but they also define special dependencies and compile rules
include $(TOOLSDIR)/tools.make
ifeq (,$(findstring checkwps,$(APPSDIR)))
include $(FIRMDIR)/firmware.make
include $(ROOTDIR)/apps/bitmaps/bitmaps.make
endif
ifneq (,$(findstring bootloader,$(APPSDIR)))
include $(APPSDIR)/bootloader.make