source: mainline/uspace/Makefile@ 192565b

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

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