Add virtio-net empty implementation
[helenos.git] / uspace / Makefile
bloba30c03073ab5a44cf66d4c40ac9d9a7fecc9d04d
2 # Copyright (c) 2005 Martin Decky
3 # All rights reserved.
5 # Redistribution and use in source and binary forms, with or without
6 # modification, are permitted provided that the following conditions
7 # are met:
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.
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.
29 -include ../Makefile.common
30 -include ../Makefile.config
32 ## Common binaries
35 DIRS = \
36 app/barber \
37 app/bdsh \
38 app/bithenge \
39 app/blkdump \
40 app/bnchmark \
41 app/corecfg \
42 app/devctl \
43 app/dnscfg \
44 app/dnsres \
45 app/download \
46 app/edit \
47 app/fdisk \
48 app/fontviewer \
49 app/getterm \
50 app/gunzip \
51 app/init \
52 app/inet \
53 app/kill \
54 app/killall \
55 app/kio \
56 app/loc \
57 app/logset \
58 app/mixerctl \
59 app/mkfat \
60 app/mkexfat \
61 app/mkmfs \
62 app/modplay \
63 app/netecho \
64 app/nterm \
65 app/redir \
66 app/rcutest \
67 app/rcubench \
68 app/sbi \
69 app/sportdmp \
70 app/stats \
71 app/taskdump \
72 app/tester \
73 app/testread \
74 app/testwrit \
75 app/tetris \
76 app/tmon \
77 app/trace \
78 app/top \
79 app/untar \
80 app/usbinfo \
81 app/vuhid \
82 app/nic \
83 app/ping \
84 app/pkg \
85 app/sysinfo \
86 app/sysinst \
87 app/mkbd \
88 app/date \
89 app/vcalc \
90 app/vdemo \
91 app/viewer \
92 app/vlaunch \
93 app/vterm \
94 app/df \
95 app/wavplay \
96 app/websrv \
97 app/wifi_supplicant \
98 srv/audio/hound \
99 srv/clipboard \
100 srv/locsrv \
101 srv/logger \
102 srv/klog \
103 srv/devman \
104 srv/loader \
105 srv/net/dhcp \
106 srv/net/dnsrsrv \
107 srv/net/ethip \
108 srv/net/inetsrv \
109 srv/net/loopip \
110 srv/net/nconfsrv \
111 srv/net/slip \
112 srv/net/tcp \
113 srv/net/udp \
114 srv/ns \
115 srv/taskmon \
116 srv/vfs \
117 srv/bd/sata_bd \
118 srv/bd/file_bd \
119 srv/bd/rd \
120 srv/bd/vbd \
121 srv/fs/exfat \
122 srv/fs/udf \
123 srv/fs/fat \
124 srv/fs/cdfs \
125 srv/fs/tmpfs \
126 srv/fs/mfs \
127 srv/fs/locfs \
128 srv/fs/ext4fs \
129 srv/volsrv \
130 srv/hid/compositor \
131 srv/hid/console \
132 srv/hid/s3c24xx_ts \
133 srv/hid/isdv4_tablet \
134 srv/hid/input \
135 srv/hid/output \
136 srv/hid/remcons \
137 srv/hw/char/s3c24xx_uart \
138 srv/hid/rfb \
139 srv/test/chardev-test \
140 drv/audio/hdaudio \
141 drv/audio/sb16 \
142 drv/root/root \
143 drv/root/virt \
144 drv/block/ahci \
145 drv/block/ata_bd \
146 drv/block/ddisk \
147 drv/block/usbmast \
148 drv/bus/adb/cuda_adb \
149 drv/bus/isa \
150 drv/bus/pci/pciintel \
151 drv/bus/usb/ehci \
152 drv/bus/usb/ohci \
153 drv/bus/usb/uhci \
154 drv/bus/usb/usbdiag \
155 drv/bus/usb/usbflbk \
156 drv/bus/usb/usbhub \
157 drv/bus/usb/usbmid \
158 drv/bus/usb/vhc \
159 drv/bus/usb/xhci \
160 drv/char/i8042 \
161 drv/char/msim-con \
162 drv/char/ns8250 \
163 drv/char/pl050 \
164 drv/char/ski-con \
165 drv/char/sun4v-con \
166 drv/fb/amdm37x_dispc \
167 drv/fb/kfb \
168 drv/hid/adb-kbd \
169 drv/hid/adb-mouse \
170 drv/hid/atkbd \
171 drv/hid/ps2mouse \
172 drv/hid/usbhid \
173 drv/hid/xtkbd \
174 drv/intctl/apic \
175 drv/intctl/i8259 \
176 drv/intctl/icp-ic \
177 drv/intctl/obio \
178 drv/nic/ne2k \
179 drv/nic/e1k \
180 drv/nic/rtl8139 \
181 drv/nic/rtl8169 \
182 drv/nic/ar9271 \
183 drv/nic/virtio-net \
184 drv/platform/amdm37x \
185 drv/platform/icp \
186 drv/platform/mac \
187 drv/platform/malta \
188 drv/platform/msim \
189 drv/platform/pc \
190 drv/platform/ski \
191 drv/platform/sun4v \
192 drv/test/test1 \
193 drv/test/test2 \
194 drv/test/test3 \
195 drv/time/cmos-rtc
197 ## sun4u driver won't compile on 32-bit targets
198 ifeq ($(UARCH),sparc64)
199 DIRS += \
200 drv/platform/sun4u
201 endif
203 ## Dynamic linking tests
205 ifeq ($(CONFIG_BUILD_SHARED_LIBS),y)
206 DIRS += \
207 app/dltest \
208 app/dltests
209 endif
211 ## System libraries
214 BASE_LIBS = \
215 lib/c \
216 lib/softint \
217 lib/softfloat
219 LIBS = \
220 lib/fs \
221 lib/block \
222 lib/crypto \
223 lib/clui \
224 lib/dltest \
225 lib/fdisk \
226 lib/fmtutil \
227 lib/scsi \
228 lib/compress \
229 lib/drv \
230 lib/graph \
231 lib/gui \
232 lib/hound \
233 lib/http \
234 lib/softrend \
235 lib/draw \
236 lib/label \
237 lib/math \
238 lib/minix \
239 lib/nettl \
240 lib/nic \
241 lib/ext4 \
242 lib/trackmod \
243 lib/uri \
244 lib/usb \
245 lib/usbhost \
246 lib/usbdev \
247 lib/usbhid \
248 lib/usbvirt \
249 lib/pcm \
250 lib/pcut \
251 lib/bithenge \
252 lib/posix \
253 lib/ieee80211
255 BASE_BUILDS := $(addsuffix .build,$(BASE_LIBS))
256 BUILDS := $(addsuffix .build,$(DIRS) $(LIBS))
257 BUILDS_TESTS := $(addsuffix .build-test,$(DIRS) $(LIBS) $(BASE_LIBS))
258 DEPS = $(addsuffix /deps.mk,$(DIRS) $(LIBS))
259 CLEANS := $(addsuffix .clean,$(DIRS) $(LIBS) $(BASE_LIBS))
261 .PHONY: all $(BASE_BUILDS) $(BUILDS) $(BUILDS_TESTS) $(CLEANS) clean export
263 all: $(BUILDS) $(BUILDS_TESTS)
265 $(BUILDS_TESTS): $(BASE_BUILDS) $(BUILDS)
266 $(MAKE) -r -C $(basename $@) all-test PRECHECK=$(PRECHECK)
268 export: lib/posix.build lib/math.build lib/clui.build
269 $(MAKE) -r -C lib/posix export EXPORT_DIR=$(EXPORT_DIR)
271 clean: $(CLEANS)
272 find lib app drv srv -name '*.o' -follow -exec rm \{\} \;
273 find lib app drv srv -name '*.lo' -follow -exec rm \{\} \;
274 find lib app drv srv -name '*.d' -follow -exec rm \{\} \;
276 $(CLEANS):
277 -$(MAKE) -r -C $(basename $@) fasterclean
279 $(BASE_BUILDS) $(BUILDS):
280 $(MAKE) -r -C $(basename $@) all PRECHECK=$(PRECHECK)
282 $(DEPS): %/deps.mk: %/Makefile
283 $(MAKE) -r -C $(@D) deps.mk SELF_TARGET="$(@D).build"
285 # Special case for base libraries.
286 lib/c.build: lib/softfloat.build lib/softint.build
288 $(BUILDS): $(BASE_BUILDS)
290 -include $(DEPS)