source: mainline/uspace/Makefile@ d3e938c

lfn serial ticket/834-toolchain-update topic/msim-upgrade topic/simplify-dev-export
Last change on this file since d3e938c was 7acd787, checked in by Jiri Svoboda <jiri@…>, 7 years ago

Utility for listing PCI devices

Currently all information presented can also be gathered from devctl -v,
although 'pci' prints it in a nice compact format. Ability to print
more information, including information not available from devctl,
can be added later.

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