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