source: mainline/uspace/Makefile@ fb41d44

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

IntegratorCP mouse support.

  • Property mode set to 100644
File size: 5.3 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/nterm \
61 app/redir \
62 app/sbi \
63 app/sportdmp \
64 app/stats \
65 app/taskdump \
66 app/tester \
67 app/testread \
68 app/testwrit \
69 app/tetris \
70 app/trace \
71 app/top \
72 app/untar \
73 app/usbinfo \
74 app/vuhid \
75 app/netecho \
76 app/netspeed \
77 app/nettest1 \
78 app/nettest2 \
79 app/nettest3 \
80 app/nic \
81 app/ping \
82 app/sysinfo \
83 app/mkbd \
84 app/date \
85 app/vdemo \
86 app/viewer \
87 app/vlaunch \
88 app/vterm \
89 app/df \
90 app/wavplay \
91 app/websrv \
92 srv/audio/hound \
93 srv/clipboard \
94 srv/locsrv \
95 srv/logger \
96 srv/klog \
97 srv/devman \
98 srv/loader \
99 srv/net/dhcp \
100 srv/net/dnsrsrv \
101 srv/net/ethip \
102 srv/net/inetsrv \
103 srv/net/loopip \
104 srv/net/nconfsrv \
105 srv/net/slip \
106 srv/net/tcp \
107 srv/net/udp \
108 srv/ns \
109 srv/taskmon \
110 srv/vfs \
111 srv/bd/sata_bd \
112 srv/bd/file_bd \
113 srv/bd/rd \
114 srv/bd/part/guid_part \
115 srv/bd/part/mbr_part \
116 srv/fs/exfat \
117 srv/fs/udf \
118 srv/fs/fat \
119 srv/fs/cdfs \
120 srv/fs/tmpfs \
121 srv/fs/mfs \
122 srv/fs/locfs \
123 srv/fs/ext4fs \
124 srv/hid/compositor \
125 srv/hid/console \
126 srv/hid/s3c24xx_ts \
127 srv/hid/isdv4_tablet \
128 srv/hid/input \
129 srv/hid/output \
130 srv/hid/remcons \
131 srv/hw/char/s3c24xx_uart \
132 srv/hid/rfb \
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/softint \
213 lib/softfloat \
214 lib/drv \
215 lib/graph \
216 lib/gui \
217 lib/hound \
218 lib/http \
219 lib/softrend \
220 lib/draw \
221 lib/math \
222 lib/net \
223 lib/nic \
224 lib/ext4 \
225 lib/uri \
226 lib/usb \
227 lib/usbhost \
228 lib/usbdev \
229 lib/usbhid \
230 lib/usbvirt \
231 lib/pcm \
232 lib/bithenge \
233 lib/posix \
234 lib/mbr \
235 lib/gpt
236
237LIBC_BUILD = $(addsuffix .build,$(LIBC))
238LIBS_BUILD = $(addsuffix .build,$(LIBS))
239LIBN_BUILD = $(addsuffix .build,$(LIBN))
240BUILDS := $(addsuffix .build,$(DIRS))
241
242CLEANS := $(addsuffix .clean,$(DIRS)) $(addsuffix .clean,$(LIBN)) $(addsuffix .clean,$(LIBS)) $(addsuffix .clean,$(LIBC))
243
244.PHONY: all $(LIBC_BUILD) $(LIBS_BUILD) $(LIBN_BUILD) $(BUILDS) $(CLEANS) clean
245
246all: $(BUILDS)
247
248clean: $(CLEANS)
249
250$(CLEANS):
251 -$(MAKE) -C $(basename $@) clean
252
253$(BUILDS): $(LIBC_BUILD) $(LIBS_BUILD) $(LIBN_BUILD)
254 $(MAKE) -C $(basename $@) all PRECHECK=$(PRECHECK)
255
256$(LIBN_BUILD): $(LIBC_BUILD) $(LIBS_BUILD)
257 $(MAKE) -C $(basename $@) all PRECHECK=$(PRECHECK)
258
259$(LIBS_BUILD): $(LIBC_BUILD)
260 $(MAKE) -C $(basename $@) all PRECHECK=$(PRECHECK)
261
262$(LIBC_BUILD):
263 $(MAKE) -C $(basename $@) all PRECHECK=$(PRECHECK)
Note: See TracBrowser for help on using the repository browser.