Changeset c47e1a8 in mainline for uspace/lib/c/Makefile
- Timestamp:
- 2010-05-21T07:50:04Z (14 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- d51ee2b
- Parents:
- cf8cc36 (diff), 15b592b (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. - File:
-
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/c/Makefile
rcf8cc36 rc47e1a8 28 28 # 29 29 30 -include ../../../Makefile.config 31 32 USPACE_PREFIX = $(shell pwd)/../.. 33 #LIBS = $(LIBC_PREFIX)/libc.a 34 LIBS = 35 36 LINK = arch/$(UARCH)/_link.ld 37 38 PRE_DEPEND = $(INCLUDE_KERNEL) $(INCLUDE_ARCH) $(INCLUDE_LIBARCH) 39 EXTRA_CLEAN = $(INCLUDE_KERNEL) $(INCLUDE_ARCH) $(INCLUDE_LIBARCH) 40 EXTRA_OUTPUT = $(LINK) 30 USPACE_PREFIX = ../.. 31 ROOT_PATH = $(USPACE_PREFIX)/.. 41 32 42 33 INCLUDE_KERNEL = include/kernel … … 44 35 INCLUDE_LIBARCH = include/libarch 45 36 46 OUTPUT = libc.a 37 COMMON_MAKEFILE = $(ROOT_PATH)/Makefile.common 38 COMMON_HEADER = $(ROOT_PATH)/common.h 39 COMMON_HEADER_ARCH = arch/$(UARCH)/include/common.h 40 41 CONFIG_MAKEFILE = $(ROOT_PATH)/Makefile.config 42 43 PRE_DEPEND = $(INCLUDE_KERNEL) $(INCLUDE_ARCH) $(INCLUDE_LIBARCH) $(COMMON_HEADER_ARCH) 44 EXTRA_OUTPUT = $(LINKER_SCRIPT) 45 EXTRA_CLEAN = $(INCLUDE_KERNEL) $(INCLUDE_ARCH) $(INCLUDE_LIBARCH) $(COMMON_HEADER_ARCH) $(LINKER_SCRIPT) 46 LIBRARY = libc 47 48 -include $(COMMON_MAKEFILE) 49 -include $(CONFIG_MAKEFILE) 50 -include arch/$(UARCH)/Makefile.inc 47 51 48 52 GENERIC_SOURCES = \ … … 59 63 generic/errno.c \ 60 64 generic/mem.c \ 61 generic/string.c \ 65 generic/str.c \ 66 generic/str_error.c \ 62 67 generic/fibril.c \ 63 68 generic/fibril_synch.c \ … … 77 82 generic/io/printf_core.c \ 78 83 generic/io/console.c \ 84 generic/io/screenbuffer.c \ 79 85 generic/malloc.c \ 80 86 generic/sysinfo.c \ … … 92 98 generic/vfs/vfs.c \ 93 99 generic/vfs/canonify.c \ 94 generic/stacktrace.c 95 96 ARCH_SOURCES = \ 97 arch/$(UARCH)/src/entry.s \ 98 arch/$(UARCH)/src/thread_entry.s 100 generic/stacktrace.c \ 101 generic/arg_parse.c \ 102 generic/stats.c 99 103 100 104 SOURCES = \ … … 102 106 $(ARCH_SOURCES) 103 107 104 include ../Makefile.common108 include $(USPACE_PREFIX)/Makefile.common 105 109 106 110 $(INCLUDE_ARCH): $(INCLUDE_KERNEL) $(INCLUDE_KERNEL)/arch … … 115 119 ln -sfn ../$< $@ 116 120 117 $(LINK): $(LINK).in 118 $(GCC) $(DEFS) $(CFLAGS) -DLIBC_PREFIX=$(LIBC_PREFIX) -E -x c $< | grep -v "^\#" > $@ 121 $(LINKER_SCRIPT): $(LINKER_SCRIPT).in 122 $(GCC) $(DEFS) $(CFLAGS) -DLIBC_PATH=$(CURDIR) -E -x c $< | grep -v "^\#" > $@ 123 124 $(COMMON_HEADER_ARCH): $(COMMON_HEADER) 125 ln -sfn ../../../$< $@
Note:
See TracChangeset
for help on using the changeset viewer.