source: mainline/uspace/Makefile@ b412168

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

merge mainline changes

  • Property mode set to 100644
File size: 5.5 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/sbi \
65 app/sportdmp \
66 app/stats \
67 app/taskdump \
68 app/tester \
69 app/testread \
70 app/testwrit \
71 app/tetris \
72 app/trace \
73 app/top \
74 app/untar \
75 app/usbinfo \
76 app/vuhid \
77 app/netecho \
78 app/netspeed \
79 app/nettest1 \
80 app/nettest2 \
81 app/nettest3 \
82 app/nic \
83 app/ping \
84 app/sysinfo \
85 app/mkbd \
86 app/date \
87 app/vdemo \
88 app/viewer \
89 app/vlaunch \
90 app/vterm \
91 app/df \
92 app/wavplay \
93 app/websrv \
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/part/guid_part \
117 srv/bd/part/mbr_part \
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/char/i8042 \
142 drv/char/pl050 \
143 drv/char/ps2mouse \
144 drv/char/xtkbd \
145 drv/test/test1 \
146 drv/test/test2 \
147 drv/test/test3 \
148 drv/fb/kfb \
149 drv/bus/usb/ehci \
150 drv/bus/usb/ohci \
151 drv/bus/usb/uhci \
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/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))
179 DIRS += \
180 drv/platform/malta \
181 drv/bus/pci/pciintel \
182 drv/bus/isa
183endif
184
185ifeq ($(UARCH),ppc32)
186 DIRS += \
187 drv/platform/mac \
188 drv/bus/pci/pciintel \
189 srv/hw/bus/cuda_adb
190endif
191
192ifeq ($(UARCH),sparc64)
193 DIRS += \
194 srv/hw/irc/obio
195endif
196
197ifeq ($(UARCH),arm32)
198 DIRS += \
199 drv/platform/amdm37x \
200 drv/fb/amdm37x_dispc \
201 srv/hw/irc/icp-ic
202endif
203
204## System libraries
205#
206
207LIBC = lib/c
208LIBS = \
209 lib/fs \
210 lib/block \
211 lib/clui \
212 lib/fmtutil \
213 lib/scsi \
214 lib/compress \
215 lib/softint \
216 lib/softfloat \
217 lib/drv \
218 lib/graph \
219 lib/gui \
220 lib/hound \
221 lib/http \
222 lib/softrend \
223 lib/draw \
224 lib/math \
225 lib/net \
226 lib/nic \
227 lib/ext4 \
228 lib/trackmod \
229 lib/uri \
230 lib/usb \
231 lib/usbhost \
232 lib/usbdev \
233 lib/usbhid \
234 lib/usbvirt \
235 lib/pcm \
236 lib/pcut \
237 lib/bithenge \
238 lib/posix \
239 lib/mbr \
240 lib/gpt
241
242LIBC_BUILD = $(addsuffix .build,$(LIBC))
243LIBS_BUILD = $(addsuffix .build,$(LIBS))
244LIBN_BUILD = $(addsuffix .build,$(LIBN))
245BUILDS := $(addsuffix .build,$(DIRS))
246BUILDS_TESTS := $(addsuffix .build-test,$(DIRS) $(LIBS) lib/c)
247
248CLEANS := $(addsuffix .clean,$(DIRS)) $(addsuffix .clean,$(LIBN)) $(addsuffix .clean,$(LIBS)) $(addsuffix .clean,$(LIBC))
249
250.PHONY: all $(LIBC_BUILD) $(LIBS_BUILD) $(LIBN_BUILD) $(BUILDS) $(CLEANS) clean
251
252all: $(BUILDS) $(BUILDS_TESTS)
253
254$(BUILDS_TESTS): $(BUILDS)
255 $(MAKE) -C $(basename $@) all-test PRECHECK=$(PRECHECK)
256
257clean: $(CLEANS)
258
259$(CLEANS):
260 -$(MAKE) -C $(basename $@) clean
261
262$(BUILDS): $(LIBC_BUILD) $(LIBS_BUILD) $(LIBN_BUILD)
263 $(MAKE) -C $(basename $@) all PRECHECK=$(PRECHECK)
264
265$(LIBN_BUILD): $(LIBC_BUILD) $(LIBS_BUILD)
266 $(MAKE) -C $(basename $@) all PRECHECK=$(PRECHECK)
267
268$(LIBS_BUILD): $(LIBC_BUILD)
269 $(MAKE) -C $(basename $@) all PRECHECK=$(PRECHECK)
270
271$(LIBC_BUILD):
272 $(MAKE) -C $(basename $@) all PRECHECK=$(PRECHECK)
Note: See TracBrowser for help on using the repository browser.