Changes in uspace/lib/c/Makefile [1d24ad3:6428115] in mainline


Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/c/Makefile

    r1d24ad3 r6428115  
    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
     
    5962        generic/ddi.c \
    6063        generic/as.c \
    61         generic/bd.c \
    62         generic/bd_srv.c \
    6364        generic/cap.c \
    6465        generic/cfg.c \
     
    6869        generic/device/hw_res_parsed.c \
    6970        generic/device/char_dev.c \
    70         generic/device/clock_dev.c \
    71         generic/device/battery_dev.c \
    72         generic/device/graph_dev.c \
    7371        generic/device/nic.c \
    7472        generic/device/pci.c \
    75         generic/device/ahci.c \
    76         generic/dnsr.c \
    77         generic/dlfcn.c \
    7873        generic/elf/elf_load.c \
    7974        generic/event.c \
     
    9287        generic/task.c \
    9388        generic/futex.c \
    94         generic/inet/addr.c \
    9589        generic/inet.c \
    9690        generic/inetcfg.c \
    9791        generic/inetping.c \
    98         generic/inetping6.c \
    9992        generic/io/asprintf.c \
    100         generic/io/input.c \
    10193        generic/io/io.c \
    102         generic/io/chargrid.c \
    103         generic/io/output.c \
    10494        generic/io/printf.c \
    10595        generic/io/log.c \
    106         generic/io/logctl.c \
    10796        generic/io/klog.c \
    10897        generic/io/snprintf.c \
     
    11099        generic/io/vsnprintf.c \
    111100        generic/io/printf_core.c \
    112         generic/io/con_srv.c \
    113101        generic/io/console.c \
    114         generic/io/visualizer.c \
    115         generic/io/window.c \
    116102        generic/iplink.c \
    117103        generic/iplink_srv.c \
    118         generic/ieee_double.c \
    119         generic/power_of_ten.c \
    120         generic/double_to_str.c \
    121104        generic/malloc.c \
    122105        generic/sysinfo.c \
     
    128111        generic/adt/list.c \
    129112        generic/adt/hash_table.c \
     113        generic/adt/hash_set.c \
    130114        generic/adt/dynamic_fifo.c \
    131115        generic/adt/char_map.c \
     
    138122        generic/vfs/canonify.c \
    139123        generic/net/inet.c \
     124        generic/net/modules.c \
    140125        generic/net/socket_client.c \
    141126        generic/net/socket_parse.c \
    142         generic/stack.c \
    143127        generic/stacktrace.c \
    144128        generic/arg_parse.c \
    145129        generic/sort.c \
    146130        generic/stats.c \
    147         generic/assert.c \
    148         generic/pio_trace.c
     131        generic/assert.c
    149132
    150133ifeq ($(CONFIG_RTLD),y)
    151134        GENERIC_SOURCES += \
     135                generic/dlfcn.c \
    152136                generic/rtld/rtld.c \
    153137                generic/rtld/dynamic.c \
     
    162146include $(USPACE_PREFIX)/Makefile.common
    163147
     148$(INCLUDE_LIBARCH): arch/$(UARCH)/include
     149        ln -sfn ../$< $@
     150
     151$(INCLUDE_ABI): ../../../abi/include/
     152        ln -sfn ../$< $@
    164153
    165154$(LIBC_PREFIX)/arch/$(UARCH)/_link.ld: $(LIBC_PREFIX)/arch/$(UARCH)/_link.ld.in
    166         $(CC) $(DEFS) $(CFLAGS) -DLIBC_PATH=$(CURDIR) -E -x c $< | grep -v "^\#" > $@
     155        $(GCC) $(DEFS) $(CFLAGS) -DLIBC_PATH=$(CURDIR) -E -x c $< | grep -v "^\#" > $@
    167156
    168157$(LIBC_PREFIX)/arch/$(UARCH)/_link-loader.ld: $(LIBC_PREFIX)/arch/$(UARCH)/_link.ld.in
    169         $(CC) $(DEFS) $(CFLAGS) -DLIBC_PATH=$(CURDIR) -DLOADER -E -x c $< | grep -v "^\#" > $@
     158        $(GCC) $(DEFS) $(CFLAGS) -DLIBC_PATH=$(CURDIR) -DLOADER -E -x c $< | grep -v "^\#" > $@
    170159
    171160$(LIBC_PREFIX)/arch/$(UARCH)/_link-shlib.ld: $(LIBC_PREFIX)/arch/$(UARCH)/_link.ld.in
    172         $(CC) $(DEFS) $(CFLAGS) -DLIBC_PATH=$(CURDIR) -DSHLIB -E -x c $< | grep -v "^\#" > $@
     161        $(GCC) $(DEFS) $(CFLAGS) -DLIBC_PATH=$(CURDIR) -DSHLIB -E -x c $< | grep -v "^\#" > $@
    173162
    174163$(LIBC_PREFIX)/arch/$(UARCH)/_link-dlexe.ld: $(LIBC_PREFIX)/arch/$(UARCH)/_link.ld.in
    175         $(CC) $(DEFS) $(CFLAGS) -DLIBC_PATH=$(CURDIR) -DDLEXE -E -x c $< | grep -v "^\#" > $@
     164        $(GCC) $(DEFS) $(CFLAGS) -DLIBC_PATH=$(CURDIR) -DDLEXE -E -x c $< | grep -v "^\#" > $@
    176165
    177166$(COMMON_HEADER_ARCH): $(COMMON_HEADER)
    178         ln -sfn ../../../../$< $@
     167        ln -sfn ../../../$< $@
Note: See TracChangeset for help on using the changeset viewer.