source: mainline/uspace/lib/libc/Makefile@ 5af21c5

lfn serial ticket/834-toolchain-update topic/msim-upgrade topic/simplify-dev-export
Last change on this file since 5af21c5 was 5cd136ab, checked in by Lenka Trochtova <trochtova.lenka@…>, 15 years ago

device interfaces and driver cooperation - parts of code

  • Property mode set to 100644
File size: 3.3 KB
Line 
1#
2# Copyright (c) 2005 Martin Decky
3# Copyright (c) 2007 Jakub Jermar
4# All rights reserved.
5#
6# Redistribution and use in source and binary forms, with or without
7# modification, are permitted provided that the following conditions
8# are met:
9#
10# - Redistributions of source code must retain the above copyright
11# notice, this list of conditions and the following disclaimer.
12# - Redistributions in binary form must reproduce the above copyright
13# notice, this list of conditions and the following disclaimer in the
14# documentation and/or other materials provided with the distribution.
15# - The name of the author may not be used to endorse or promote products
16# derived from this software without specific prior written permission.
17#
18# THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
19# IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
20# OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
21# IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
22# INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
23# NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
24# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
25# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
26# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
27# THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
28#
29
30-include ../../../Makefile.config
31
32USPACE_PREFIX = $(shell pwd)/../..
33#LIBS = $(LIBC_PREFIX)/libc.a
34LIBS =
35
36LINK = arch/$(UARCH)/_link.ld
37
38PRE_DEPEND = $(INCLUDE_KERNEL) $(INCLUDE_ARCH) $(INCLUDE_LIBARCH)
39EXTRA_CLEAN = $(INCLUDE_KERNEL) $(INCLUDE_ARCH) $(INCLUDE_LIBARCH)
40EXTRA_OUTPUT = $(LINK)
41
42INCLUDE_KERNEL = include/kernel
43INCLUDE_ARCH = include/arch
44INCLUDE_LIBARCH = include/libarch
45
46OUTPUT = libc.a
47
48GENERIC_SOURCES = \
49 generic/libc.c \
50 generic/ddi.c \
51 generic/as.c \
52 generic/cap.c \
53 generic/clipboard.c \
54 generic/devmap.c \
55 generic/devman.c \
56 generic/device/hw_res.c \
57 generic/event.c \
58 generic/errno.c \
59 generic/mem.c \
60 generic/string.c \
61 generic/fibril.c \
62 generic/fibril_synch.c \
63 generic/pcb.c \
64 generic/smc.c \
65 generic/thread.c \
66 generic/tls.c \
67 generic/task.c \
68 generic/futex.c \
69 generic/io/asprintf.c \
70 generic/io/io.c \
71 generic/io/printf.c \
72 generic/io/klog.c \
73 generic/io/snprintf.c \
74 generic/io/vprintf.c \
75 generic/io/vsnprintf.c \
76 generic/io/printf_core.c \
77 generic/io/console.c \
78 generic/malloc.c \
79 generic/sysinfo.c \
80 generic/ipc.c \
81 generic/async.c \
82 generic/loader.c \
83 generic/getopt.c \
84 generic/adt/list.o \
85 generic/adt/hash_table.o \
86 generic/time.c \
87 generic/err.c \
88 generic/stdlib.c \
89 generic/mman.c \
90 generic/udebug.c \
91 generic/vfs/vfs.c \
92 generic/vfs/canonify.c \
93 generic/stacktrace.c
94
95ARCH_SOURCES = \
96 arch/$(UARCH)/src/entry.s \
97 arch/$(UARCH)/src/thread_entry.s
98
99SOURCES = \
100 $(GENERIC_SOURCES) \
101 $(ARCH_SOURCES)
102
103include ../Makefile.common
104
105$(INCLUDE_ARCH): $(INCLUDE_KERNEL) $(INCLUDE_KERNEL)/arch
106 ln -sfn kernel/arch $@
107
108$(INCLUDE_LIBARCH): arch/$(UARCH)/include
109 ln -sfn ../$< $@
110
111$(INCLUDE_KERNEL)/arch: ../../../kernel/generic/include/arch $(INCLUDE_KERNEL)
112
113$(INCLUDE_KERNEL): ../../../kernel/generic/include/
114 ln -sfn ../$< $@
115
116$(LINK): $(LINK).in
117 $(GCC) $(DEFS) $(CFLAGS) -DLIBC_PREFIX=$(LIBC_PREFIX) -E -x c $< | grep -v "^\#" > $@
Note: See TracBrowser for help on using the repository browser.