Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/c/Makefile

    rc0699467 r79ae36dd  
    3131ROOT_PATH = $(USPACE_PREFIX)/..
    3232
    33 INCLUDE_ABI = include/abi
     33INCLUDE_KERNEL = include/kernel
     34INCLUDE_ARCH = include/arch
    3435INCLUDE_LIBARCH = include/libarch
    3536
     
    4647        $(LIBC_PREFIX)/arch/$(UARCH)/_link-dlexe.ld
    4748
    48 PRE_DEPEND = $(INCLUDE_ABI) $(INCLUDE_LIBARCH) $(COMMON_HEADER_ARCH)
     49PRE_DEPEND = $(INCLUDE_KERNEL) $(INCLUDE_ARCH) $(INCLUDE_LIBARCH) $(COMMON_HEADER_ARCH)
    4950EXTRA_OUTPUT = $(LINKER_SCRIPTS)
    50 EXTRA_CLEAN = $(INCLUDE_ABI) $(INCLUDE_LIBARCH) $(COMMON_HEADER_ARCH) $(LINKER_SCRIPTS)
     51EXTRA_CLEAN = $(INCLUDE_KERNEL) $(INCLUDE_ARCH) $(INCLUDE_LIBARCH) $(COMMON_HEADER_ARCH) $(LINKER_SCRIPTS)
    5152LIBRARY = libc
    5253SLIBRARY = libc.so.0.0
     
    5859-include arch/$(UARCH)/Makefile.inc
    5960
     61EXTRA_CFLAGS += -I../../srv/loader/include
     62
    6063GENERIC_SOURCES = \
    6164        generic/libc.c \
     
    6568        generic/clipboard.c \
    6669        generic/devmap.c \
     70        generic/devmap_obsolete.c \
    6771        generic/devman.c \
     72        generic/devman_obsolete.c \
    6873        generic/device/hw_res.c \
    6974        generic/device/char_dev.c \
    70         generic/elf/elf_load.c \
    7175        generic/event.c \
    7276        generic/errno.c \
     
    132136                generic/dlfcn.c \
    133137                generic/rtld/rtld.c \
     138                generic/rtld/elf_load.c \
    134139                generic/rtld/dynamic.c \
    135140                generic/rtld/module.c \
     
    143148include $(USPACE_PREFIX)/Makefile.common
    144149
     150$(INCLUDE_ARCH): $(INCLUDE_KERNEL) $(INCLUDE_KERNEL)/arch
     151        ln -sfn kernel/arch $@
     152
    145153$(INCLUDE_LIBARCH): arch/$(UARCH)/include
    146154        ln -sfn ../$< $@
    147155
    148 $(INCLUDE_ABI): ../../../abi/include/
     156$(INCLUDE_KERNEL)/arch: ../../../kernel/generic/include/arch $(INCLUDE_KERNEL)
     157
     158$(INCLUDE_KERNEL): ../../../kernel/generic/include/
    149159        ln -sfn ../$< $@
    150160
Note: See TracChangeset for help on using the changeset viewer.