Changeset 888207c9 in mainline for uspace/Makefile.common


Ignore:
Timestamp:
2011-09-07T22:19:24Z (13 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
2aeec8ef
Parents:
038b289 (diff), 5081276 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:

Merge from lp:~helenos-posix/helenos/devel.

  • Petr Koupy's port of binutils.
  • Jiri Zarevucky's port of pcc.
  • Petr and Jiri's libposix library.
  • Changes needed to make it all work together.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/Makefile.common

    r038b289 r888207c9  
    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
     
    215219JOBFILE = $(LIBC_PREFIX)/../../../tools/jobfile.py
    216220
     221ifeq ($(POSIX_COMPAT),y)
     222        CFLAGS = -I$(LIBPOSIX_PREFIX)
     223        LIBS += $(LIBPOSIX_PREFIX)/libposix.a
     224endif
     225
    217226ifeq ($(COMPILER),gcc_cross)
    218         CFLAGS = $(GCC_CFLAGS) $(EXTRA_CFLAGS)
     227        CFLAGS += $(GCC_CFLAGS) $(EXTRA_CFLAGS)
    219228        DEPEND_DEFS = $(DEFS) $(CONFIG_DEFS)
    220229endif
    221230
    222231ifeq ($(COMPILER),gcc_native)
    223         CFLAGS = $(GCC_CFLAGS) $(EXTRA_CFLAGS)
     232        CFLAGS += $(GCC_CFLAGS) $(EXTRA_CFLAGS)
    224233        DEPEND_DEFS = $(DEFS) $(CONFIG_DEFS)
    225234endif
    226235
    227236ifeq ($(COMPILER),icc)
    228         CFLAGS = $(ICC_CFLAGS) $(EXTRA_CFLAGS)
     237        CFLAGS += $(ICC_CFLAGS) $(EXTRA_CFLAGS)
    229238        DEPEND_DEFS = $(DEFS) $(CONFIG_DEFS)
    230239endif
    231240
    232241ifeq ($(COMPILER),clang)
    233         CFLAGS = $(CLANG_CFLAGS) $(EXTRA_CFLAGS)
     242        CFLAGS += $(CLANG_CFLAGS) $(EXTRA_CFLAGS)
    234243        DEPEND_DEFS = $(DEFS) $(CONFIG_DEFS)
    235244endif
Note: See TracChangeset for help on using the changeset viewer.