source: mainline/uspace/Makefile@ 2aaba7e

lfn serial ticket/834-toolchain-update topic/msim-upgrade topic/simplify-dev-export
Last change on this file since 2aaba7e was 41ebc36, checked in by Petr Mánek <petr.manek@…>, 8 years ago

usbdiag: move contents of libusbdiag to libdrv, registered usbdiag interface into the master routing table, repaired broken references

  • Property mode set to 100644
File size: 5.7 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/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 drv/audio/hdaudio \
140 drv/audio/sb16 \
141 drv/root/root \
142 drv/root/virt \
143 drv/block/ahci \
144 drv/block/ata_bd \
145 drv/block/ddisk \
146 drv/block/usbmast \
147 drv/bus/adb/cuda_adb \
148 drv/bus/isa \
149 drv/bus/pci/pciintel \
150 drv/bus/usb/ehci \
151 drv/bus/usb/ohci \
152 drv/bus/usb/uhci \
153 drv/bus/usb/usbdiag \
154 drv/bus/usb/usbflbk \
155 drv/bus/usb/usbhub \
156 drv/bus/usb/usbmid \
157 drv/bus/usb/vhc \
158 drv/bus/usb/xhci \
159 drv/char/i8042 \
160 drv/char/msim-con \
161 drv/char/ns8250 \
162 drv/char/pl050 \
163 drv/char/ski-con \
164 drv/char/sun4v-con \
165 drv/fb/amdm37x_dispc \
166 drv/fb/kfb \
167 drv/hid/atkbd \
168 drv/hid/ps2mouse \
169 drv/hid/usbhid \
170 drv/hid/xtkbd \
171 drv/intctl/apic \
172 drv/intctl/i8259 \
173 drv/intctl/icp-ic \
174 drv/intctl/obio \
175 drv/nic/ne2k \
176 drv/nic/e1k \
177 drv/nic/rtl8139 \
178 drv/nic/rtl8169 \
179 drv/nic/ar9271 \
180 drv/platform/amdm37x \
181 drv/platform/icp \
182 drv/platform/mac \
183 drv/platform/malta \
184 drv/platform/msim \
185 drv/platform/pc \
186 drv/platform/ski \
187 drv/platform/sun4v \
188 drv/test/test1 \
189 drv/test/test2 \
190 drv/test/test3 \
191 drv/time/cmos-rtc
192
193## sun4u driver won't compile on 32-bit targets
194ifeq ($(UARCH),sparc64)
195 DIRS += \
196 drv/platform/sun4u
197endif
198
199## Dynamic linking tests
200#
201ifeq ($(CONFIG_BUILD_SHARED_LIBS),y)
202 DIRS += \
203 app/dltest \
204 app/dltests
205endif
206
207## System libraries
208#
209
210BASE_LIBS = \
211 lib/c \
212 lib/softint \
213 lib/softfloat
214
215LIBS = \
216 lib/fs \
217 lib/block \
218 lib/crypto \
219 lib/clui \
220 lib/dltest \
221 lib/fdisk \
222 lib/fmtutil \
223 lib/scsi \
224 lib/compress \
225 lib/drv \
226 lib/graph \
227 lib/gui \
228 lib/hound \
229 lib/http \
230 lib/softrend \
231 lib/draw \
232 lib/label \
233 lib/math \
234 lib/minix \
235 lib/nettl \
236 lib/nic \
237 lib/ext4 \
238 lib/trackmod \
239 lib/uri \
240 lib/usb \
241 lib/usbhost \
242 lib/usbdev \
243 lib/usbhid \
244 lib/usbvirt \
245 lib/pcm \
246 lib/pcut \
247 lib/bithenge \
248 lib/posix \
249 lib/ieee80211
250
251BASE_BUILDS := $(addsuffix .build,$(BASE_LIBS))
252BUILDS := $(addsuffix .build,$(DIRS) $(LIBS))
253BUILDS_TESTS := $(addsuffix .build-test,$(DIRS) $(LIBS) $(BASE_LIBS))
254DEPS = $(addsuffix /deps.mk,$(DIRS) $(LIBS))
255CLEANS := $(addsuffix .clean,$(DIRS) $(LIBS) $(BASE_LIBS))
256
257.PHONY: all $(BASE_BUILDS) $(BUILDS) $(BUILDS_TESTS) $(CLEANS) clean
258
259all: $(BUILDS) $(BUILDS_TESTS)
260
261$(BUILDS_TESTS): $(BASE_BUILDS) $(BUILDS)
262 $(MAKE) -r -C $(basename $@) all-test PRECHECK=$(PRECHECK)
263
264clean: $(CLEANS)
265 find lib app drv srv -name '*.o' -follow -exec rm \{\} \;
266 find lib app drv srv -name '*.lo' -follow -exec rm \{\} \;
267 find lib app drv srv -name '*.d' -follow -exec rm \{\} \;
268
269$(CLEANS):
270 -$(MAKE) -r -C $(basename $@) fasterclean
271
272$(BASE_BUILDS) $(BUILDS):
273 $(MAKE) -r -C $(basename $@) all PRECHECK=$(PRECHECK)
274
275$(DEPS): %/deps.mk: %/Makefile
276 $(MAKE) -r -C $(@D) deps.mk SELF_TARGET="$(@D).build"
277
278# Special case for base libraries.
279lib/c.build: lib/softfloat.build lib/softint.build
280
281$(BUILDS): $(BASE_BUILDS)
282
283-include $(DEPS)
Note: See TracBrowser for help on using the repository browser.