Changes in uspace/lib/c/Makefile [63f8966:2721a75] in mainline


Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/c/Makefile

    r63f8966 r2721a75  
    3535INCLUDE_LIBARCH = include/libarch
    3636
    37 PRE_DEPEND = $(INCLUDE_KERNEL) $(INCLUDE_ARCH) $(INCLUDE_LIBARCH)
     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)
    3844EXTRA_OUTPUT = $(LINKER_SCRIPT)
    39 EXTRA_CLEAN = $(INCLUDE_KERNEL) $(INCLUDE_ARCH) $(INCLUDE_LIBARCH) $(LINKER_SCRIPT)
     45EXTRA_CLEAN = $(INCLUDE_KERNEL) $(INCLUDE_ARCH) $(INCLUDE_LIBARCH) $(COMMON_HEADER_ARCH) $(LINKER_SCRIPT)
    4046LIBRARY = libc
    41 
    42 COMMON_MAKEFILE = $(ROOT_PATH)/Makefile.common
    43 CONFIG_MAKEFILE = $(ROOT_PATH)/Makefile.config
    4447
    4548-include $(COMMON_MAKEFILE)
     
    5861        generic/mem.c \
    5962        generic/str.c \
     63        generic/str_error.c \
    6064        generic/fibril.c \
    6165        generic/fibril_synch.c \
     
    9094        generic/vfs/vfs.c \
    9195        generic/vfs/canonify.c \
    92         generic/stacktrace.c
     96        generic/stacktrace.c \
     97        generic/arg_parse.c
    9398
    9499SOURCES = \
     
    111116$(LINKER_SCRIPT): $(LINKER_SCRIPT).in
    112117        $(GCC) $(DEFS) $(CFLAGS) -DLIBC_PATH=$(CURDIR) -E -x c $< | grep -v "^\#" > $@
     118
     119$(COMMON_HEADER_ARCH): $(COMMON_HEADER)
     120        ln -sfn ../../../$< $@
Note: See TracChangeset for help on using the changeset viewer.