Changes in uspace/Makefile.common [2989c7e:1dcc0b9] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/Makefile.common
r2989c7e r1dcc0b9 120 120 LIBPOSIX_PREFIX = $(LIB_PREFIX)/posix 121 121 122 LIBCRYPTO_PREFIX = $(LIB_PREFIX)/crypto 122 123 LIBBLOCK_PREFIX = $(LIB_PREFIX)/block 123 124 LIBFS_PREFIX = $(LIB_PREFIX)/fs … … 141 142 LIBHOUND_PREFIX = $(LIB_PREFIX)/hound 142 143 LIBPCM_PREFIX = $(LIB_PREFIX)/pcm 144 LIBNET_PREFIX = $(LIB_PREFIX)/net 143 145 LIBNIC_PREFIX = $(LIB_PREFIX)/nic 146 LIBIEEE80211_PREFIX = $(LIB_PREFIX)/ieee80211 144 147 LIBMINIX_PREFIX = $(LIB_PREFIX)/minix 145 148 LIBCOMPRESS_PREFIX = $(LIB_PREFIX)/compress … … 155 158 LIBMBR_PREFIX = $(LIB_PREFIX)/mbr 156 159 LIBGPT_PREFIX = $(LIB_PREFIX)/gpt 157 LIBNETTL_PREFIX = $(LIB_PREFIX)/nettl158 160 159 161 LIBURCU_PREFIX = $(LIB_PREFIX)/urcu … … 201 203 202 204 ifeq ($(CONFIG_OPTIMIZE_FOR_SIZE),y) 203 OPTIMIZATION = 0204 else 205 OPTIMIZATION = 0205 OPTIMIZATION = s 206 else 207 OPTIMIZATION = 3 206 208 endif 207 209 … … 247 249 # something won't break because of that: 248 250 # -fexec-charset=UTF-8 -fwide-exec-charset=UTF-32$(ENDIANESS) -finput-charset=UTF-8 249 CLANG_CFLAGS = $( INCLUDES_FLAGS) -O$(OPTIMIZATION) -imacros $(CONFIG_HEADER) \251 CLANG_CFLAGS = $(LIBC_INCLUDES_FLAGS) -O$(OPTIMIZATION) -imacros $(CONFIG_HEADER) \ 250 252 -ffreestanding -fno-builtin -nostdlib -nostdinc \ 251 253 -Wall -Wextra -Wno-unused-parameter -Wmissing-prototypes \ 252 -std=gnu99 -Werror-implicit-function-declaration -Wwrite-strings \ 253 -integrated-as -pipe -g -target $(CLANG_TARGET) -D__$(ENDIANESS)__ 254 -Werror-implicit-function-declaration -Wwrite-strings \ 255 -integrated-as \ 256 -pipe -g -target $(CLANG_TARGET) -D__$(ENDIANESS)__ 254 257 255 258 LIB_CFLAGS = $(CFLAGS) -fPIC -D__IN_SHARED_LIBC__ … … 262 265 263 266 ifeq ($(CONFIG_LINE_DEBUG),y) 264 GCC_CFLAGS += -g gdb267 GCC_CFLAGS += -g 265 268 ICC_CFLAGS += -g 266 269 CLANG_CFLAGS += -g … … 289 292 290 293 ifeq ($(COMPILER),gcc_cross) 291 CFLAGS += $(GCC_CFLAGS) 294 CFLAGS += $(GCC_CFLAGS) $(EXTRA_CFLAGS) 292 295 DEPEND_DEFS = $(DEFS) $(CONFIG_DEFS) 293 296 endif 294 297 295 298 ifeq ($(COMPILER),gcc_helenos) 296 CFLAGS += $(GCC_CFLAGS) 299 CFLAGS += $(GCC_CFLAGS) $(EXTRA_CFLAGS) 297 300 DEPEND_DEFS = $(DEFS) $(CONFIG_DEFS) 298 301 endif 299 302 300 303 ifeq ($(COMPILER),gcc_native) 301 CFLAGS += $(GCC_CFLAGS) 304 CFLAGS += $(GCC_CFLAGS) $(EXTRA_CFLAGS) 302 305 DEPEND_DEFS = $(DEFS) $(CONFIG_DEFS) 303 306 endif 304 307 305 308 ifeq ($(COMPILER),icc) 306 CFLAGS += $(ICC_CFLAGS) 309 CFLAGS += $(ICC_CFLAGS) $(EXTRA_CFLAGS) 307 310 DEPEND_DEFS = $(DEFS) $(CONFIG_DEFS) 308 311 endif 309 312 310 313 ifeq ($(COMPILER),clang) 311 CFLAGS += $(CLANG_CFLAGS) 314 CFLAGS += $(CLANG_CFLAGS) $(EXTRA_CFLAGS) 315 GCC_CFLAGS += $(EXTRA_CFLAGS) 312 316 DEPEND_DEFS = $(DEFS) $(CONFIG_DEFS) 313 317 endif … … 371 375 372 376 %.o: %.S $(DEPEND) 373 $(GCC) $(DEFS) $(GCC_CFLAGS) $(EXTRA_CFLAGS)-D__ASM__ -c $< -o $@374 ifeq ($(PRECHECK),y) 375 $(JOBFILE) $(JOB) $< $@ as asm/preproc $(DEFS) $(CFLAGS) $(EXTRA_CFLAGS)-D__ASM__377 $(GCC) $(DEFS) $(GCC_CFLAGS) -D__ASM__ -c $< -o $@ 378 ifeq ($(PRECHECK),y) 379 $(JOBFILE) $(JOB) $< $@ as asm/preproc $(DEFS) $(CFLAGS) -D__ASM__ 376 380 endif 377 381 … … 383 387 384 388 %.o: %.c $(DEPEND) 385 $(CC) $(DEFS) $(CFLAGS) $(EXTRA_CFLAGS)-c $< -o $@386 ifeq ($(PRECHECK),y) 387 $(JOBFILE) $(JOB) $< $@ cc core $(DEFS) $(CFLAGS) $(EXTRA_CFLAGS)389 $(CC) $(DEFS) $(CFLAGS) -c $< -o $@ 390 ifeq ($(PRECHECK),y) 391 $(JOBFILE) $(JOB) $< $@ cc core $(DEFS) $(CFLAGS) 388 392 endif 389 393 390 394 %.test.o: %.c $(DEPEND) 391 $(CC) $(DEFS) $(CFLAGS) $( EXTRA_CFLAGS) $(TEST_CFLAGS) -c $< -o $@392 ifeq ($(PRECHECK),y) 393 $(JOBFILE) $(JOB) $< $@ cc core $(DEFS) $(CFLAGS) $(EXTRA_CFLAGS) $(TEST_CFLAGS)395 $(CC) $(DEFS) $(CFLAGS) $(TEST_CFLAGS) -c $< -o $@ 396 ifeq ($(PRECHECK),y) 397 $(JOBFILE) $(JOB) $< $@ cc core $(DEFS) $(CFLAGS) 394 398 endif 395 399 396 400 %.lo: %.S $(DEPEND) 397 $(CC) $(DEFS) $(LIB_CFLAGS) $(EXTRA_CFLAGS)-D__ASM__ -c $< -o $@398 ifeq ($(PRECHECK),y) 399 $(JOBFILE) $(JOB) $< $@ as asm/preproc $(DEFS) $( LIB_CFLAGS) $(EXTRA_CFLAGS) -D__ASM__401 $(CC) $(DEFS) $(LIB_CFLAGS) -D__ASM__ -c $< -o $@ 402 ifeq ($(PRECHECK),y) 403 $(JOBFILE) $(JOB) $< $@ as asm/preproc $(DEFS) $(CFLAGS) -D__ASM__ 400 404 endif 401 405 … … 407 411 408 412 %.lo: %.c $(DEPEND) 409 $(CC) $(DEFS) $(LIB_CFLAGS) $(EXTRA_CFLAGS)-c $< -o $@410 ifeq ($(PRECHECK),y) 411 $(JOBFILE) $(JOB) $< $@ cc core $(DEFS) $( LIB_CFLAGS) $(EXTRA_CFLAGS)413 $(CC) $(DEFS) $(LIB_CFLAGS) -c $< -o $@ 414 ifeq ($(PRECHECK),y) 415 $(JOBFILE) $(JOB) $< $@ cc core $(DEFS) $(CFLAGS) 412 416 endif 413 417 414 418 $(DEPEND): $(PRE_DEPEND) 415 makedepend -f - -- $(DEPEND_DEFS) $(CFLAGS) $(EXTRA_CFLAGS)-- $(SOURCES) $(TEST_SOURCES) > $@ 2> /dev/null419 makedepend -f - -- $(DEPEND_DEFS) $(CFLAGS) -- $(SOURCES) $(TEST_SOURCES) > $@ 2> /dev/null 416 420 -[ -f $(DEPEND_PREV) ] && diff -q $(DEPEND_PREV) $@ && mv -f $(DEPEND_PREV) $@ 417 421
Note:
See TracChangeset
for help on using the changeset viewer.