Changeset 2d2b8e6 in mainline


Ignore:
Timestamp:
2011-05-24T03:28:31Z (13 years ago)
Author:
Petr Koupy <petr.koupy@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
965c250, bf49001
Parents:
d4c472b
Message:

Added basic build infrastructure.

Location:
uspace
Files:
1 added
2 edited

Legend:

Unmodified
Added
Removed
  • uspace/Makefile

    rd4c472b r2d2b8e6  
    148148        lib/drv \
    149149        lib/packet \
    150         lib/net
     150        lib/net \
     151        lib/posix
    151152
    152153LIBC_BUILD = $(addsuffix .build,$(LIBC))
  • uspace/Makefile.common

    rd4c472b r2d2b8e6  
    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.