source: mainline/uspace/Makefile@ d3bca35

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

cpp: added c++ to the build system, created libcpp, added and implemented the header file cstdio to libcpp

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