Changeset db71e2a in mainline for uspace/Makefile.common
- Timestamp:
- 2013-07-24T17:42:25Z (13 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/fix-logger-deadlock, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 69b264a9
- Parents:
- 52f1882 (diff), cffa14e6 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)links above to see all the changes relative to each parent. - File:
-
- 1 edited
-
uspace/Makefile.common (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
-
uspace/Makefile.common
r52f1882 rdb71e2a 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/include 105 109 LIBSOFTFLOAT_PREFIX = $(LIB_PREFIX)/softfloat 106 110 LIBSOFTINT_PREFIX = $(LIB_PREFIX)/softint … … 180 184 find . -name '*.lo' -follow -exec rm \{\} \; 181 185 182 GCC_CFLAGS = -I$(LIBC_PREFIX)/include-O$(OPTIMIZATION) -imacros $(CONFIG_HEADER) \186 GCC_CFLAGS = $(LIBC_INCLUDES_FLAGS) -O$(OPTIMIZATION) -imacros $(CONFIG_HEADER) \ 183 187 -fexec-charset=UTF-8 -fwide-exec-charset=UTF-32$(ENDIANESS) \ 184 188 -finput-charset=UTF-8 -ffreestanding -fno-builtin -nostdlib -nostdinc \ 185 189 -Wall -Wextra -Wno-clobbered -Wno-unused-parameter -Wmissing-prototypes \ 186 190 -std=gnu99 -Werror-implicit-function-declaration -Wwrite-strings \ 187 -pipe -g -D__$(ENDIANESS)__188 189 ICC_CFLAGS = -I$(LIBC_PREFIX)/include-O$(OPTIMIZATION) -imacros $(CONFIG_HEADER) \191 -pipe -ggdb -D__$(ENDIANESS)__ 192 193 ICC_CFLAGS = $(LIBC_INCLUDES_FLAGS) -O$(OPTIMIZATION) -imacros $(CONFIG_HEADER) \ 190 194 -fexec-charset=UTF-8 -fwide-exec-charset=UTF-32$(ENDIANESS) \ 191 195 -finput-charset=UTF-8 -ffreestanding -fno-builtin -nostdlib -nostdinc \ … … 194 198 -pipe -g -D__$(ENDIANESS)__ 195 199 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 \ 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 \ 199 205 -Wall -Wextra -Wno-unused-parameter -Wmissing-prototypes \ 200 206 -Werror-implicit-function-declaration -Wwrite-strings \ 201 -pipe -g -arch $(CLANG_ARCH) -D__$(ENDIANESS)__ 207 -integrated-as \ 208 -pipe -g -target $(CLANG_TARGET) -D__$(ENDIANESS)__ 202 209 203 210 LIB_CFLAGS = $(CFLAGS) -fPIC -D__IN_SHARED_LIBC__ … … 215 222 endif 216 223 217 ## Setup platform configuration 218 # 219 220 -include $(LIBC_PREFIX)/arch/$(UARCH)/Makefile.common 221 222 ## Compilation options 223 # 224 225 JOBFILE = $(LIBC_PREFIX)/../../../tools/jobfile.py 226 224 # Prepare for POSIX before including platform specific stuff 227 225 ifeq ($(POSIX_COMPAT),y) 228 226 CFLAGS = -I$(LIBPOSIX_PREFIX)/include/posix -I$(LIBPOSIX_PREFIX)/include/ 229 LIBS += $(LIBPOSIX_PREFIX)/libposix.a 230 endif 227 BASE_LIBS = $(LIBPOSIX_PREFIX)/libposixaslibc.a $(LIBPOSIX_PREFIX)/libc4posix.a $(LIBSOFTINT_PREFIX)/libsoftint.a 228 endif 229 230 ## Setup platform configuration 231 # 232 233 -include $(LIBC_PREFIX)/arch/$(UARCH)/Makefile.common 234 235 ## Compilation options 236 # 237 238 JOBFILE = $(LIBC_PREFIX)/../../../tools/jobfile.py 231 239 232 240 ifeq ($(COMPILER),gcc_cross) … … 247 255 ifeq ($(COMPILER),clang) 248 256 CFLAGS += $(CLANG_CFLAGS) $(EXTRA_CFLAGS) 257 GCC_CFLAGS += $(EXTRA_CFLAGS) 249 258 DEPEND_DEFS = $(DEFS) $(CONFIG_DEFS) 250 259 endif … … 299 308 300 309 %.o: %.S $(DEPEND) 301 $( CC) $(DEFS) $(CFLAGS) -D__ASM__ -c $< -o $@310 $(GCC) $(DEFS) $(GCC_CFLAGS) -D__ASM__ -c $< -o $@ 302 311 ifeq ($(PRECHECK),y) 303 312 $(JOBFILE) $(JOB) $< $@ as asm/preproc $(DEFS) $(CFLAGS) -D__ASM__
Note:
See TracChangeset
for help on using the changeset viewer.
