Changes in uspace/Makefile.common [4fb794c:8620b2f] in mainline


Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/Makefile.common

    r4fb794c r8620b2f  
    4545#
    4646#   POSIX_COMPAT       set to 'y' to use POSIX compatibility layer
     47#   NEEDS_MATH         set to 'y' to add implementation of mathematical functions
    4748#
    4849# Optionally, for a binary:
     
    109110LIBSOFTFLOAT_PREFIX = $(LIB_PREFIX)/softfloat
    110111LIBSOFTINT_PREFIX = $(LIB_PREFIX)/softint
     112LIBMATH_PREFIX = $(LIB_PREFIX)/math
    111113
    112114LIBPOSIX_PREFIX = $(LIB_PREFIX)/posix
     
    131133
    132134LIBDRV_PREFIX = $(LIB_PREFIX)/drv
     135LIBHOUND_PREFIX = $(LIB_PREFIX)/hound
     136LIBPCM_PREFIX = $(LIB_PREFIX)/pcm
    133137LIBNET_PREFIX = $(LIB_PREFIX)/net
    134138LIBNIC_PREFIX = $(LIB_PREFIX)/nic
     
    138142
    139143LIBBITHENGE_PREFIX = $(LIB_PREFIX)/bithenge
     144
     145LIBHTTP_PREFIX = $(LIB_PREFIX)/http
     146LIBURI_PREFIX = $(LIB_PREFIX)/uri
    140147
    141148ifeq ($(STATIC_NEEDED),y)
     
    222229endif
    223230
    224 ## Setup platform configuration
    225 #
    226 
    227 -include $(LIBC_PREFIX)/arch/$(UARCH)/Makefile.common
    228 
    229 ## Compilation options
    230 #
    231 
    232 JOBFILE = $(LIBC_PREFIX)/../../../tools/jobfile.py
    233 
     231# Prepare for POSIX before including platform specific stuff
    234232ifeq ($(POSIX_COMPAT),y)
    235233        CFLAGS = -I$(LIBPOSIX_PREFIX)/include/posix  -I$(LIBPOSIX_PREFIX)/include/
    236         LIBS += $(LIBPOSIX_PREFIX)/libposix.a
    237 endif
     234        BASE_LIBS = $(LIBPOSIX_PREFIX)/libposixaslibc.a $(LIBPOSIX_PREFIX)/libc4posix.a $(LIBSOFTINT_PREFIX)/libsoftint.a
     235endif
     236
     237# Do we need math?
     238ifeq ($(NEEDS_MATH),y)
     239        BASE_LIBS += $(LIBMATH_PREFIX)/libmath.a
     240endif
     241
     242## Setup platform configuration
     243#
     244
     245-include $(LIBC_PREFIX)/arch/$(UARCH)/Makefile.common
     246
     247## Compilation options
     248#
     249
     250JOBFILE = $(LIBC_PREFIX)/../../../tools/jobfile.py
    238251
    239252ifeq ($(COMPILER),gcc_cross)
     253        CFLAGS += $(GCC_CFLAGS) $(EXTRA_CFLAGS)
     254        DEPEND_DEFS = $(DEFS) $(CONFIG_DEFS)
     255endif
     256
     257ifeq ($(COMPILER),gcc_helenos)
    240258        CFLAGS += $(GCC_CFLAGS) $(EXTRA_CFLAGS)
    241259        DEPEND_DEFS = $(DEFS) $(CONFIG_DEFS)
Note: See TracChangeset for help on using the changeset viewer.