source: mainline/uspace/lib/c/Makefile@ c7a8442

lfn serial ticket/834-toolchain-update topic/msim-upgrade topic/simplify-dev-export
Last change on this file since c7a8442 was c7a8442, checked in by Jakub Jermar <jakub@…>, 15 years ago

Move net_modules.[ch] to the standard library. Note that this functionality is
not directly related to networking so the next step regarding these two files
would be to somehow merge its functionality with what we already have in lib c.

  • Property mode set to 100644
File size: 3.8 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
30USPACE_PREFIX = ../..
31ROOT_PATH = $(USPACE_PREFIX)/..
32
33INCLUDE_KERNEL = include/kernel
34INCLUDE_ARCH = include/arch
35INCLUDE_LIBARCH = include/libarch
36
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)
44EXTRA_OUTPUT = $(LINKER_SCRIPT)
45EXTRA_CLEAN = $(INCLUDE_KERNEL) $(INCLUDE_ARCH) $(INCLUDE_LIBARCH) $(COMMON_HEADER_ARCH) $(LINKER_SCRIPT)
46LIBRARY = libc
47
48-include $(COMMON_MAKEFILE)
49-include $(CONFIG_MAKEFILE)
50-include arch/$(UARCH)/Makefile.inc
51
52GENERIC_SOURCES = \
53 generic/libc.c \
54 generic/ddi.c \
55 generic/as.c \
56 generic/cap.c \
57 generic/clipboard.c \
58 generic/devmap.c \
59 generic/event.c \
60 generic/errno.c \
61 generic/mem.c \
62 generic/str.c \
63 generic/str_error.c \
64 generic/fibril.c \
65 generic/fibril_synch.c \
66 generic/pcb.c \
67 generic/smc.c \
68 generic/thread.c \
69 generic/tls.c \
70 generic/task.c \
71 generic/futex.c \
72 generic/io/asprintf.c \
73 generic/io/io.c \
74 generic/io/printf.c \
75 generic/io/klog.c \
76 generic/io/snprintf.c \
77 generic/io/vprintf.c \
78 generic/io/vsnprintf.c \
79 generic/io/printf_core.c \
80 generic/io/console.c \
81 generic/io/screenbuffer.c \
82 generic/malloc.c \
83 generic/sysinfo.c \
84 generic/ipc.c \
85 generic/async.c \
86 generic/async_rel.c \
87 generic/loader.c \
88 generic/getopt.c \
89 generic/adt/list.o \
90 generic/adt/hash_table.o \
91 generic/adt/dynamic_fifo.c \
92 generic/adt/measured_strings.c \
93 generic/adt/char_map.c \
94 generic/time.c \
95 generic/err.c \
96 generic/stdlib.c \
97 generic/mman.c \
98 generic/udebug.c \
99 generic/vfs/vfs.c \
100 generic/vfs/canonify.c \
101 generic/net/inet.c \
102 generic/net/modules.c \
103 generic/stacktrace.c \
104 generic/arg_parse.c \
105 generic/sort.c \
106 generic/stats.c
107
108SOURCES = \
109 $(GENERIC_SOURCES) \
110 $(ARCH_SOURCES)
111
112include $(USPACE_PREFIX)/Makefile.common
113
114$(INCLUDE_ARCH): $(INCLUDE_KERNEL) $(INCLUDE_KERNEL)/arch
115 ln -sfn kernel/arch $@
116
117$(INCLUDE_LIBARCH): arch/$(UARCH)/include
118 ln -sfn ../$< $@
119
120$(INCLUDE_KERNEL)/arch: ../../../kernel/generic/include/arch $(INCLUDE_KERNEL)
121
122$(INCLUDE_KERNEL): ../../../kernel/generic/include/
123 ln -sfn ../$< $@
124
125$(LINKER_SCRIPT): $(LINKER_SCRIPT).in
126 $(GCC) $(DEFS) $(CFLAGS) -DLIBC_PATH=$(CURDIR) -E -x c $< | grep -v "^\#" > $@
127
128$(COMMON_HEADER_ARCH): $(COMMON_HEADER)
129 ln -sfn ../../../$< $@
Note: See TracBrowser for help on using the repository browser.