source: mainline/uspace/Makefile@ d65be39

lfn serial ticket/834-toolchain-update topic/msim-upgrade topic/simplify-dev-export
Last change on this file since d65be39 was 9749e47, checked in by Jiri Svoboda <jiri@…>, 12 years ago

ping6 - resistance is futile.

  • 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/getterm \
47 app/init \
48 app/inet \
49 app/kill \
50 app/killall \
51 app/klog \
52 app/loc \
53 app/logset \
54 app/mixerctl \
55 app/mkfat \
56 app/mkexfat \
57 app/mkmfs \
58 app/nterm \
59 app/redir \
60 app/sbi \
61 app/sportdmp \
62 app/stats \
63 app/taskdump \
64 app/tester \
65 app/testread \
66 app/testwrit \
67 app/tetris \
68 app/trace \
69 app/top \
70 app/usbinfo \
71 app/vuhid \
72 app/netecho \
73 app/netspeed \
74 app/nettest1 \
75 app/nettest2 \
76 app/nettest3 \
77 app/ping \
78 app/sysinfo \
79 app/mkbd \
80 app/date \
81 app/vdemo \
82 app/vlaunch \
83 app/vterm \
84 app/df \
85 app/wavplay \
86 app/websrv \
87 srv/audio/hound \
88 srv/clipboard \
89 srv/locsrv \
90 srv/logger \
91 srv/devman \
92 srv/loader \
93 srv/net/dhcp \
94 srv/net/dnsrsrv \
95 srv/net/ethip \
96 srv/net/inetsrv \
97 srv/net/loopip \
98 srv/net/nconfsrv \
99 srv/net/slip \
100 srv/net/tcp \
101 srv/net/udp \
102 srv/ns \
103 srv/taskmon \
104 srv/vfs \
105 srv/bd/sata_bd \
106 srv/bd/file_bd \
107 srv/bd/rd \
108 srv/bd/part/guid_part \
109 srv/bd/part/mbr_part \
110 srv/fs/exfat \
111 srv/fs/udf \
112 srv/fs/fat \
113 srv/fs/cdfs \
114 srv/fs/tmpfs \
115 srv/fs/mfs \
116 srv/fs/locfs \
117 srv/fs/ext4fs \
118 srv/hid/compositor \
119 srv/hid/console \
120 srv/hid/s3c24xx_ts \
121 srv/hid/isdv4_tablet \
122 srv/hid/input \
123 srv/hid/output \
124 srv/hid/remcons \
125 srv/hw/char/s3c24xx_uart \
126 srv/hid/rfb \
127 drv/audio/sb16 \
128 drv/infrastructure/root \
129 drv/infrastructure/rootvirt \
130 drv/block/ahci \
131 drv/block/ata_bd \
132 drv/char/i8042 \
133 drv/char/ps2mouse \
134 drv/char/xtkbd \
135 drv/test/test1 \
136 drv/test/test2 \
137 drv/test/test3 \
138 drv/fb/kfb \
139 drv/bus/usb/ehci \
140 drv/bus/usb/ohci \
141 drv/bus/usb/uhci \
142 drv/bus/usb/uhcirh \
143 drv/bus/usb/usbflbk \
144 drv/bus/usb/usbhid \
145 drv/bus/usb/usbhub \
146 drv/bus/usb/usbmast \
147 drv/bus/usb/usbmid \
148 drv/bus/usb/vhc \
149 drv/nic/ne2k \
150 drv/nic/e1k \
151 drv/nic/rtl8139
152
153ifeq ($(CONFIG_PCC),y)
154DIRS += \
155 app/cc \
156 app/ccom \
157 app/ccom/mkext \
158 app/cpp
159endif
160
161ifeq ($(CONFIG_BINUTILS),y)
162DIRS += \
163 app/binutils
164endif
165
166ifeq ($(CONFIG_MSIM),y)
167DIRS += \
168 app/msim
169endif
170
171## Platform-specific hardware support
172#
173
174ifeq ($(UARCH),amd64)
175 DIRS += \
176 drv/infrastructure/rootpc \
177 drv/bus/pci/pciintel \
178 drv/bus/isa \
179 drv/char/ns8250 \
180 drv/time/cmos-rtc \
181 srv/hw/irc/apic \
182 srv/hw/irc/i8259
183endif
184
185ifeq ($(UARCH),ia32)
186 DIRS += \
187 drv/infrastructure/rootpc \
188 drv/bus/pci/pciintel \
189 drv/bus/isa \
190 drv/char/ns8250 \
191 drv/time/cmos-rtc \
192 srv/hw/irc/apic \
193 srv/hw/irc/i8259
194endif
195
196ifeq ($(UARCH), $(filter $(UARCH),mips32 mips32eb))
197 DIRS += \
198 drv/infrastructure/rootmalta \
199 drv/bus/pci/pciintel \
200 drv/bus/isa
201endif
202
203ifeq ($(UARCH),ppc32)
204 DIRS += \
205 drv/infrastructure/rootmac \
206 drv/bus/pci/pciintel \
207 srv/hw/bus/cuda_adb
208endif
209
210ifeq ($(UARCH),sparc64)
211 DIRS += \
212 srv/hw/irc/obio
213endif
214
215ifeq ($(UARCH),arm32)
216 DIRS += \
217 drv/infrastructure/rootamdm37x \
218 drv/fb/amdm37x_dispc
219endif
220
221## System libraries
222#
223
224LIBC = lib/c
225LIBS = \
226 lib/fs \
227 lib/block \
228 lib/clui \
229 lib/fmtutil \
230 lib/scsi \
231 lib/softint \
232 lib/softfloat \
233 lib/drv \
234 lib/graph \
235 lib/gui \
236 lib/hound \
237 lib/http \
238 lib/softrend \
239 lib/draw \
240 lib/net \
241 lib/nic \
242 lib/ext4 \
243 lib/uri \
244 lib/usb \
245 lib/usbhost \
246 lib/usbdev \
247 lib/usbhid \
248 lib/usbvirt \
249 lib/pcm \
250 lib/bithenge \
251 lib/posix
252
253LIBC_BUILD = $(addsuffix .build,$(LIBC))
254LIBS_BUILD = $(addsuffix .build,$(LIBS))
255LIBN_BUILD = $(addsuffix .build,$(LIBN))
256BUILDS := $(addsuffix .build,$(DIRS))
257
258CLEANS := $(addsuffix .clean,$(DIRS)) $(addsuffix .clean,$(LIBN)) $(addsuffix .clean,$(LIBS)) $(addsuffix .clean,$(LIBC))
259
260.PHONY: all $(LIBC_BUILD) $(LIBS_BUILD) $(LIBN_BUILD) $(BUILDS) $(CLEANS) clean
261
262all: $(BUILDS)
263
264clean: $(CLEANS)
265
266$(CLEANS):
267 -$(MAKE) -C $(basename $@) clean
268
269$(BUILDS): $(LIBC_BUILD) $(LIBS_BUILD) $(LIBN_BUILD)
270 $(MAKE) -C $(basename $@) all PRECHECK=$(PRECHECK)
271
272$(LIBN_BUILD): $(LIBC_BUILD) $(LIBS_BUILD)
273 $(MAKE) -C $(basename $@) all PRECHECK=$(PRECHECK)
274
275$(LIBS_BUILD): $(LIBC_BUILD)
276 $(MAKE) -C $(basename $@) all PRECHECK=$(PRECHECK)
277
278$(LIBC_BUILD):
279 $(MAKE) -C $(basename $@) all PRECHECK=$(PRECHECK)
Note: See TracBrowser for help on using the repository browser.