Changes in uspace/Makefile.common [e8c5c11:00d7e1b] in mainline


Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/Makefile.common

    re8c5c11 r00d7e1b  
    4444#   EXTRA_CLEAN        additional cleanup targets
    4545#
     46#   POSIX_COMPAT       set to 'y' to use POSIX compatibility layer
     47#
    4648# Optionally, for a binary:
    4749#   STATIC_NEEDED      set to 'y' for init binaries, will build statically
     
    104106LIBSOFTINT_PREFIX = $(LIB_PREFIX)/softint
    105107
     108LIBPOSIX_PREFIX = $(LIB_PREFIX)/posix
     109
    106110LIBBLOCK_PREFIX = $(LIB_PREFIX)/block
    107111LIBFS_PREFIX = $(LIB_PREFIX)/fs
     112LIBFB_PREFIX = $(LIB_PREFIX)/fb
    108113LIBCLUI_PREFIX = $(LIB_PREFIX)/clui
     114LIBFMTUTIL_PREFIX = $(LIB_PREFIX)/fmtutil
     115
     116LIBEXT2_PREFIX = $(LIB_PREFIX)/ext2
     117
     118LIBUSB_PREFIX = $(LIB_PREFIX)/usb
     119LIBUSBHOST_PREFIX = $(LIB_PREFIX)/usbhost
     120LIBUSBDEV_PREFIX = $(LIB_PREFIX)/usbdev
     121LIBUSBHID_PREFIX = $(LIB_PREFIX)/usbhid
     122LIBUSBVIRT_PREFIX = $(LIB_PREFIX)/usbvirt
    109123
    110124LIBDRV_PREFIX = $(LIB_PREFIX)/drv
    111 LIBPACKET_PREFIX = $(LIB_PREFIX)/packet
    112125LIBNET_PREFIX = $(LIB_PREFIX)/net
     126LIBNIC_PREFIX = $(LIB_PREFIX)/nic
     127LIBMINIX_PREFIX = $(LIB_PREFIX)/minix
     128
     129LIBSCSI_PREFIX = $(LIB_PREFIX)/scsi
    113130
    114131ifeq ($(STATIC_NEEDED),y)
     
    126143endif
    127144
     145# Build static whenever we use libusb because that library uses
     146# thread local variables
     147ifneq ($(findstring usb, $(LIBS)),)
     148        STATIC_BUILD = y
     149endif
     150
    128151ifeq ($(STATIC_BUILD), y)
    129152BASE_LIBS = $(LIBC_PREFIX)/libc.a $(LIBSOFTINT_PREFIX)/libsoftint.a
     
    197220JOBFILE = $(LIBC_PREFIX)/../../../tools/jobfile.py
    198221
     222ifeq ($(POSIX_COMPAT),y)
     223        CFLAGS = -I$(LIBPOSIX_PREFIX)
     224        LIBS += $(LIBPOSIX_PREFIX)/libposix.a
     225endif
     226
    199227ifeq ($(COMPILER),gcc_cross)
    200         CFLAGS = $(GCC_CFLAGS) $(EXTRA_CFLAGS)
     228        CFLAGS += $(GCC_CFLAGS) $(EXTRA_CFLAGS)
    201229        DEPEND_DEFS = $(DEFS) $(CONFIG_DEFS)
    202230endif
    203231
    204232ifeq ($(COMPILER),gcc_native)
    205         CFLAGS = $(GCC_CFLAGS) $(EXTRA_CFLAGS)
     233        CFLAGS += $(GCC_CFLAGS) $(EXTRA_CFLAGS)
    206234        DEPEND_DEFS = $(DEFS) $(CONFIG_DEFS)
    207235endif
    208236
    209237ifeq ($(COMPILER),icc)
    210         CFLAGS = $(ICC_CFLAGS) $(EXTRA_CFLAGS)
     238        CFLAGS += $(ICC_CFLAGS) $(EXTRA_CFLAGS)
    211239        DEPEND_DEFS = $(DEFS) $(CONFIG_DEFS)
    212240endif
    213241
    214242ifeq ($(COMPILER),clang)
    215         CFLAGS = $(CLANG_CFLAGS) $(EXTRA_CFLAGS)
     243        CFLAGS += $(CLANG_CFLAGS) $(EXTRA_CFLAGS)
    216244        DEPEND_DEFS = $(DEFS) $(CONFIG_DEFS)
    217245endif
Note: See TracChangeset for help on using the changeset viewer.