Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/c/Makefile

    r1570759b r0aae87a6  
    3131ROOT_PATH = $(USPACE_PREFIX)/..
    3232
     33INCLUDE_ABI = include/abi
     34INCLUDE_LIBARCH = include/libarch
     35
    3336COMMON_MAKEFILE = $(ROOT_PATH)/Makefile.common
    3437COMMON_HEADER = $(ROOT_PATH)/common.h
    35 COMMON_HEADER_ARCH = arch/$(UARCH)/include/libarch/common.h
     38COMMON_HEADER_ARCH = arch/$(UARCH)/include/common.h
    3639
    3740CONFIG_MAKEFILE = $(ROOT_PATH)/Makefile.config
     
    4346        $(LIBC_PREFIX)/arch/$(UARCH)/_link-dlexe.ld
    4447
    45 PRE_DEPEND = $(COMMON_HEADER_ARCH)
     48PRE_DEPEND = $(INCLUDE_ABI) $(INCLUDE_LIBARCH) $(COMMON_HEADER_ARCH)
    4649EXTRA_OUTPUT = $(LINKER_SCRIPTS)
    47 EXTRA_CLEAN = $(COMMON_HEADER_ARCH) $(LINKER_SCRIPTS)
     50EXTRA_CLEAN = $(INCLUDE_ABI) $(INCLUDE_LIBARCH) $(COMMON_HEADER_ARCH) $(LINKER_SCRIPTS)
    4851LIBRARY = libc
    4952SLIBRARY = libc.so.0.0
     
    142145        generic/sort.c \
    143146        generic/stats.c \
    144         generic/assert.c \
    145         generic/pio_trace.c
     147        generic/assert.c
    146148
    147149ifeq ($(CONFIG_RTLD),y)
     
    159161include $(USPACE_PREFIX)/Makefile.common
    160162
     163$(INCLUDE_LIBARCH): arch/$(UARCH)/include
     164        ln -sfn ../$< $@
     165
     166$(INCLUDE_ABI): ../../../abi/include/
     167        ln -sfn ../$< $@
    161168
    162169$(LIBC_PREFIX)/arch/$(UARCH)/_link.ld: $(LIBC_PREFIX)/arch/$(UARCH)/_link.ld.in
    163         $(CC) $(DEFS) $(CFLAGS) -DLIBC_PATH=$(CURDIR) -E -x c $< | grep -v "^\#" > $@
     170        $(GCC) $(DEFS) $(CFLAGS) -DLIBC_PATH=$(CURDIR) -E -x c $< | grep -v "^\#" > $@
    164171
    165172$(LIBC_PREFIX)/arch/$(UARCH)/_link-loader.ld: $(LIBC_PREFIX)/arch/$(UARCH)/_link.ld.in
    166         $(CC) $(DEFS) $(CFLAGS) -DLIBC_PATH=$(CURDIR) -DLOADER -E -x c $< | grep -v "^\#" > $@
     173        $(GCC) $(DEFS) $(CFLAGS) -DLIBC_PATH=$(CURDIR) -DLOADER -E -x c $< | grep -v "^\#" > $@
    167174
    168175$(LIBC_PREFIX)/arch/$(UARCH)/_link-shlib.ld: $(LIBC_PREFIX)/arch/$(UARCH)/_link.ld.in
    169         $(CC) $(DEFS) $(CFLAGS) -DLIBC_PATH=$(CURDIR) -DSHLIB -E -x c $< | grep -v "^\#" > $@
     176        $(GCC) $(DEFS) $(CFLAGS) -DLIBC_PATH=$(CURDIR) -DSHLIB -E -x c $< | grep -v "^\#" > $@
    170177
    171178$(LIBC_PREFIX)/arch/$(UARCH)/_link-dlexe.ld: $(LIBC_PREFIX)/arch/$(UARCH)/_link.ld.in
    172         $(CC) $(DEFS) $(CFLAGS) -DLIBC_PATH=$(CURDIR) -DDLEXE -E -x c $< | grep -v "^\#" > $@
     179        $(GCC) $(DEFS) $(CFLAGS) -DLIBC_PATH=$(CURDIR) -DDLEXE -E -x c $< | grep -v "^\#" > $@
    173180
    174181$(COMMON_HEADER_ARCH): $(COMMON_HEADER)
    175         ln -sfn ../../../../$< $@
     182        ln -sfn ../../../$< $@
Note: See TracChangeset for help on using the changeset viewer.