source: mainline/uspace/Makefile@ 6dd7f65

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

Very basic and incomplete ddisk driver.

  • 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/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/netecho \
80 app/netspeed \
81 app/nettest1 \
82 app/nettest2 \
83 app/nettest3 \
84 app/nic \
85 app/ping \
86 app/sysinfo \
87 app/mkbd \
88 app/date \
89 app/vdemo \
90 app/viewer \
91 app/vlaunch \
92 app/vterm \
93 app/df \
94 app/wavplay \
95 app/websrv \
96 srv/audio/hound \
97 srv/clipboard \
98 srv/locsrv \
99 srv/logger \
100 srv/klog \
101 srv/devman \
102 srv/loader \
103 srv/net/dhcp \
104 srv/net/dnsrsrv \
105 srv/net/ethip \
106 srv/net/inetsrv \
107 srv/net/loopip \
108 srv/net/nconfsrv \
109 srv/net/slip \
110 srv/net/tcp \
111 srv/net/udp \
112 srv/ns \
113 srv/taskmon \
114 srv/vfs \
115 srv/bd/sata_bd \
116 srv/bd/file_bd \
117 srv/bd/rd \
118 srv/bd/part/guid_part \
119 srv/bd/part/mbr_part \
120 srv/fs/exfat \
121 srv/fs/udf \
122 srv/fs/fat \
123 srv/fs/cdfs \
124 srv/fs/tmpfs \
125 srv/fs/mfs \
126 srv/fs/locfs \
127 srv/fs/ext4fs \
128 srv/hid/compositor \
129 srv/hid/console \
130 srv/hid/s3c24xx_ts \
131 srv/hid/isdv4_tablet \
132 srv/hid/input \
133 srv/hid/output \
134 srv/hid/remcons \
135 srv/hw/char/s3c24xx_uart \
136 srv/hid/rfb \
137 drv/audio/hdaudio \
138 drv/audio/sb16 \
139 drv/root/root \
140 drv/root/virt \
141 drv/block/ahci \
142 drv/block/ata_bd \
143 drv/block/ddisk \
144 drv/char/i8042 \
145 drv/char/pl050 \
146 drv/char/ps2mouse \
147 drv/char/xtkbd \
148 drv/test/test1 \
149 drv/test/test2 \
150 drv/test/test3 \
151 drv/fb/kfb \
152 drv/bus/usb/ehci \
153 drv/bus/usb/ohci \
154 drv/bus/usb/uhci \
155 drv/bus/usb/uhcirh \
156 drv/bus/usb/usbflbk \
157 drv/bus/usb/usbhid \
158 drv/bus/usb/usbhub \
159 drv/bus/usb/usbmast \
160 drv/bus/usb/usbmid \
161 drv/bus/usb/vhc \
162 drv/nic/ne2k \
163 drv/nic/e1k \
164 drv/nic/rtl8139 \
165 drv/nic/rtl8169 \
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/clui \
221 lib/fmtutil \
222 lib/scsi \
223 lib/compress \
224 lib/softint \
225 lib/softfloat \
226 lib/drv \
227 lib/graph \
228 lib/gui \
229 lib/hound \
230 lib/http \
231 lib/softrend \
232 lib/draw \
233 lib/math \
234 lib/net \
235 lib/nic \
236 lib/ext4 \
237 lib/trackmod \
238 lib/uri \
239 lib/urcu \
240 lib/usb \
241 lib/usbhost \
242 lib/usbdev \
243 lib/usbhid \
244 lib/usbvirt \
245 lib/pcm \
246 lib/pcut \
247 lib/bithenge \
248 lib/posix \
249 lib/mbr \
250 lib/gpt
251
252LIBC_BUILD = $(addsuffix .build,$(LIBC))
253LIBS_BUILD = $(addsuffix .build,$(LIBS))
254LIBN_BUILD = $(addsuffix .build,$(LIBN))
255BUILDS := $(addsuffix .build,$(DIRS))
256BUILDS_TESTS := $(addsuffix .build-test,$(DIRS) $(LIBS) lib/c)
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) $(BUILDS_TESTS)
263
264$(BUILDS_TESTS): $(BUILDS)
265 $(MAKE) -C $(basename $@) all-test PRECHECK=$(PRECHECK)
266
267clean: $(CLEANS)
268
269$(CLEANS):
270 -$(MAKE) -C $(basename $@) clean
271
272$(BUILDS): $(LIBC_BUILD) $(LIBS_BUILD) $(LIBN_BUILD)
273 $(MAKE) -C $(basename $@) all PRECHECK=$(PRECHECK)
274
275$(LIBN_BUILD): $(LIBC_BUILD) $(LIBS_BUILD)
276 $(MAKE) -C $(basename $@) all PRECHECK=$(PRECHECK)
277
278$(LIBS_BUILD): $(LIBC_BUILD)
279 $(MAKE) -C $(basename $@) all PRECHECK=$(PRECHECK)
280
281$(LIBC_BUILD):
282 $(MAKE) -C $(basename $@) all PRECHECK=$(PRECHECK)
Note: See TracBrowser for help on using the repository browser.