source: mainline/uspace/Makefile@ 81c4e6ec

Last change on this file since 81c4e6ec was fb1015fc, checked in by Matthieu Riolo <matthieu.riolo@…>, 6 years ago

correcting makefiles for sysctl

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