|
|||
Prex Home / Browse Source - Prex Version: 0.9.0 |
|||
root/mk/gcc.mk/* [<][>][^][v][top][bottom][index][help] */# gcc specifc flags ifndef _GCC_MK_ _GCC_MK_:= 1 OUTPUT_OPTION= -o $@ DEFINES= $(addprefix -D,$(DEFS)) CFLAGS+= -c -Os -ansi -pedantic -Wall -Wundef -Wstrict-prototypes \ -Wpointer-arith -nostdinc -fno-strict-aliasing $(GCCFLAGS) CPPFLAGS+= $(DEFINES) -I. $(addprefix -I,$(INCSDIR)) ACPPFLAGS+= -D__ASSEMBLY__ LDFLAGS+= -static -nostdlib $(addprefix -L,$(LIBSDIR)) ifeq ($(_DEBUG_),1) CFLAGS+= -fno-omit-frame-pointer -g else CFLAGS+= -fomit-frame-pointer endif ifeq ($(_KERNEL_),1) CFLAGS+= -fno-builtin endif ifeq ($(_STRICT_),1) CFLAGS+= -Werror endif ifdef LDSCRIPT LDFLAGS+= -T $(LDSCRIPT) endif ifdef MAP LDFLAGS+= -Map $(MAP) endif ifeq ($(_RELOC_OBJ_),1) LDFLAGS_S:= $(LDFLAGS) --error-unresolved-symbols LDFLAGS+= -r -d endif ifndef LIBGCC_PATH LIBGCC_PATH := $(dir $(shell $(RAWCC) -print-libgcc-file-name)) export LIBGCC_PATH endif PLATFORM_LIBS+= -L$(LIBGCC_PATH) -lgcc endif # !_GCC_MK_ /* [<][>][^][v][top][bottom][index][help] */ | |||
Copyright© 2005-2009 Kohsuke Ohtani |