source: mainline/uspace/Makefile@ fab2746

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

New transport layer API. Only UDP implemented.

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