Changes in uspace/Makefile.common [f63a591d:1cb092d] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/Makefile.common
rf63a591d r1cb092d 88 88 LIBPCI_PREFIX = $(LIB_PREFIX)/pci 89 89 90 LIB PACKET_PREFIX = $(LIB_PREFIX)/packet90 LIBSOCKET_PREFIX = $(LIB_PREFIX)/socket 91 91 LIBNET_PREFIX = $(LIB_PREFIX)/net 92 92 … … 94 94 95 95 LINKER_SCRIPT ?= $(LIBC_PREFIX)/arch/$(UARCH)/_link.ld 96 97 ifeq ($(CONFIG_OPTIMIZE_FOR_SIZE),y)98 OPTIMIZATION = s99 else100 OPTIMIZATION = 3101 endif102 96 103 97 .PHONY: all clean … … 109 103 rm -f $(DEPEND) $(DEPEND_PREV) $(JOB) $(OUTPUT) $(EXTRA_OUTPUT) $(EXTRA_CLEAN) 110 104 find . -name '*.o' -follow -exec rm \{\} \; 105 106 ifeq ($(CONFIG_OPTIMIZE_FOR_SIZE),y) 107 OPTIMIZATION = s 108 else 109 OPTIMIZATION = 3 110 endif 111 111 112 112 GCC_CFLAGS = -I$(LIBC_PREFIX)/include -O$(OPTIMIZATION) -imacros $(CONFIG_HEADER) \ … … 115 115 -Wall -Wextra -Wno-clobbered -Wno-unused-parameter -Wmissing-prototypes \ 116 116 -Werror-implicit-function-declaration -Wwrite-strings \ 117 - pipe -g -D__$(ENDIANESS)__117 -Werror -pipe -g -D__$(ENDIANESS)__ 118 118 119 119 ICC_CFLAGS = -I$(LIBC_PREFIX)/include -O$(OPTIMIZATION) -imacros $(CONFIG_HEADER) \ … … 122 122 -Wall -Wextra -Wno-clobbered -Wno-unused-parameter -Wmissing-prototypes \ 123 123 -Werror-implicit-function-declaration -Wwrite-strings \ 124 - pipe -g -D__$(ENDIANESS)__124 -Werror -pipe -g -D__$(ENDIANESS)__ 125 125 126 126 CLANG_CFLAGS = -I$(LIBC_PREFIX)/include -O$(OPTIMIZATION) -imacros $(CONFIG_HEADER) \ … … 131 131 -pipe -g -arch $(CLANG_ARCH) -D__$(ENDIANESS)__ 132 132 133 ifeq ($(CONFIG_DEBUG),y)134 GCC_CFLAGS += -Werror135 ICC_CFLAGS += -Werror136 endif137 138 133 ## Setup platform configuration 139 134 # … … 172 167 ifneq ($(BINARY),) 173 168 %.disasm: $(BINARY) 174 ifeq ($(CONFIG_LINE_DEBUG),y)175 $(OBJDUMP) -d -S $< > $@176 else177 169 $(OBJDUMP) -d $< > $@ 178 endif179 170 180 171 $(BINARY): $(LINKER_SCRIPT) $(OBJECTS) $(LIBS) $(BASE_LIBS)
Note:
See TracChangeset
for help on using the changeset viewer.