source: mainline/uspace/Makefile@ 6a0db524

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

Stubs of volsrv, vbd and liblabel.

  • Property mode set to 100644
File size: 5.7 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/hdisk \
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/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/mkbd \
84 app/date \
85 app/vdemo \
86 app/viewer \
87 app/vlaunch \
88 app/vterm \
89 app/df \
90 app/wavplay \
91 app/websrv \
92 app/wifi_supplicant \
93 srv/audio/hound \
94 srv/clipboard \
95 srv/locsrv \
96 srv/logger \
97 srv/klog \
98 srv/devman \
99 srv/loader \
100 srv/net/dhcp \
101 srv/net/dnsrsrv \
102 srv/net/ethip \
103 srv/net/inetsrv \
104 srv/net/loopip \
105 srv/net/nconfsrv \
106 srv/net/slip \
107 srv/net/tcp \
108 srv/net/udp \
109 srv/ns \
110 srv/taskmon \
111 srv/vfs \
112 srv/bd/sata_bd \
113 srv/bd/file_bd \
114 srv/bd/rd \
115 srv/bd/part/guid_part \
116 srv/bd/part/mbr_part \
117 srv/bd/vbd \
118 srv/fs/exfat \
119 srv/fs/udf \
120 srv/fs/fat \
121 srv/fs/cdfs \
122 srv/fs/tmpfs \
123 srv/fs/mfs \
124 srv/fs/locfs \
125 srv/fs/ext4fs \
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/xtkbd \
146 drv/test/test1 \
147 drv/test/test2 \
148 drv/test/test3 \
149 drv/fb/kfb \
150 drv/bus/usb/ehci \
151 drv/bus/usb/ohci \
152 drv/bus/usb/uhci \
153 drv/bus/usb/uhcirh \
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## Platform-specific hardware support
168#
169
170ifeq ($(UARCH), $(filter $(UARCH),amd64 ia32 ia64))
171 DIRS += \
172 drv/platform/pc \
173 drv/bus/pci/pciintel \
174 drv/bus/isa \
175 drv/char/ns8250 \
176 drv/time/cmos-rtc \
177 srv/hw/irc/apic \
178 srv/hw/irc/i8259
179endif
180
181ifeq ($(UARCH), $(filter $(UARCH),mips32 mips32eb))
182ifeq ($(MACHINE),msim)
183 DIRS += \
184 drv/platform/msim
185else
186 DIRS += \
187 drv/platform/malta \
188 drv/bus/pci/pciintel \
189 drv/bus/isa
190endif
191endif
192
193ifeq ($(UARCH),ppc32)
194 DIRS += \
195 drv/platform/mac \
196 drv/bus/pci/pciintel \
197 srv/hw/bus/cuda_adb
198endif
199
200ifeq ($(UARCH),sparc64)
201 DIRS += \
202 srv/hw/irc/obio
203endif
204
205ifeq ($(UARCH),arm32)
206 DIRS += \
207 drv/platform/amdm37x \
208 drv/fb/amdm37x_dispc \
209 srv/hw/irc/icp-ic
210endif
211
212## System libraries
213#
214
215LIBC = lib/c
216LIBS = \
217 lib/fs \
218 lib/block \
219 lib/crypto \
220 lib/clui \
221 lib/fdisk \
222 lib/fmtutil \
223 lib/scsi \
224 lib/compress \
225 lib/softint \
226 lib/softfloat \
227 lib/drv \
228 lib/graph \
229 lib/gui \
230 lib/hound \
231 lib/http \
232 lib/softrend \
233 lib/draw \
234 lib/label \
235 lib/math \
236 lib/nettl \
237 lib/nic \
238 lib/ext4 \
239 lib/trackmod \
240 lib/uri \
241 lib/urcu \
242 lib/usb \
243 lib/usbhost \
244 lib/usbdev \
245 lib/usbhid \
246 lib/usbvirt \
247 lib/pcm \
248 lib/pcut \
249 lib/bithenge \
250 lib/posix \
251 lib/mbr \
252 lib/gpt \
253 lib/ieee80211
254
255LIBC_BUILD = $(addsuffix .build,$(LIBC))
256LIBS_BUILD = $(addsuffix .build,$(LIBS))
257LIBN_BUILD = $(addsuffix .build,$(LIBN))
258BUILDS := $(addsuffix .build,$(DIRS))
259BUILDS_TESTS := $(addsuffix .build-test,$(DIRS) $(LIBS) lib/c)
260
261CLEANS := $(addsuffix .clean,$(DIRS)) $(addsuffix .clean,$(LIBN)) $(addsuffix .clean,$(LIBS)) $(addsuffix .clean,$(LIBC))
262
263.PHONY: all $(LIBC_BUILD) $(LIBS_BUILD) $(LIBN_BUILD) $(BUILDS) $(CLEANS) clean
264
265all: $(BUILDS) $(BUILDS_TESTS)
266
267$(BUILDS_TESTS): $(BUILDS)
268 $(MAKE) -C $(basename $@) all-test PRECHECK=$(PRECHECK)
269
270clean: $(CLEANS)
271
272$(CLEANS):
273 -$(MAKE) -C $(basename $@) clean
274
275$(BUILDS): $(LIBC_BUILD) $(LIBS_BUILD) $(LIBN_BUILD)
276 $(MAKE) -C $(basename $@) all PRECHECK=$(PRECHECK)
277
278$(LIBN_BUILD): $(LIBC_BUILD) $(LIBS_BUILD)
279 $(MAKE) -C $(basename $@) all PRECHECK=$(PRECHECK)
280
281$(LIBS_BUILD): $(LIBC_BUILD)
282 $(MAKE) -C $(basename $@) all PRECHECK=$(PRECHECK)
283
284$(LIBC_BUILD):
285 $(MAKE) -C $(basename $@) all PRECHECK=$(PRECHECK)
Note: See TracBrowser for help on using the repository browser.