source: mainline/uspace/Makefile@ dd7078c

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

Mainline changes.

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