source: mainline/uspace/Makefile@ 659ebd86

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

Merge mainline changes

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