source: mainline/uspace/Makefile@ 9259d20

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

Gfxdemo application stub, Gfx context virtual method dispatch

  • 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/gfxdemo \
52 app/gunzip \
53 app/hbench \
54 app/init \
55 app/inet \
56 app/kill \
57 app/killall \
58 app/kio \
59 app/loc \
60 app/logset \
61 app/lprint \
62 app/mixerctl \
63 app/mkfat \
64 app/mkexfat \
65 app/mkext4 \
66 app/mkmfs \
67 app/modplay \
68 app/netecho \
69 app/nterm \
70 app/pci \
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/block/virtio-blk \
156 drv/bus/adb/cuda_adb \
157 drv/bus/isa \
158 drv/bus/pci/pciintel \
159 drv/bus/usb/ehci \
160 drv/bus/usb/ohci \
161 drv/bus/usb/uhci \
162 drv/bus/usb/usbdiag \
163 drv/bus/usb/usbflbk \
164 drv/bus/usb/usbhub \
165 drv/bus/usb/usbmid \
166 drv/bus/usb/vhc \
167 drv/bus/usb/xhci \
168 drv/char/i8042 \
169 drv/char/msim-con \
170 drv/char/ns8250 \
171 drv/char/pc-lpt \
172 drv/char/pl050 \
173 drv/char/ski-con \
174 drv/char/sun4v-con \
175 drv/fb/amdm37x_dispc \
176 drv/fb/kfb \
177 drv/hid/adb-kbd \
178 drv/hid/adb-mouse \
179 drv/hid/atkbd \
180 drv/hid/ps2mouse \
181 drv/hid/usbhid \
182 drv/hid/xtkbd \
183 drv/intctl/apic \
184 drv/intctl/i8259 \
185 drv/intctl/icp-ic \
186 drv/intctl/obio \
187 drv/nic/ne2k \
188 drv/nic/e1k \
189 drv/nic/rtl8139 \
190 drv/nic/rtl8169 \
191 drv/nic/ar9271 \
192 drv/nic/virtio-net \
193 drv/platform/amdm37x \
194 drv/platform/icp \
195 drv/platform/mac \
196 drv/platform/malta \
197 drv/platform/msim \
198 drv/platform/pc \
199 drv/platform/ski \
200 drv/platform/sun4v \
201 drv/test/test1 \
202 drv/test/test2 \
203 drv/test/test3 \
204 drv/time/cmos-rtc
205
206## sun4u driver won't compile on 32-bit targets
207ifeq ($(UARCH),sparc64)
208 DIRS += \
209 drv/platform/sun4u
210endif
211
212## Dynamic linking tests
213#
214ifeq ($(CONFIG_BUILD_SHARED_LIBS),y)
215 DIRS += \
216 app/dltest \
217 app/dltests
218endif
219
220## System libraries
221#
222
223BASE_LIBS = \
224 lib/c \
225 lib/cpp \
226 lib/untar
227
228LIBS = \
229 lib/fs \
230 lib/block \
231 lib/crypto \
232 lib/clui \
233 lib/dltest \
234 lib/fdisk \
235 lib/fmtutil \
236 lib/gfx \
237 lib/scsi \
238 lib/sif \
239 lib/compress \
240 lib/drv \
241 lib/graph \
242 lib/gui \
243 lib/hound \
244 lib/http \
245 lib/softrend \
246 lib/draw \
247 lib/label \
248 lib/math \
249 lib/minix \
250 lib/nettl \
251 lib/nic \
252 lib/ext4 \
253 lib/trackmod \
254 lib/uri \
255 lib/usb \
256 lib/usbhost \
257 lib/usbdev \
258 lib/usbhid \
259 lib/usbvirt \
260 lib/pcm \
261 lib/pcut \
262 lib/bithenge \
263 lib/posix \
264 lib/ieee80211 \
265 lib/virtio
266
267BASE_BUILDS := $(addsuffix .build,$(BASE_LIBS))
268BUILDS := $(addsuffix .build,$(DIRS) $(LIBS))
269BUILDS_TESTS := $(addsuffix .build-test,$(DIRS) $(LIBS) $(BASE_LIBS))
270DEPS = $(addsuffix /deps.mk,$(DIRS) $(LIBS))
271CLEANS := $(addsuffix .clean,$(DIRS) $(LIBS) $(BASE_LIBS))
272
273.PHONY: all $(BASE_BUILDS) $(BUILDS) $(BUILDS_TESTS) $(CLEANS) clean export
274
275all: $(BUILDS) $(BUILDS_TESTS)
276
277$(BUILDS_TESTS): $(BASE_BUILDS) $(BUILDS)
278 $(MAKE) -r -C $(basename $@) all-test PRECHECK=$(PRECHECK)
279
280export: $(BUILDS)
281 mkdir -p $(EXPORT_DIR)
282 $(MAKE) -r -C lib/posix export EXPORT_DIR=$(EXPORT_DIR)
283
284clean: $(CLEANS)
285 find lib app drv srv -name '*.o' -follow -exec rm \{\} \;
286 find lib app drv srv -name '*.lo' -follow -exec rm \{\} \;
287 find lib app drv srv -name '*.d' -follow -exec rm \{\} \;
288 rm -fr export
289
290$(CLEANS):
291 -$(MAKE) -r -C $(basename $@) fasterclean
292
293$(BASE_BUILDS) $(BUILDS):
294 $(MAKE) -r -C $(basename $@) all PRECHECK=$(PRECHECK)
295
296$(DEPS): %/deps.mk: %/Makefile
297 $(MAKE) -r -C $(@D) deps.mk SELF_TARGET="$(@D).build"
298
299$(BUILDS): $(BASE_BUILDS)
300
301-include $(DEPS)
Note: See TracBrowser for help on using the repository browser.