source: mainline/uspace/Makefile@ 3ae7827

lfn serial ticket/834-toolchain-update topic/msim-upgrade topic/simplify-dev-export
Last change on this file since 3ae7827 was a57a79c, checked in by Dzejrou <dzejrou@…>, 7 years ago

cpp: fixed issues created by the addition of abi/_bits, changes to the build system and added <cwchar> that was made possible by the addition of <wchar.h> to libc

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