Changes in uspace/Makefile.common [17d214e:9234566] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/Makefile.common
r17d214e r9234566 103 103 104 104 LIBC_PREFIX = $(LIB_PREFIX)/c 105 LIBC_INCLUDES_FLAGS = \106 -I$(LIBC_PREFIX)/include \107 -I$(LIBC_PREFIX)/arch/$(UARCH)/include \108 -I$(ROOT_PATH)/abi/include109 105 LIBSOFTFLOAT_PREFIX = $(LIB_PREFIX)/softfloat 110 106 LIBSOFTINT_PREFIX = $(LIB_PREFIX)/softint … … 171 167 OPTIMIZATION = s 172 168 else 173 OPTIMIZATION = 0169 OPTIMIZATION = 3 174 170 endif 175 171 … … 184 180 find . -name '*.lo' -follow -exec rm \{\} \; 185 181 186 GCC_CFLAGS = $(LIBC_INCLUDES_FLAGS)-O$(OPTIMIZATION) -imacros $(CONFIG_HEADER) \182 GCC_CFLAGS = -I$(LIBC_PREFIX)/include -O$(OPTIMIZATION) -imacros $(CONFIG_HEADER) \ 187 183 -fexec-charset=UTF-8 -fwide-exec-charset=UTF-32$(ENDIANESS) \ 188 184 -finput-charset=UTF-8 -ffreestanding -fno-builtin -nostdlib -nostdinc \ 189 185 -Wall -Wextra -Wno-clobbered -Wno-unused-parameter -Wmissing-prototypes \ 190 186 -std=gnu99 -Werror-implicit-function-declaration -Wwrite-strings \ 191 -pipe -g gdb-D__$(ENDIANESS)__192 193 ICC_CFLAGS = $(LIBC_INCLUDES_FLAGS)-O$(OPTIMIZATION) -imacros $(CONFIG_HEADER) \187 -pipe -g -D__$(ENDIANESS)__ 188 189 ICC_CFLAGS = -I$(LIBC_PREFIX)/include -O$(OPTIMIZATION) -imacros $(CONFIG_HEADER) \ 194 190 -fexec-charset=UTF-8 -fwide-exec-charset=UTF-32$(ENDIANESS) \ 195 191 -finput-charset=UTF-8 -ffreestanding -fno-builtin -nostdlib -nostdinc \ … … 198 194 -pipe -g -D__$(ENDIANESS)__ 199 195 200 # clang does not support following options but I am not sure whether 201 # something won't break because of that: 202 # -fexec-charset=UTF-8 -fwide-exec-charset=UTF-32$(ENDIANESS) -finput-charset=UTF-8 203 CLANG_CFLAGS = $(LIBC_INCLUDES_FLAGS) -O$(OPTIMIZATION) -imacros $(CONFIG_HEADER) \ 204 -ffreestanding -fno-builtin -nostdlib -nostdinc \ 196 CLANG_CFLAGS = -I$(LIBC_PREFIX)/include -O$(OPTIMIZATION) -imacros $(CONFIG_HEADER) \ 197 -fexec-charset=UTF-8 -fwide-exec-charset=UTF-32$(ENDIANESS) \ 198 -finput-charset=UTF-8 -ffreestanding -fno-builtin -nostdlib -nostdinc \ 205 199 -Wall -Wextra -Wno-unused-parameter -Wmissing-prototypes \ 206 200 -Werror-implicit-function-declaration -Wwrite-strings \ 207 -integrated-as \ 208 -pipe -g -target $(CLANG_TARGET) -D__$(ENDIANESS)__ 201 -pipe -g -arch $(CLANG_ARCH) -D__$(ENDIANESS)__ 209 202 210 203 LIB_CFLAGS = $(CFLAGS) -fPIC -D__IN_SHARED_LIBC__ … … 254 247 ifeq ($(COMPILER),clang) 255 248 CFLAGS += $(CLANG_CFLAGS) $(EXTRA_CFLAGS) 256 GCC_CFLAGS += $(EXTRA_CFLAGS)257 249 DEPEND_DEFS = $(DEFS) $(CONFIG_DEFS) 258 250 endif … … 307 299 308 300 %.o: %.S $(DEPEND) 309 $( GCC) $(DEFS) $(GCC_CFLAGS) -D__ASM__ -c $< -o $@301 $(CC) $(DEFS) $(CFLAGS) -D__ASM__ -c $< -o $@ 310 302 ifeq ($(PRECHECK),y) 311 303 $(JOBFILE) $(JOB) $< $@ as asm/preproc $(DEFS) $(CFLAGS) -D__ASM__
Note:
See TracChangeset
for help on using the changeset viewer.