source: mainline/uspace/Makefile@ 00d7e1b

lfn serial ticket/834-toolchain-update topic/msim-upgrade topic/simplify-dev-export
Last change on this file since 00d7e1b was 00d7e1b, checked in by Martin Decky <martin@…>, 14 years ago

networking improvements

  • start the networking stack from init
  • add loopback network interface driver (cherrypicked and sanitized from lp:~helenos-nicf/helenos/nicf)
  • add libnic and various small pieces from lp:~helenos-nicf/helenos/nicf
  • fix client side of NIC_GET_ADDRESS
  • net binary overhaul

Note: "ping 127.0.0.1" works, but the first three pings timeout for some reason

  • Property mode set to 100644
File size: 4.6 KB
Line 
1#
2# Copyright (c) 2005 Martin Decky
3# All rights reserved.
4#
5# Redistribution and use in source and binary forms, with or without
6# modification, are permitted provided that the following conditions
7# are met:
8#
9# - Redistributions of source code must retain the above copyright
10# notice, this list of conditions and the following disclaimer.
11# - Redistributions in binary form must reproduce the above copyright
12# notice, this list of conditions and the following disclaimer in the
13# documentation and/or other materials provided with the distribution.
14# - The name of the author may not be used to endorse or promote products
15# derived from this software without specific prior written permission.
16#
17# THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
18# IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
19# OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
20# IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
21# INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
22# NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
23# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
24# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
25# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
26# THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
27#
28
29-include ../Makefile.common
30-include ../Makefile.config
31
32## Common binaries
33#
34
35DIRS = \
36 app/bdsh \
37 app/blkdump \
38 app/bnchmark \
39 app/devctl \
40 app/edit \
41 app/ext2info \
42 app/getterm \
43 app/init \
44 app/kill \
45 app/killall \
46 app/klog \
47 app/locinfo \
48 app/lsusb \
49 app/mkfat \
50 app/mkmfs \
51 app/redir \
52 app/sbi \
53 app/sportdmp \
54 app/stats \
55 app/taskdump \
56 app/tester \
57 app/testread \
58 app/tetris \
59 app/trace \
60 app/top \
61 app/usbinfo \
62 app/vuhid \
63 app/netecho \
64 app/nettest1 \
65 app/nettest2 \
66 app/ping \
67 app/websrv \
68 app/sysinfo \
69 app/mkbd \
70 srv/clip \
71 srv/loc \
72 srv/devman \
73 srv/loader \
74 srv/ns \
75 srv/taskmon \
76 srv/vfs \
77 srv/bd/ata_bd \
78 srv/bd/file_bd \
79 srv/bd/gxe_bd \
80 srv/bd/rd \
81 srv/bd/part/guid_part \
82 srv/bd/part/mbr_part \
83 srv/fs/exfat \
84 srv/fs/fat \
85 srv/fs/cdfs \
86 srv/fs/tmpfs \
87 srv/fs/mfs \
88 srv/fs/locfs \
89 srv/fs/ext2fs \
90 srv/hid/console \
91 srv/hid/s3c24xx_ts \
92 srv/hid/fb \
93 srv/hid/input \
94 srv/hw/char/i8042 \
95 srv/hw/char/s3c24xx_uart \
96 srv/net/il/arp \
97 srv/net/il/ip \
98 srv/net/tl/icmp \
99 srv/net/tl/udp \
100 srv/net/tl/tcp \
101 srv/net/nil/eth \
102 srv/net/nil/nildummy \
103 srv/net/net \
104 drv/infrastructure/root \
105 drv/infrastructure/rootvirt \
106 drv/test/test1 \
107 drv/test/test2 \
108 drv/test/test3 \
109 drv/bus/usb/ehci \
110 drv/bus/usb/ohci \
111 drv/bus/usb/uhci \
112 drv/bus/usb/uhcirh \
113 drv/bus/usb/usbflbk \
114 drv/bus/usb/usbhid \
115 drv/bus/usb/usbhub \
116 drv/bus/usb/usbmast \
117 drv/bus/usb/usbmid \
118 drv/bus/usb/usbmouse \
119 drv/bus/usb/vhc \
120 drv/nic/lo
121
122ifeq ($(CONFIG_PCC),y)
123DIRS += \
124 app/cc \
125 app/ccom \
126 app/ccom/mkext \
127 app/cpp
128endif
129
130ifeq ($(CONFIG_BINUTILS),y)
131DIRS += \
132 app/binutils
133endif
134
135## Platform-specific hardware support
136#
137
138ifeq ($(UARCH),amd64)
139 DIRS += \
140 drv/infrastructure/rootpc \
141 drv/bus/pci/pciintel \
142 drv/bus/isa \
143 drv/char/ns8250 \
144 srv/hw/irc/apic \
145 srv/hw/irc/i8259
146endif
147
148ifeq ($(UARCH),ia32)
149 DIRS += \
150 drv/infrastructure/rootpc \
151 drv/bus/pci/pciintel \
152 drv/bus/isa \
153 drv/char/ns8250 \
154 srv/hw/irc/apic \
155 srv/hw/irc/i8259
156endif
157
158ifeq ($(UARCH),ppc32)
159 DIRS += \
160 drv/infrastructure/rootmac \
161 srv/hw/bus/cuda_adb
162endif
163
164ifeq ($(UARCH),sparc64)
165 DIRS += \
166 srv/hw/irc/obio
167endif
168
169## System libraries
170#
171
172LIBC = lib/c
173LIBS = \
174 lib/fs \
175 lib/block \
176 lib/clui \
177 lib/fmtutil \
178 lib/scsi \
179 lib/softint \
180 lib/softfloat \
181 lib/drv \
182 lib/fb \
183 lib/net \
184 lib/nic \
185 lib/ext2 \
186 lib/usb \
187 lib/usbhost \
188 lib/usbdev \
189 lib/usbhid \
190 lib/usbvirt \
191 lib/posix
192
193LIBC_BUILD = $(addsuffix .build,$(LIBC))
194LIBS_BUILD = $(addsuffix .build,$(LIBS))
195LIBN_BUILD = $(addsuffix .build,$(LIBN))
196BUILDS := $(addsuffix .build,$(DIRS))
197
198CLEANS := $(addsuffix .clean,$(DIRS)) $(addsuffix .clean,$(LIBN)) $(addsuffix .clean,$(LIBS)) $(addsuffix .clean,$(LIBC))
199
200.PHONY: all $(LIBC_BUILD) $(LIBS_BUILD) $(LIBN_BUILD) $(BUILDS) $(CLEANS) clean
201
202all: $(BUILDS)
203
204clean: $(CLEANS)
205
206$(CLEANS):
207 -$(MAKE) -C $(basename $@) clean
208
209$(BUILDS): $(LIBC_BUILD) $(LIBS_BUILD) $(LIBN_BUILD)
210 $(MAKE) -C $(basename $@) all PRECHECK=$(PRECHECK)
211
212$(LIBN_BUILD): $(LIBC_BUILD) $(LIBS_BUILD)
213 $(MAKE) -C $(basename $@) all PRECHECK=$(PRECHECK)
214
215$(LIBS_BUILD): $(LIBC_BUILD)
216 $(MAKE) -C $(basename $@) all PRECHECK=$(PRECHECK)
217
218$(LIBC_BUILD):
219 $(MAKE) -C $(basename $@) all PRECHECK=$(PRECHECK)
Note: See TracBrowser for help on using the repository browser.