Add support for actual MAC change in networking stack.
[helenos.git] / uspace / Makefile
blobc4a18721bf782a39f29e81e31db7fb248de9ceed
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/bdsh \
37 app/bithenge \
38 app/blkdump \
39 app/bnchmark \
40 app/corecfg \
41 app/devctl \
42 app/dnscfg \
43 app/dnsres \
44 app/download \
45 app/edit \
46 app/getterm \
47 app/hdisk \
48 app/init \
49 app/inet \
50 app/kill \
51 app/killall \
52 app/kio \
53 app/loc \
54 app/logset \
55 app/mixerctl \
56 app/mkfat \
57 app/mkexfat \
58 app/mkmfs \
59 app/nterm \
60 app/redir \
61 app/sbi \
62 app/sportdmp \
63 app/stats \
64 app/taskdump \
65 app/tester \
66 app/testread \
67 app/testwrit \
68 app/tetris \
69 app/trace \
70 app/top \
71 app/untar \
72 app/usbinfo \
73 app/vuhid \
74 app/netecho \
75 app/netspeed \
76 app/nettest1 \
77 app/nettest2 \
78 app/nettest3 \
79 app/nic \
80 app/ping \
81 app/sysinfo \
82 app/mkbd \
83 app/date \
84 app/vdemo \
85 app/viewer \
86 app/vlaunch \
87 app/vterm \
88 app/df \
89 app/wavplay \
90 app/websrv \
91 srv/audio/hound \
92 srv/clipboard \
93 srv/locsrv \
94 srv/logger \
95 srv/klog \
96 srv/devman \
97 srv/loader \
98 srv/net/dhcp \
99 srv/net/dnsrsrv \
100 srv/net/ethip \
101 srv/net/inetsrv \
102 srv/net/loopip \
103 srv/net/nconfsrv \
104 srv/net/slip \
105 srv/net/tcp \
106 srv/net/udp \
107 srv/ns \
108 srv/taskmon \
109 srv/vfs \
110 srv/bd/sata_bd \
111 srv/bd/file_bd \
112 srv/bd/rd \
113 srv/bd/part/guid_part \
114 srv/bd/part/mbr_part \
115 srv/fs/exfat \
116 srv/fs/udf \
117 srv/fs/fat \
118 srv/fs/cdfs \
119 srv/fs/tmpfs \
120 srv/fs/mfs \
121 srv/fs/locfs \
122 srv/fs/ext4fs \
123 srv/hid/compositor \
124 srv/hid/console \
125 srv/hid/s3c24xx_ts \
126 srv/hid/isdv4_tablet \
127 srv/hid/input \
128 srv/hid/output \
129 srv/hid/remcons \
130 srv/hw/char/s3c24xx_uart \
131 srv/hid/rfb \
132 drv/audio/sb16 \
133 drv/infrastructure/root \
134 drv/infrastructure/rootvirt \
135 drv/block/ahci \
136 drv/block/ata_bd \
137 drv/char/i8042 \
138 drv/char/ps2mouse \
139 drv/char/xtkbd \
140 drv/test/test1 \
141 drv/test/test2 \
142 drv/test/test3 \
143 drv/fb/kfb \
144 drv/bus/usb/ehci \
145 drv/bus/usb/ohci \
146 drv/bus/usb/uhci \
147 drv/bus/usb/uhcirh \
148 drv/bus/usb/usbflbk \
149 drv/bus/usb/usbhid \
150 drv/bus/usb/usbhub \
151 drv/bus/usb/usbmast \
152 drv/bus/usb/usbmid \
153 drv/bus/usb/vhc \
154 drv/nic/ne2k \
155 drv/nic/e1k \
156 drv/nic/rtl8139 \
157 drv/nic/rtl8169
159 ## Platform-specific hardware support
162 ifeq ($(UARCH), $(filter $(UARCH),amd64 ia32 ia64))
163 DIRS += \
164 drv/infrastructure/rootpc \
165 drv/bus/pci/pciintel \
166 drv/bus/isa \
167 drv/char/ns8250 \
168 drv/time/cmos-rtc \
169 srv/hw/irc/apic \
170 srv/hw/irc/i8259
171 endif
173 ifeq ($(UARCH), $(filter $(UARCH),mips32 mips32eb))
174 DIRS += \
175 drv/infrastructure/rootmalta \
176 drv/bus/pci/pciintel \
177 drv/bus/isa
178 endif
180 ifeq ($(UARCH),ppc32)
181 DIRS += \
182 drv/infrastructure/rootmac \
183 drv/bus/pci/pciintel \
184 srv/hw/bus/cuda_adb
185 endif
187 ifeq ($(UARCH),sparc64)
188 DIRS += \
189 srv/hw/irc/obio
190 endif
192 ifeq ($(UARCH),arm32)
193 DIRS += \
194 drv/infrastructure/rootamdm37x \
195 drv/fb/amdm37x_dispc
196 endif
198 ## System libraries
201 LIBC = lib/c
202 LIBS = \
203 lib/fs \
204 lib/block \
205 lib/clui \
206 lib/fmtutil \
207 lib/scsi \
208 lib/softint \
209 lib/softfloat \
210 lib/drv \
211 lib/graph \
212 lib/gui \
213 lib/hound \
214 lib/http \
215 lib/softrend \
216 lib/draw \
217 lib/math \
218 lib/net \
219 lib/nic \
220 lib/ext4 \
221 lib/uri \
222 lib/usb \
223 lib/usbhost \
224 lib/usbdev \
225 lib/usbhid \
226 lib/usbvirt \
227 lib/pcm \
228 lib/bithenge \
229 lib/posix \
230 lib/mbr \
231 lib/gpt
233 LIBC_BUILD = $(addsuffix .build,$(LIBC))
234 LIBS_BUILD = $(addsuffix .build,$(LIBS))
235 LIBN_BUILD = $(addsuffix .build,$(LIBN))
236 BUILDS := $(addsuffix .build,$(DIRS))
238 CLEANS := $(addsuffix .clean,$(DIRS)) $(addsuffix .clean,$(LIBN)) $(addsuffix .clean,$(LIBS)) $(addsuffix .clean,$(LIBC))
240 .PHONY: all $(LIBC_BUILD) $(LIBS_BUILD) $(LIBN_BUILD) $(BUILDS) $(CLEANS) clean
242 all: $(BUILDS)
244 clean: $(CLEANS)
246 $(CLEANS):
247 -$(MAKE) -C $(basename $@) clean
249 $(BUILDS): $(LIBC_BUILD) $(LIBS_BUILD) $(LIBN_BUILD)
250 $(MAKE) -C $(basename $@) all PRECHECK=$(PRECHECK)
252 $(LIBN_BUILD): $(LIBC_BUILD) $(LIBS_BUILD)
253 $(MAKE) -C $(basename $@) all PRECHECK=$(PRECHECK)
255 $(LIBS_BUILD): $(LIBC_BUILD)
256 $(MAKE) -C $(basename $@) all PRECHECK=$(PRECHECK)
258 $(LIBC_BUILD):
259 $(MAKE) -C $(basename $@) all PRECHECK=$(PRECHECK)