source: mainline/uspace/Makefile@ 26bc0fd1

lfn serial ticket/834-toolchain-update topic/msim-upgrade topic/simplify-dev-export
Last change on this file since 26bc0fd1 was 92c1680, checked in by Jiri Svoboda <jiri@…>, 12 years ago

Run-time core dump enable/disable.

  • 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/wavplay \
84 app/websrv \
85 srv/audio/hound \
86 srv/clipboard \
87 srv/locsrv \
88 srv/logger \
89 srv/devman \
90 srv/loader \
91 srv/net/dnsrsrv \
92 srv/net/ethip \
93 srv/net/inetsrv \
94 srv/net/loopip \
95 srv/net/slip \
96 srv/net/tcp \
97 srv/net/udp \
98 srv/ns \
99 srv/taskmon \
100 srv/vfs \
101 srv/bd/sata_bd \
102 srv/bd/file_bd \
103 srv/bd/rd \
104 srv/bd/part/guid_part \
105 srv/bd/part/mbr_part \
106 srv/fs/exfat \
107 srv/fs/udf \
108 srv/fs/fat \
109 srv/fs/cdfs \
110 srv/fs/tmpfs \
111 srv/fs/mfs \
112 srv/fs/locfs \
113 srv/fs/ext4fs \
114 srv/hid/compositor \
115 srv/hid/console \
116 srv/hid/s3c24xx_ts \
117 srv/hid/isdv4_tablet \
118 srv/hid/input \
119 srv/hid/output \
120 srv/hid/remcons \
121 srv/hw/char/s3c24xx_uart \
122 drv/audio/sb16 \
123 drv/infrastructure/root \
124 drv/infrastructure/rootvirt \
125 drv/block/ahci \
126 drv/block/ata_bd \
127 drv/char/i8042 \
128 drv/char/ps2mouse \
129 drv/char/xtkbd \
130 drv/test/test1 \
131 drv/test/test2 \
132 drv/test/test3 \
133 drv/fb/kfb \
134 drv/bus/usb/ehci \
135 drv/bus/usb/ohci \
136 drv/bus/usb/uhci \
137 drv/bus/usb/uhcirh \
138 drv/bus/usb/usbflbk \
139 drv/bus/usb/usbhid \
140 drv/bus/usb/usbhub \
141 drv/bus/usb/usbmast \
142 drv/bus/usb/usbmid \
143 drv/bus/usb/vhc \
144 drv/nic/ne2k \
145 drv/nic/e1k \
146 drv/nic/rtl8139
147
148ifeq ($(CONFIG_PCC),y)
149DIRS += \
150 app/cc \
151 app/ccom \
152 app/ccom/mkext \
153 app/cpp
154endif
155
156ifeq ($(CONFIG_BINUTILS),y)
157DIRS += \
158 app/binutils
159endif
160
161ifeq ($(CONFIG_MSIM),y)
162DIRS += \
163 app/msim
164endif
165
166## Platform-specific hardware support
167#
168
169ifeq ($(UARCH),amd64)
170 DIRS += \
171 drv/infrastructure/rootpc \
172 drv/bus/pci/pciintel \
173 drv/bus/isa \
174 drv/char/ns8250 \
175 drv/time/cmos-rtc \
176 srv/hw/irc/apic \
177 srv/hw/irc/i8259
178endif
179
180ifeq ($(UARCH),ia32)
181 DIRS += \
182 drv/infrastructure/rootpc \
183 drv/bus/pci/pciintel \
184 drv/bus/isa \
185 drv/char/ns8250 \
186 drv/time/cmos-rtc \
187 srv/hw/irc/apic \
188 srv/hw/irc/i8259
189endif
190
191ifeq ($(UARCH), $(filter $(UARCH),mips32 mips32eb))
192 DIRS += \
193 drv/infrastructure/rootmalta \
194 drv/bus/pci/pciintel \
195 drv/bus/isa
196endif
197
198ifeq ($(UARCH),ppc32)
199 DIRS += \
200 drv/infrastructure/rootmac \
201 drv/bus/pci/pciintel \
202 srv/hw/bus/cuda_adb
203endif
204
205ifeq ($(UARCH),sparc64)
206 DIRS += \
207 srv/hw/irc/obio
208endif
209
210ifeq ($(UARCH),arm32)
211 DIRS += \
212 drv/infrastructure/rootamdm37x \
213 drv/fb/amdm37x_dispc
214endif
215
216## System libraries
217#
218
219LIBC = lib/c
220LIBS = \
221 lib/fs \
222 lib/block \
223 lib/clui \
224 lib/fmtutil \
225 lib/scsi \
226 lib/softint \
227 lib/softfloat \
228 lib/drv \
229 lib/graph \
230 lib/gui \
231 lib/hound \
232 lib/softrend \
233 lib/draw \
234 lib/net \
235 lib/nic \
236 lib/ext4 \
237 lib/usb \
238 lib/usbhost \
239 lib/usbdev \
240 lib/usbhid \
241 lib/usbvirt \
242 lib/pcm \
243 lib/bithenge \
244 lib/posix
245
246LIBC_BUILD = $(addsuffix .build,$(LIBC))
247LIBS_BUILD = $(addsuffix .build,$(LIBS))
248LIBN_BUILD = $(addsuffix .build,$(LIBN))
249BUILDS := $(addsuffix .build,$(DIRS))
250
251CLEANS := $(addsuffix .clean,$(DIRS)) $(addsuffix .clean,$(LIBN)) $(addsuffix .clean,$(LIBS)) $(addsuffix .clean,$(LIBC))
252
253.PHONY: all $(LIBC_BUILD) $(LIBS_BUILD) $(LIBN_BUILD) $(BUILDS) $(CLEANS) clean
254
255all: $(BUILDS)
256
257clean: $(CLEANS)
258
259$(CLEANS):
260 -$(MAKE) -C $(basename $@) clean
261
262$(BUILDS): $(LIBC_BUILD) $(LIBS_BUILD) $(LIBN_BUILD)
263 $(MAKE) -C $(basename $@) all PRECHECK=$(PRECHECK)
264
265$(LIBN_BUILD): $(LIBC_BUILD) $(LIBS_BUILD)
266 $(MAKE) -C $(basename $@) all PRECHECK=$(PRECHECK)
267
268$(LIBS_BUILD): $(LIBC_BUILD)
269 $(MAKE) -C $(basename $@) all PRECHECK=$(PRECHECK)
270
271$(LIBC_BUILD):
272 $(MAKE) -C $(basename $@) all PRECHECK=$(PRECHECK)
Note: See TracBrowser for help on using the repository browser.