source: mainline/uspace/Makefile@ 3731d31

lfn serial ticket/834-toolchain-update topic/msim-upgrade topic/simplify-dev-export
Last change on this file since 3731d31 was 3731d31, checked in by Martin Sucha <sucha14@…>, 12 years ago

Merge RFB (VNC) server

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