blob: ed42c2b6d205082020ddfd7ca7d8421b5785c2af [file] [log] [blame]
Denis Vlasenko7d219aa2006-10-05 10:17:08 +00001# ==========================================================================
Denis Vlasenkoda8f43f2006-10-09 19:47:38 +00002# Build system
Denis Vlasenko7d219aa2006-10-05 10:17:08 +00003# ==========================================================================
4
5BB_VER = $(VERSION).$(PATCHLEVEL).$(SUBLEVEL)$(EXTRAVERSION)
6
Denis Vlasenko7039a662006-10-08 17:54:47 +00007CPPFLAGS += \
8 -Iinclude -Ilibbb \
9 $(if $(KBUILD_SRC),-Iinclude2 -I$(srctree)/include) -I$(srctree)/libbb \
10 -include include/autoconf.h \
11 -D_GNU_SOURCE -DNDEBUG \
12 $(if $(CONFIG_LFS),-D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64) \
13 -D"BB_VER=KBUILD_STR($(BB_VER))" -DBB_BT=AUTOCONF_TIMESTAMP \
Denis Vlasenkoa7189f02006-11-17 20:29:00 +000014 -Wall -Wstrict-prototypes -Wshadow -Werror -Wundef \
Denis Vlasenko7039a662006-10-08 17:54:47 +000015 -funsigned-char -fno-builtin-strlen -finline-limit=0 -static-libgcc \
Denis Vlasenko1db39b22006-10-11 20:59:02 +000016 -Os -falign-functions=1 -falign-jumps=1 -falign-loops=1 \
Bernhard Reutner-Fischerdd298282006-10-20 12:21:17 +000017 -fomit-frame-pointer -ffunction-sections -fdata-sections