source: mainline/uspace/Makefile@ 45cbf897

lfn serial ticket/834-toolchain-update topic/msim-upgrade topic/simplify-dev-export
Last change on this file since 45cbf897 was ee1c2d9, checked in by Jan Vesely <jano.vesely@…>, 10 years ago

mainline changes

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