source: mainline/uspace/Makefile@ 58775d30

lfn serial ticket/834-toolchain-update topic/msim-upgrade topic/simplify-dev-export
Last change on this file since 58775d30 was 58775d30, checked in by Jan Vesely <jano.vesely@…>, 11 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/netecho \
80 app/netspeed \
81 app/nettest1 \
82 app/nettest2 \
83 app/nettest3 \
84 app/nic \
85 app/ping \
86 app/sysinfo \
87 app/mkbd \
88 app/date \
89 app/vdemo \
90 app/viewer \
91 app/vlaunch \
92 app/vterm \
93 app/df \
94 app/wavplay \
95 app/websrv \
96 srv/audio/hound \
97 srv/clipboard \
98 srv/locsrv \
99 srv/logger \
100 srv/klog \
101 srv/devman \
102 srv/loader \
103 srv/net/dhcp \
104 srv/net/dnsrsrv \
105 srv/net/ethip \
106 srv/net/inetsrv \
107 srv/net/loopip \
108 srv/net/nconfsrv \
109 srv/net/slip \
110 srv/net/tcp \
111 srv/net/udp \
112 srv/ns \
113 srv/taskmon \
114 srv/vfs \
115 srv/bd/sata_bd \
116 srv/bd/file_bd \
117 srv/bd/rd \
118 srv/bd/part/guid_part \
119 srv/bd/part/mbr_part \
120 srv/fs/exfat \
121 srv/fs/udf \
122 srv/fs/fat \
123 srv/fs/cdfs \
124 srv/fs/tmpfs \
125 srv/fs/mfs \
126 srv/fs/locfs \
127 srv/fs/ext4fs \
128 srv/hid/compositor \
129 srv/hid/console \
130 srv/hid/s3c24xx_ts \
131 srv/hid/isdv4_tablet \
132 srv/hid/input \
133 srv/hid/output \
134 srv/hid/remcons \
135 srv/hw/char/s3c24xx_uart \
136 srv/hid/rfb \
137 drv/audio/hdaudio \
138 drv/audio/sb16 \
139 drv/root/root \
140 drv/root/virt \
141 drv/block/ahci \
142 drv/block/ata_bd \
143 drv/char/i8042 \
144 drv/char/pl050 \
145 drv/char/ps2mouse \
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/platform/icp
165
166## Platform-specific hardware support
167#
168
169ifeq ($(UARCH), $(filter $(UARCH),amd64 ia32 ia64))
170 DIRS += \
171 drv/platform/pc \
172 drv/bus/pci/pciintel \
173 drv/bus/isa \
174 drv/char/ns8250 \
175 drv/time/cmos-rtc \
176 srv/hw/irc/apic \
177 srv/hw/irc/i8259
178endif
179
180ifeq ($(UARCH), $(filter $(UARCH),mips32 mips32eb))
181 DIRS += \
182 drv/platform/malta \
183 drv/bus/pci/pciintel \
184 drv/bus/isa
185endif
186
187ifeq ($(UARCH),ppc32)
188 DIRS += \
189 drv/platform/mac \
190 drv/bus/pci/pciintel \
191 srv/hw/bus/cuda_adb
192endif
193
194ifeq ($(UARCH),sparc64)
195 DIRS += \
196 srv/hw/irc/obio
197endif
198
199ifeq ($(UARCH),arm32)
200 DIRS += \
201 drv/platform/amdm37x \
202 drv/fb/amdm37x_dispc \
203 srv/hw/irc/icp-ic
204endif
205
206## System libraries
207#
208
209LIBC = lib/c
210LIBS = \
211 lib/fs \
212 lib/block \
213 lib/clui \
214 lib/fmtutil \
215 lib/scsi \
216 lib/compress \
217 lib/softint \
218 lib/softfloat \
219 lib/drv \
220 lib/graph \
221 lib/gui \
222 lib/hound \
223 lib/http \
224 lib/softrend \
225 lib/draw \
226 lib/math \
227 lib/net \
228 lib/nic \
229 lib/ext4 \
230 lib/trackmod \
231 lib/uri \
232 lib/urcu \
233 lib/usb \
234 lib/usbhost \
235 lib/usbdev \
236 lib/usbhid \
237 lib/usbvirt \
238 lib/pcm \
239 lib/pcut \
240 lib/bithenge \
241 lib/posix \
242 lib/mbr \
243 lib/gpt
244
245LIBC_BUILD = $(addsuffix .build,$(LIBC))
246LIBS_BUILD = $(addsuffix .build,$(LIBS))
247LIBN_BUILD = $(addsuffix .build,$(LIBN))
248BUILDS := $(addsuffix .build,$(DIRS))
249BUILDS_TESTS := $(addsuffix .build-test,$(DIRS) $(LIBS) lib/c)
250
251CLEANS := $(addsuffix .clean,$(DIRS)) $(addsuffix .clean,$(LIBN)) $(addsuffix .clean,$(LIBS)) $(addsuffix .clean,$(LIBC))
252
253.PHONY: all $(LIBC_BUILD) $(LIBS_BUILD) $(LIBN_BUILD) $(BUILDS) $(CLEANS) clean
254
255all: $(BUILDS) $(BUILDS_TESTS)
256
257$(BUILDS_TESTS): $(BUILDS)
258 $(MAKE) -C $(basename $@) all-test PRECHECK=$(PRECHECK)
259
260clean: $(CLEANS)
261
262$(CLEANS):
263 -$(MAKE) -C $(basename $@) clean
264
265$(BUILDS): $(LIBC_BUILD) $(LIBS_BUILD) $(LIBN_BUILD)
266 $(MAKE) -C $(basename $@) all PRECHECK=$(PRECHECK)
267
268$(LIBN_BUILD): $(LIBC_BUILD) $(LIBS_BUILD)
269 $(MAKE) -C $(basename $@) all PRECHECK=$(PRECHECK)
270
271$(LIBS_BUILD): $(LIBC_BUILD)
272 $(MAKE) -C $(basename $@) all PRECHECK=$(PRECHECK)
273
274$(LIBC_BUILD):
275 $(MAKE) -C $(basename $@) all PRECHECK=$(PRECHECK)
Note: See TracBrowser for help on using the repository browser.