Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/Makefile.common

    rf63a591d r1cb092d  
    8888LIBPCI_PREFIX = $(LIB_PREFIX)/pci
    8989
    90 LIBPACKET_PREFIX = $(LIB_PREFIX)/packet
     90LIBSOCKET_PREFIX = $(LIB_PREFIX)/socket
    9191LIBNET_PREFIX = $(LIB_PREFIX)/net
    9292
     
    9494
    9595LINKER_SCRIPT ?= $(LIBC_PREFIX)/arch/$(UARCH)/_link.ld
    96 
    97 ifeq ($(CONFIG_OPTIMIZE_FOR_SIZE),y)
    98         OPTIMIZATION = s
    99 else
    100         OPTIMIZATION = 3
    101 endif
    10296
    10397.PHONY: all clean
     
    109103        rm -f $(DEPEND) $(DEPEND_PREV) $(JOB) $(OUTPUT) $(EXTRA_OUTPUT) $(EXTRA_CLEAN)
    110104        find . -name '*.o' -follow -exec rm \{\} \;
     105
     106ifeq ($(CONFIG_OPTIMIZE_FOR_SIZE),y)
     107OPTIMIZATION = s
     108else
     109OPTIMIZATION = 3
     110endif
    111111
    112112GCC_CFLAGS = -I$(LIBC_PREFIX)/include -O$(OPTIMIZATION) -imacros $(CONFIG_HEADER) \
     
    115115        -Wall -Wextra -Wno-clobbered -Wno-unused-parameter -Wmissing-prototypes \
    116116        -Werror-implicit-function-declaration -Wwrite-strings \
    117         -pipe -g -D__$(ENDIANESS)__
     117        -Werror -pipe -g -D__$(ENDIANESS)__
    118118
    119119ICC_CFLAGS = -I$(LIBC_PREFIX)/include -O$(OPTIMIZATION) -imacros $(CONFIG_HEADER) \
     
    122122        -Wall -Wextra -Wno-clobbered -Wno-unused-parameter -Wmissing-prototypes \
    123123        -Werror-implicit-function-declaration -Wwrite-strings \
    124         -pipe -g -D__$(ENDIANESS)__
     124        -Werror -pipe -g -D__$(ENDIANESS)__
    125125
    126126CLANG_CFLAGS = -I$(LIBC_PREFIX)/include -O$(OPTIMIZATION) -imacros $(CONFIG_HEADER) \
     
    131131        -pipe -g -arch $(CLANG_ARCH) -D__$(ENDIANESS)__
    132132
    133 ifeq ($(CONFIG_DEBUG),y)
    134         GCC_CFLAGS += -Werror
    135         ICC_CFLAGS += -Werror
    136 endif
    137 
    138133## Setup platform configuration
    139134#
     
    172167ifneq ($(BINARY),)
    173168%.disasm: $(BINARY)
    174 ifeq ($(CONFIG_LINE_DEBUG),y)
    175         $(OBJDUMP) -d -S $< > $@
    176 else
    177169        $(OBJDUMP) -d $< > $@
    178 endif
    179170
    180171$(BINARY): $(LINKER_SCRIPT) $(OBJECTS) $(LIBS) $(BASE_LIBS)
Note: See TracChangeset for help on using the changeset viewer.