source: mainline/uspace/Makefile@ b4b534ac

lfn serial ticket/834-toolchain-update topic/msim-upgrade topic/simplify-dev-export
Last change on this file since b4b534ac was b4b534ac, checked in by Jakub Jermar <jakub@…>, 9 years ago

Merge from lp:~jan.vesely/helenos/usb

  • 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/usbflbk \
155 drv/bus/usb/usbhid \
156 drv/bus/usb/usbhub \
157 drv/bus/usb/usbmast \
158 drv/bus/usb/usbmid \
159 drv/bus/usb/vhc \
160 drv/nic/ne2k \
161 drv/nic/e1k \
162 drv/nic/rtl8139 \
163 drv/nic/rtl8169 \
164 drv/nic/ar9271 \
165 drv/platform/icp
166
167
168## Platform-specific hardware support
169#
170
171ifeq ($(UARCH), $(filter $(UARCH),amd64 ia32 ia64))
172 DIRS += \
173 drv/platform/pc \
174 drv/bus/pci/pciintel \
175 drv/bus/isa \
176 drv/char/ns8250 \
177 drv/time/cmos-rtc \
178 srv/hw/irc/apic \
179 srv/hw/irc/i8259
180endif
181
182ifeq ($(UARCH), $(filter $(UARCH),mips32 mips32eb))
183ifeq ($(MACHINE),msim)
184 DIRS += \
185 drv/platform/msim
186else
187 DIRS += \
188 drv/platform/malta \
189 drv/bus/pci/pciintel \
190 drv/bus/isa
191endif
192endif
193
194ifeq ($(UARCH),ppc32)
195 DIRS += \
196 drv/platform/mac \
197 drv/bus/pci/pciintel \
198 srv/hw/bus/cuda_adb
199endif
200
201ifeq ($(UARCH),sparc64)
202 DIRS += \
203 srv/hw/irc/obio
204endif
205
206ifeq ($(UARCH),arm32)
207 DIRS += \
208 drv/platform/amdm37x \
209 drv/fb/amdm37x_dispc \
210 srv/hw/irc/icp-ic
211endif
212
213## Dynamic linking tests
214#
215ifeq ($(CONFIG_BUILD_SHARED_LIBS),y)
216 DIRS += \
217 app/dltest \
218 app/dltests
219endif
220
221## System libraries
222#
223
224LIBC = lib/c
225LIBS = \
226 lib/fs \
227 lib/block \
228 lib/crypto \
229 lib/clui \
230 lib/dltest \
231 lib/fdisk \
232 lib/fmtutil \
233 lib/scsi \
234 lib/compress \
235 lib/softint \
236 lib/softfloat \
237 lib/drv \
238 lib/graph \
239 lib/gui \
240 lib/hound \
241 lib/http \
242 lib/softrend \
243 lib/draw \
244 lib/label \
245 lib/math \
246 lib/nettl \
247 lib/nic \
248 lib/ext4 \
249 lib/trackmod \
250 lib/uri \
251 lib/usb \
252 lib/usbhost \
253 lib/usbdev \
254 lib/usbhid \
255 lib/usbvirt \
256 lib/pcm \
257 lib/pcut \
258 lib/bithenge \
259 lib/posix \
260 lib/ieee80211
261
262LIBC_BUILD = $(addsuffix .build,$(LIBC))
263LIBS_BUILD = $(addsuffix .build,$(LIBS))
264LIBN_BUILD = $(addsuffix .build,$(LIBN))
265BUILDS := $(addsuffix .build,$(DIRS))
266BUILDS_TESTS := $(addsuffix .build-test,$(DIRS) $(LIBS) lib/c)
267
268CLEANS := $(addsuffix .clean,$(DIRS)) $(addsuffix .clean,$(LIBN)) $(addsuffix .clean,$(LIBS)) $(addsuffix .clean,$(LIBC))
269
270.PHONY: all $(LIBC_BUILD) $(LIBS_BUILD) $(LIBN_BUILD) $(BUILDS) $(CLEANS) clean
271
272all: $(BUILDS) $(BUILDS_TESTS)
273
274$(BUILDS_TESTS): $(LIBC_BUILD) $(LIBS_BUILD) $(LIBN_BUILD)
275 $(MAKE) -C $(basename $@) all-test PRECHECK=$(PRECHECK)
276
277clean: $(CLEANS)
278
279$(CLEANS):
280 -$(MAKE) -C $(basename $@) clean
281
282$(BUILDS): $(LIBC_BUILD) $(LIBS_BUILD) $(LIBN_BUILD)
283 $(MAKE) -C $(basename $@) all PRECHECK=$(PRECHECK)
284
285$(LIBN_BUILD): $(LIBC_BUILD) $(LIBS_BUILD)
286 $(MAKE) -C $(basename $@) all PRECHECK=$(PRECHECK)
287
288$(LIBS_BUILD): $(LIBC_BUILD)
289 $(MAKE) -C $(basename $@) all PRECHECK=$(PRECHECK)
290
291$(LIBC_BUILD):
292 $(MAKE) -C $(basename $@) all PRECHECK=$(PRECHECK)
Note: See TracBrowser for help on using the repository browser.