source: mainline/uspace/Makefile@ b1c57a8

lfn serial ticket/834-toolchain-update topic/msim-upgrade topic/simplify-dev-export
Last change on this file since b1c57a8 was b1c57a8, checked in by Jakub Jermar <jakub@…>, 11 years ago

Merge from lp:~adam-hraska+lp/helenos/rcu/.

Only merge from the feature branch and resolve all conflicts.

  • 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/bdsh \
37 app/bithenge \
38 app/blkdump \
39 app/bnchmark \
40 app/corecfg \
41 app/devctl \
42 app/dnscfg \
43 app/dnsres \
44 app/download \
45 app/edit \
46 app/fontviewer \
47 app/getterm \
48 app/hdisk \
49 app/init \
50 app/inet \
51 app/kill \
52 app/killall \
53 app/kio \
54 app/loc \
55 app/logset \
56 app/mixerctl \
57 app/mkfat \
58 app/mkexfat \
59 app/mkmfs \
60 app/modplay \
61 app/nterm \
62 app/redir \
63 app/rcutest \
64 app/rcubench \
65 app/sbi \
66 app/sportdmp \
67 app/stats \
68 app/taskdump \
69 app/tester \
70 app/testread \
71 app/testwrit \
72 app/tetris \
73 app/trace \
74 app/top \
75 app/untar \
76 app/usbinfo \
77 app/vuhid \
78 app/netecho \
79 app/netspeed \
80 app/nettest1 \
81 app/nettest2 \
82 app/nettest3 \
83 app/nic \
84 app/ping \
85 app/sysinfo \
86 app/mkbd \
87 app/date \
88 app/vdemo \
89 app/viewer \
90 app/vlaunch \
91 app/vterm \
92 app/df \
93 app/wavplay \
94 app/websrv \
95 srv/audio/hound \
96 srv/clipboard \
97 srv/locsrv \
98 srv/logger \
99 srv/klog \
100 srv/devman \
101 srv/loader \
102 srv/net/dhcp \
103 srv/net/dnsrsrv \
104 srv/net/ethip \
105 srv/net/inetsrv \
106 srv/net/loopip \
107 srv/net/nconfsrv \
108 srv/net/slip \
109 srv/net/tcp \
110 srv/net/udp \
111 srv/ns \
112 srv/taskmon \
113 srv/vfs \
114 srv/bd/sata_bd \
115 srv/bd/file_bd \
116 srv/bd/rd \
117 srv/bd/part/guid_part \
118 srv/bd/part/mbr_part \
119 srv/fs/exfat \
120 srv/fs/udf \
121 srv/fs/fat \
122 srv/fs/cdfs \
123 srv/fs/tmpfs \
124 srv/fs/mfs \
125 srv/fs/locfs \
126 srv/fs/ext4fs \
127 srv/hid/compositor \
128 srv/hid/console \
129 srv/hid/s3c24xx_ts \
130 srv/hid/isdv4_tablet \
131 srv/hid/input \
132 srv/hid/output \
133 srv/hid/remcons \
134 srv/hw/char/s3c24xx_uart \
135 srv/hid/rfb \
136 drv/audio/hdaudio \
137 drv/audio/sb16 \
138 drv/root/root \
139 drv/root/virt \
140 drv/block/ahci \
141 drv/block/ata_bd \
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/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/softint \
217 lib/softfloat \
218 lib/drv \
219 lib/graph \
220 lib/gui \
221 lib/hound \
222 lib/http \
223 lib/softrend \
224 lib/draw \
225 lib/math \
226 lib/net \
227 lib/nic \
228 lib/ext4 \
229 lib/trackmod \
230 lib/uri \
231 lib/urcu \
232 lib/usb \
233 lib/usbhost \
234 lib/usbdev \
235 lib/usbhid \
236 lib/usbvirt \
237 lib/pcm \
238 lib/pcut \
239 lib/bithenge \
240 lib/posix \
241 lib/mbr \
242 lib/gpt
243
244LIBC_BUILD = $(addsuffix .build,$(LIBC))
245LIBS_BUILD = $(addsuffix .build,$(LIBS))
246LIBN_BUILD = $(addsuffix .build,$(LIBN))
247BUILDS := $(addsuffix .build,$(DIRS))
248BUILDS_TESTS := $(addsuffix .build-test,$(DIRS) $(LIBS) lib/c)
249
250CLEANS := $(addsuffix .clean,$(DIRS)) $(addsuffix .clean,$(LIBN)) $(addsuffix .clean,$(LIBS)) $(addsuffix .clean,$(LIBC))
251
252.PHONY: all $(LIBC_BUILD) $(LIBS_BUILD) $(LIBN_BUILD) $(BUILDS) $(CLEANS) clean
253
254all: $(BUILDS) $(BUILDS_TESTS)
255
256$(BUILDS_TESTS): $(BUILDS)
257 $(MAKE) -C $(basename $@) all-test PRECHECK=$(PRECHECK)
258
259clean: $(CLEANS)
260
261$(CLEANS):
262 -$(MAKE) -C $(basename $@) clean
263
264$(BUILDS): $(LIBC_BUILD) $(LIBS_BUILD) $(LIBN_BUILD)
265 $(MAKE) -C $(basename $@) all PRECHECK=$(PRECHECK)
266
267$(LIBN_BUILD): $(LIBC_BUILD) $(LIBS_BUILD)
268 $(MAKE) -C $(basename $@) all PRECHECK=$(PRECHECK)
269
270$(LIBS_BUILD): $(LIBC_BUILD)
271 $(MAKE) -C $(basename $@) all PRECHECK=$(PRECHECK)
272
273$(LIBC_BUILD):
274 $(MAKE) -C $(basename $@) all PRECHECK=$(PRECHECK)
Note: See TracBrowser for help on using the repository browser.