source: mainline/uspace/Makefile@ 3f03199

lfn serial ticket/834-toolchain-update topic/msim-upgrade topic/simplify-dev-export
Last change on this file since 3f03199 was 3f03199, checked in by Jan Vesely <jano.vesely@…>, 12 years ago

Merge mainline changes.

Major conflicts in USB HC drivers.
Compiles and UHCI works (qemu).
OHCI has device remove problems.

  • 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/ping6 \
79 app/sysinfo \
80 app/mkbd \
81 app/date \
82 app/vdemo \
83 app/vlaunch \
84 app/vterm \
85 app/df \
86 app/wavplay \
87 app/websrv \
88 srv/audio/hound \
89 srv/clipboard \
90 srv/locsrv \
91 srv/logger \
92 srv/devman \
93 srv/loader \
94 srv/net/dhcp \
95 srv/net/dnsrsrv \
96 srv/net/ethip \
97 srv/net/inetsrv \
98 srv/net/loopip \
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/usbflbk \
143 drv/bus/usb/usbhid \
144 drv/bus/usb/usbhub \
145 drv/bus/usb/usbmast \
146 drv/bus/usb/usbmid \
147 drv/bus/usb/vhc \
148 drv/nic/ne2k \
149 drv/nic/e1k \
150 drv/nic/rtl8139
151
152ifeq ($(CONFIG_PCC),y)
153DIRS += \
154 app/cc \
155 app/ccom \
156 app/ccom/mkext \
157 app/cpp
158endif
159
160ifeq ($(CONFIG_BINUTILS),y)
161DIRS += \
162 app/binutils
163endif
164
165ifeq ($(CONFIG_MSIM),y)
166DIRS += \
167 app/msim
168endif
169
170## Platform-specific hardware support
171#
172
173ifeq ($(UARCH),amd64)
174 DIRS += \
175 drv/infrastructure/rootpc \
176 drv/bus/pci/pciintel \
177 drv/bus/isa \
178 drv/char/ns8250 \
179 drv/time/cmos-rtc \
180 srv/hw/irc/apic \
181 srv/hw/irc/i8259
182endif
183
184ifeq ($(UARCH),ia32)
185 DIRS += \
186 drv/infrastructure/rootpc \
187 drv/bus/pci/pciintel \
188 drv/bus/isa \
189 drv/char/ns8250 \
190 drv/time/cmos-rtc \
191 srv/hw/irc/apic \
192 srv/hw/irc/i8259
193endif
194
195ifeq ($(UARCH), $(filter $(UARCH),mips32 mips32eb))
196 DIRS += \
197 drv/infrastructure/rootmalta \
198 drv/bus/pci/pciintel \
199 drv/bus/isa
200endif
201
202ifeq ($(UARCH),ppc32)
203 DIRS += \
204 drv/infrastructure/rootmac \
205 drv/bus/pci/pciintel \
206 srv/hw/bus/cuda_adb
207endif
208
209ifeq ($(UARCH),sparc64)
210 DIRS += \
211 srv/hw/irc/obio
212endif
213
214ifeq ($(UARCH),arm32)
215 DIRS += \
216 drv/infrastructure/rootamdm37x \
217 drv/fb/amdm37x_dispc
218endif
219
220## System libraries
221#
222
223LIBC = lib/c
224LIBS = \
225 lib/fs \
226 lib/block \
227 lib/clui \
228 lib/fmtutil \
229 lib/scsi \
230 lib/softint \
231 lib/softfloat \
232 lib/drv \
233 lib/graph \
234 lib/gui \
235 lib/hound \
236 lib/http \
237 lib/softrend \
238 lib/draw \
239 lib/net \
240 lib/nic \
241 lib/ext4 \
242 lib/uri \
243 lib/usb \
244 lib/usbhost \
245 lib/usbdev \
246 lib/usbhid \
247 lib/usbvirt \
248 lib/pcm \
249 lib/bithenge \
250 lib/posix
251
252LIBC_BUILD = $(addsuffix .build,$(LIBC))
253LIBS_BUILD = $(addsuffix .build,$(LIBS))
254LIBN_BUILD = $(addsuffix .build,$(LIBN))
255BUILDS := $(addsuffix .build,$(DIRS))
256
257CLEANS := $(addsuffix .clean,$(DIRS)) $(addsuffix .clean,$(LIBN)) $(addsuffix .clean,$(LIBS)) $(addsuffix .clean,$(LIBC))
258
259.PHONY: all $(LIBC_BUILD) $(LIBS_BUILD) $(LIBN_BUILD) $(BUILDS) $(CLEANS) clean
260
261all: $(BUILDS)
262
263clean: $(CLEANS)
264
265$(CLEANS):
266 -$(MAKE) -C $(basename $@) clean
267
268$(BUILDS): $(LIBC_BUILD) $(LIBS_BUILD) $(LIBN_BUILD)
269 $(MAKE) -C $(basename $@) all PRECHECK=$(PRECHECK)
270
271$(LIBN_BUILD): $(LIBC_BUILD) $(LIBS_BUILD)
272 $(MAKE) -C $(basename $@) all PRECHECK=$(PRECHECK)
273
274$(LIBS_BUILD): $(LIBC_BUILD)
275 $(MAKE) -C $(basename $@) all PRECHECK=$(PRECHECK)
276
277$(LIBC_BUILD):
278 $(MAKE) -C $(basename $@) all PRECHECK=$(PRECHECK)
Note: See TracBrowser for help on using the repository browser.