Changes in uspace/Makefile.common [8bcd727:4fb794c] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/Makefile.common
r8bcd727 r4fb794c 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 … … 110 114 LIBBLOCK_PREFIX = $(LIB_PREFIX)/block 111 115 LIBFS_PREFIX = $(LIB_PREFIX)/fs 112 LIBFB_PREFIX = $(LIB_PREFIX)/fb113 116 LIBCLUI_PREFIX = $(LIB_PREFIX)/clui 114 117 LIBFMTUTIL_PREFIX = $(LIB_PREFIX)/fmtutil 115 118 116 LIBEXT2_PREFIX = $(LIB_PREFIX)/ext2 119 LIBGRAPH_PREFIX = $(LIB_PREFIX)/graph 120 LIBSOFTREND_PREFIX = $(LIB_PREFIX)/softrend 121 LIBDRAW_PREFIX = $(LIB_PREFIX)/draw 122 LIBGUI_PREFIX = $(LIB_PREFIX)/gui 123 124 LIBEXT4_PREFIX = $(LIB_PREFIX)/ext4 117 125 118 126 LIBUSB_PREFIX = $(LIB_PREFIX)/usb … … 128 136 129 137 LIBSCSI_PREFIX = $(LIB_PREFIX)/scsi 138 139 LIBBITHENGE_PREFIX = $(LIB_PREFIX)/bithenge 130 140 131 141 ifeq ($(STATIC_NEEDED),y) … … 174 184 find . -name '*.lo' -follow -exec rm \{\} \; 175 185 176 GCC_CFLAGS = -I$(LIBC_PREFIX)/include-O$(OPTIMIZATION) -imacros $(CONFIG_HEADER) \186 GCC_CFLAGS = $(LIBC_INCLUDES_FLAGS) -O$(OPTIMIZATION) -imacros $(CONFIG_HEADER) \ 177 187 -fexec-charset=UTF-8 -fwide-exec-charset=UTF-32$(ENDIANESS) \ 178 188 -finput-charset=UTF-8 -ffreestanding -fno-builtin -nostdlib -nostdinc \ 179 189 -Wall -Wextra -Wno-clobbered -Wno-unused-parameter -Wmissing-prototypes \ 180 190 -std=gnu99 -Werror-implicit-function-declaration -Wwrite-strings \ 181 -pipe -g -D__$(ENDIANESS)__182 183 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) \ 184 194 -fexec-charset=UTF-8 -fwide-exec-charset=UTF-32$(ENDIANESS) \ 185 195 -finput-charset=UTF-8 -ffreestanding -fno-builtin -nostdlib -nostdinc \ … … 188 198 -pipe -g -D__$(ENDIANESS)__ 189 199 190 CLANG_CFLAGS = -I$(LIBC_PREFIX)/include -O$(OPTIMIZATION) -imacros $(CONFIG_HEADER) \ 191 -fexec-charset=UTF-8 -fwide-exec-charset=UTF-32$(ENDIANESS) \ 192 -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 \ 193 205 -Wall -Wextra -Wno-unused-parameter -Wmissing-prototypes \ 194 206 -Werror-implicit-function-declaration -Wwrite-strings \ 195 -pipe -g -arch $(CLANG_ARCH) -D__$(ENDIANESS)__ 207 -integrated-as \ 208 -pipe -g -target $(CLANG_TARGET) -D__$(ENDIANESS)__ 196 209 197 210 LIB_CFLAGS = $(CFLAGS) -fPIC -D__IN_SHARED_LIBC__ … … 206 219 GCC_CFLAGS += -g 207 220 ICC_CFLAGS += -g 208 SUNCC_CFLAGS += -g209 221 CLANG_CFLAGS += -g 210 222 endif … … 221 233 222 234 ifeq ($(POSIX_COMPAT),y) 223 CFLAGS = -I$(LIBPOSIX_PREFIX) 235 CFLAGS = -I$(LIBPOSIX_PREFIX)/include/posix -I$(LIBPOSIX_PREFIX)/include/ 224 236 LIBS += $(LIBPOSIX_PREFIX)/libposix.a 225 237 endif … … 242 254 ifeq ($(COMPILER),clang) 243 255 CFLAGS += $(CLANG_CFLAGS) $(EXTRA_CFLAGS) 256 GCC_CFLAGS += $(EXTRA_CFLAGS) 244 257 DEPEND_DEFS = $(DEFS) $(CONFIG_DEFS) 245 258 endif … … 294 307 295 308 %.o: %.S $(DEPEND) 296 $( CC) $(DEFS) $(CFLAGS) -D__ASM__ -c $< -o $@309 $(GCC) $(DEFS) $(GCC_CFLAGS) -D__ASM__ -c $< -o $@ 297 310 ifeq ($(PRECHECK),y) 298 311 $(JOBFILE) $(JOB) $< $@ as asm/preproc $(DEFS) $(CFLAGS) -D__ASM__
Note:
See TracChangeset
for help on using the changeset viewer.