source: mainline/uspace/Makefile@ 0f17bff

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

Simple dynamic linking test.

  • Property mode set to 100644
File size: 5.7 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/dltest \
44 app/dnscfg \
45 app/dnsres \
46 app/download \
47 app/edit \
48 app/fdisk \
49 app/fontviewer \
50 app/getterm \
51 app/init \
52 app/inet \
53 app/kill \
54 app/killall \
55 app/kio \
56 app/loc \
57 app/logset \
58 app/mixerctl \
59 app/mkfat \
60 app/mkexfat \
61 app/mkmfs \
62 app/modplay \
63 app/netecho \
64 app/nterm \
65 app/redir \
66 app/rcutest \
67 app/rcubench \
68 app/sbi \
69 app/sportdmp \
70 app/stats \
71 app/taskdump \
72 app/tester \
73 app/testread \
74 app/testwrit \
75 app/tetris \
76 app/trace \
77 app/top \
78 app/untar \
79 app/usbinfo \
80 app/vuhid \
81 app/nic \
82 app/ping \
83 app/sysinfo \
84 app/sysinst \
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 app/wifi_supplicant \
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/vbd \
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/volsrv \
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/block/ddisk \
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/uhcirh \
155 drv/bus/usb/usbflbk \
156 drv/bus/usb/usbhid \
157 drv/bus/usb/usbhub \
158 drv/bus/usb/usbmast \
159 drv/bus/usb/usbmid \
160 drv/bus/usb/vhc \
161 drv/nic/ne2k \
162 drv/nic/e1k \
163 drv/nic/rtl8139 \
164 drv/nic/rtl8169 \
165 drv/nic/ar9271 \
166 drv/platform/icp
167
168## Platform-specific hardware support
169#
170
171ifeq ($(UARCH), $(filter $(UARCH),amd64 ia32 ia64))
172 DIRS += \
173 drv/platform/pc \
174 drv/bus/pci/pciintel \
175 drv/bus/isa \
176 drv/char/ns8250 \
177 drv/time/cmos-rtc \
178 srv/hw/irc/apic \
179 srv/hw/irc/i8259
180endif
181
182ifeq ($(UARCH), $(filter $(UARCH),mips32 mips32eb))
183ifeq ($(MACHINE),msim)
184 DIRS += \
185 drv/platform/msim
186else
187 DIRS += \
188 drv/platform/malta \
189 drv/bus/pci/pciintel \
190 drv/bus/isa
191endif
192endif
193
194ifeq ($(UARCH),ppc32)
195 DIRS += \
196 drv/platform/mac \
197 drv/bus/pci/pciintel \
198 srv/hw/bus/cuda_adb
199endif
200
201ifeq ($(UARCH),sparc64)
202 DIRS += \
203 srv/hw/irc/obio
204endif
205
206ifeq ($(UARCH),arm32)
207 DIRS += \
208 drv/platform/amdm37x \
209 drv/fb/amdm37x_dispc \
210 srv/hw/irc/icp-ic
211endif
212
213## System libraries
214#
215
216LIBC = lib/c
217LIBS = \
218 lib/fs \
219 lib/block \
220 lib/crypto \
221 lib/clui \
222 lib/dltest \
223 lib/fdisk \
224 lib/fmtutil \
225 lib/scsi \
226 lib/compress \
227 lib/softint \
228 lib/softfloat \
229 lib/drv \
230 lib/graph \
231 lib/gui \
232 lib/hound \
233 lib/http \
234 lib/softrend \
235 lib/draw \
236 lib/label \
237 lib/math \
238 lib/nettl \
239 lib/nic \
240 lib/ext4 \
241 lib/trackmod \
242 lib/uri \
243 lib/urcu \
244 lib/usb \
245 lib/usbhost \
246 lib/usbdev \
247 lib/usbhid \
248 lib/usbvirt \
249 lib/pcm \
250 lib/pcut \
251 lib/bithenge \
252 lib/posix \
253 lib/ieee80211
254
255LIBC_BUILD = $(addsuffix .build,$(LIBC))
256LIBS_BUILD = $(addsuffix .build,$(LIBS))
257LIBN_BUILD = $(addsuffix .build,$(LIBN))
258BUILDS := $(addsuffix .build,$(DIRS))
259BUILDS_TESTS := $(addsuffix .build-test,$(DIRS) $(LIBS) lib/c)
260
261CLEANS := $(addsuffix .clean,$(DIRS)) $(addsuffix .clean,$(LIBN)) $(addsuffix .clean,$(LIBS)) $(addsuffix .clean,$(LIBC))
262
263.PHONY: all $(LIBC_BUILD) $(LIBS_BUILD) $(LIBN_BUILD) $(BUILDS) $(CLEANS) clean
264
265all: $(BUILDS) $(BUILDS_TESTS)
266
267$(BUILDS_TESTS): $(BUILDS)
268 $(MAKE) -C $(basename $@) all-test PRECHECK=$(PRECHECK)
269
270clean: $(CLEANS)
271
272$(CLEANS):
273 -$(MAKE) -C $(basename $@) clean
274
275$(BUILDS): $(LIBC_BUILD) $(LIBS_BUILD) $(LIBN_BUILD)
276 $(MAKE) -C $(basename $@) all PRECHECK=$(PRECHECK)
277
278$(LIBN_BUILD): $(LIBC_BUILD) $(LIBS_BUILD)
279 $(MAKE) -C $(basename $@) all PRECHECK=$(PRECHECK)
280
281$(LIBS_BUILD): $(LIBC_BUILD)
282 $(MAKE) -C $(basename $@) all PRECHECK=$(PRECHECK)
283
284$(LIBC_BUILD):
285 $(MAKE) -C $(basename $@) all PRECHECK=$(PRECHECK)
Note: See TracBrowser for help on using the repository browser.