Changeset c47e1a8 in mainline for uspace/lib/c/Makefile


Ignore:
Timestamp:
2010-05-21T07:50:04Z (15 years ago)
Author:
Lenka Trochtova <trochtova.lenka@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
d51ee2b
Parents:
cf8cc36 (diff), 15b592b (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 mainline changes (rev. 451)

File:
1 moved

Legend:

Unmodified
Added
Removed
  • uspace/lib/c/Makefile

    rcf8cc36 rc47e1a8  
    2828#
    2929
    30 -include ../../../Makefile.config
    31 
    32 USPACE_PREFIX = $(shell pwd)/../..
    33 #LIBS = $(LIBC_PREFIX)/libc.a
    34 LIBS =
    35 
    36 LINK = arch/$(UARCH)/_link.ld
    37 
    38 PRE_DEPEND = $(INCLUDE_KERNEL) $(INCLUDE_ARCH) $(INCLUDE_LIBARCH)
    39 EXTRA_CLEAN = $(INCLUDE_KERNEL) $(INCLUDE_ARCH) $(INCLUDE_LIBARCH)
    40 EXTRA_OUTPUT = $(LINK)
     30USPACE_PREFIX = ../..
     31ROOT_PATH = $(USPACE_PREFIX)/..
    4132
    4233INCLUDE_KERNEL = include/kernel
     
    4435INCLUDE_LIBARCH = include/libarch
    4536
    46 OUTPUT = libc.a
     37COMMON_MAKEFILE = $(ROOT_PATH)/Makefile.common
     38COMMON_HEADER = $(ROOT_PATH)/common.h
     39COMMON_HEADER_ARCH = arch/$(UARCH)/include/common.h
     40
     41CONFIG_MAKEFILE = $(ROOT_PATH)/Makefile.config
     42
     43PRE_DEPEND = $(INCLUDE_KERNEL) $(INCLUDE_ARCH) $(INCLUDE_LIBARCH) $(COMMON_HEADER_ARCH)
     44EXTRA_OUTPUT = $(LINKER_SCRIPT)
     45EXTRA_CLEAN = $(INCLUDE_KERNEL) $(INCLUDE_ARCH) $(INCLUDE_LIBARCH) $(COMMON_HEADER_ARCH) $(LINKER_SCRIPT)
     46LIBRARY = libc
     47
     48-include $(COMMON_MAKEFILE)
     49-include $(CONFIG_MAKEFILE)
     50-include arch/$(UARCH)/Makefile.inc
    4751
    4852GENERIC_SOURCES = \
     
    5963        generic/errno.c \
    6064        generic/mem.c \
    61         generic/string.c \
     65        generic/str.c \
     66        generic/str_error.c \
    6267        generic/fibril.c \
    6368        generic/fibril_synch.c \
     
    7782        generic/io/printf_core.c \
    7883        generic/io/console.c \
     84        generic/io/screenbuffer.c \
    7985        generic/malloc.c \
    8086        generic/sysinfo.c \
     
    9298        generic/vfs/vfs.c \
    9399        generic/vfs/canonify.c \
    94         generic/stacktrace.c
    95 
    96 ARCH_SOURCES = \
    97         arch/$(UARCH)/src/entry.s \
    98         arch/$(UARCH)/src/thread_entry.s
     100        generic/stacktrace.c \
     101        generic/arg_parse.c \
     102        generic/stats.c
    99103
    100104SOURCES = \
     
    102106        $(ARCH_SOURCES)
    103107
    104 include ../Makefile.common
     108include $(USPACE_PREFIX)/Makefile.common
    105109
    106110$(INCLUDE_ARCH): $(INCLUDE_KERNEL) $(INCLUDE_KERNEL)/arch
     
    115119        ln -sfn ../$< $@
    116120
    117 $(LINK): $(LINK).in
    118         $(GCC) $(DEFS) $(CFLAGS) -DLIBC_PREFIX=$(LIBC_PREFIX) -E -x c $< | grep -v "^\#" > $@
     121$(LINKER_SCRIPT): $(LINKER_SCRIPT).in
     122        $(GCC) $(DEFS) $(CFLAGS) -DLIBC_PATH=$(CURDIR) -E -x c $< | grep -v "^\#" > $@
     123
     124$(COMMON_HEADER_ARCH): $(COMMON_HEADER)
     125        ln -sfn ../../../$< $@
Note: See TracChangeset for help on using the changeset viewer.