Changeset 76ca3f7 in mainline for uspace/lib/c/Makefile


Ignore:
Timestamp:
2010-03-23T20:49:54Z (15 years ago)
Author:
Lukas Mejdrech <lukasmejdrech@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
e417b96
Parents:
b48ebd19 (diff), 63f8966 (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 mailnline changes, revision 329

File:
1 moved

Legend:

Unmodified
Added
Removed
  • uspace/lib/c/Makefile

    rb48ebd19 r76ca3f7  
    2828#
    2929
    30 -include ../../../Makefile.config
    31 
    32 USPACE_PREFIX = $(shell pwd)/../..
    33 LIBS =
    34 
    35 LINK = arch/$(UARCH)/_link.ld
    36 
    37 PRE_DEPEND = $(INCLUDE_KERNEL) $(INCLUDE_ARCH) $(INCLUDE_LIBARCH)
    38 EXTRA_CLEAN = $(INCLUDE_KERNEL) $(INCLUDE_ARCH) $(INCLUDE_LIBARCH)
    39 EXTRA_OUTPUT = $(LINK)
     30USPACE_PREFIX = ../..
     31ROOT_PATH = $(USPACE_PREFIX)/..
    4032
    4133INCLUDE_KERNEL = include/kernel
     
    4335INCLUDE_LIBARCH = include/libarch
    4436
    45 OUTPUT = libc.a
     37PRE_DEPEND = $(INCLUDE_KERNEL) $(INCLUDE_ARCH) $(INCLUDE_LIBARCH)
     38EXTRA_OUTPUT = $(LINKER_SCRIPT)
     39EXTRA_CLEAN = $(INCLUDE_KERNEL) $(INCLUDE_ARCH) $(INCLUDE_LIBARCH) $(LINKER_SCRIPT)
     40LIBRARY = libc
     41
     42COMMON_MAKEFILE = $(ROOT_PATH)/Makefile.common
     43CONFIG_MAKEFILE = $(ROOT_PATH)/Makefile.config
     44
     45-include $(COMMON_MAKEFILE)
     46-include $(CONFIG_MAKEFILE)
     47-include arch/$(UARCH)/Makefile.inc
    4648
    4749GENERIC_SOURCES = \
     
    5557        generic/errno.c \
    5658        generic/mem.c \
    57         generic/string.c \
     59        generic/str.c \
    5860        generic/fibril.c \
    5961        generic/fibril_synch.c \
     
    9496        $(ARCH_SOURCES)
    9597
    96 include ../Makefile.common
     98include $(USPACE_PREFIX)/Makefile.common
    9799
    98100$(INCLUDE_ARCH): $(INCLUDE_KERNEL) $(INCLUDE_KERNEL)/arch
     
    107109        ln -sfn ../$< $@
    108110
    109 $(LINK): $(LINK).in
    110         $(GCC) $(DEFS) $(CFLAGS) -DLIBC_PREFIX=$(LIBC_PREFIX) -E -x c $< | grep -v "^\#" > $@
     111$(LINKER_SCRIPT): $(LINKER_SCRIPT).in
     112        $(GCC) $(DEFS) $(CFLAGS) -DLIBC_PATH=$(CURDIR) -E -x c $< | grep -v "^\#" > $@
Note: See TracChangeset for help on using the changeset viewer.