Subversion Repositories Projects

Compare Revisions

Ignore whitespace Rev 8 → Rev 9

/rules/mkEnv-gcc.mk
6,6 → 6,30
#
###########################################################################
 
ifeq ($(MK_LIB_PREFIX),)
MK_LIB_PREFIX = lib
endif
 
ifeq ($(MK_LIB_EXT),)
MK_LIB_EXT = .a
endif
 
ifeq ($(MK_OBJ_EXT),)
MK_OBJ_EXT = .o
endif
 
ifeq ($(MK_BIN_EXT),)
MK_BIN_EXT = .bin
endif
 
ifeq ($(MK_ELF_EXT),)
MK_ELF_EXT = .elf
endif
 
ifeq ($(MK_HEX_EXT),)
MK_HEX_EXT = .hex
endif
 
AR = $(MK_CROSS_COMPILE)ar
CC = $(MK_CROSS_COMPILE)gcc
CXX = $(MK_CROSS_COMPILE)g++
13,7 → 37,22
OBJDUMP = $(MK_CROSS_COMPILE)objdump
SIZE = $(MK_CROSS_COMPILE)size
CFLAGS += -Wall
CFLAGS += \
-std=gnu99 \
-Wall \
-Wimplicit \
-Wpointer-arith \
-Wswitch \
-Wredundant-decls \
-Wreturn-type \
-Wshadow \
-Wunused \
-Wcast-qual \
-Wnested-externs \
-Wmissing-prototypes \
-Wstrict-prototypes \
-Wmissing-declarations
 
LDFLAGS += -Wl,-Map,$(basename $@).map
 
DEP_OUTPUT_OPTION = -MMD -MF $(@:.o=.d)