source: mainline/uspace/Makefile@ 6e04581

lfn serial ticket/834-toolchain-update topic/msim-upgrade topic/simplify-dev-export
Last change on this file since 6e04581 was 0773396, checked in by Martin Decky <martin@…>, 12 years ago

merge mainline changes

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