Changeset bf49001 in mainline


Ignore:
Timestamp:
2011-05-24T03:41:01Z (13 years ago)
Author:
Petr Koupy <petr.koupy@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
d1671a8
Parents:
864a081 (diff), 2d2b8e6 (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 libposix changes.

Location:
uspace
Files:
1 added
2 edited

Legend:

Unmodified
Added
Removed
  • uspace/Makefile

    r864a081 rbf49001  
    153153        lib/drv \
    154154        lib/packet \
    155         lib/net
     155        lib/net \
     156        lib/posix
    156157
    157158LIBC_BUILD = $(addsuffix .build,$(LIBC))
  • uspace/Makefile.common

    r864a081 rbf49001  
    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
     
    197201JOBFILE = $(LIBC_PREFIX)/../../../tools/jobfile.py
    198202
     203ifeq ($(POSIX_COMPAT),y)
     204        CFLAGS = -I$(LIBPOSIX_PREFIX)
     205        LIBS += $(LIBPOSIX_PREFIX)/libposix.a
     206endif
     207
    199208ifeq ($(COMPILER),gcc_cross)
    200         CFLAGS = $(GCC_CFLAGS) $(EXTRA_CFLAGS)
     209        CFLAGS += $(GCC_CFLAGS) $(EXTRA_CFLAGS)
    201210        DEPEND_DEFS = $(DEFS) $(CONFIG_DEFS)
    202211endif
    203212
    204213ifeq ($(COMPILER),gcc_native)
    205         CFLAGS = $(GCC_CFLAGS) $(EXTRA_CFLAGS)
     214        CFLAGS += $(GCC_CFLAGS) $(EXTRA_CFLAGS)
    206215        DEPEND_DEFS = $(DEFS) $(CONFIG_DEFS)
    207216endif
    208217
    209218ifeq ($(COMPILER),icc)
    210         CFLAGS = $(ICC_CFLAGS) $(EXTRA_CFLAGS)
     219        CFLAGS += $(ICC_CFLAGS) $(EXTRA_CFLAGS)
    211220        DEPEND_DEFS = $(DEFS) $(CONFIG_DEFS)
    212221endif
    213222
    214223ifeq ($(COMPILER),clang)
    215         CFLAGS = $(CLANG_CFLAGS) $(EXTRA_CFLAGS)
     224        CFLAGS += $(CLANG_CFLAGS) $(EXTRA_CFLAGS)
    216225        DEPEND_DEFS = $(DEFS) $(CONFIG_DEFS)
    217226endif
Note: See TracChangeset for help on using the changeset viewer.