source: mainline/uspace/Makefile@ c190b34

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

Volsrv missing from makefile dir list.

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