source: mainline/uspace/Makefile@ eeb5cc2

lfn serial ticket/834-toolchain-update topic/msim-upgrade topic/simplify-dev-export
Last change on this file since eeb5cc2 was 758f8d5, checked in by Maurizio Lombardi <m.lombardi85@…>, 12 years ago

merge the df branch

  • 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 drv/audio/sb16 \
124 drv/infrastructure/root \
125 drv/infrastructure/rootvirt \
126 drv/block/ahci \
127 drv/block/ata_bd \
128 drv/char/i8042 \
129 drv/char/ps2mouse \
130 drv/char/xtkbd \
131 drv/test/test1 \
132 drv/test/test2 \
133 drv/test/test3 \
134 drv/fb/kfb \
135 drv/bus/usb/ehci \
136 drv/bus/usb/ohci \
137 drv/bus/usb/uhci \
138 drv/bus/usb/uhcirh \
139 drv/bus/usb/usbflbk \
140 drv/bus/usb/usbhid \
141 drv/bus/usb/usbhub \
142 drv/bus/usb/usbmast \
143 drv/bus/usb/usbmid \
144 drv/bus/usb/vhc \
145 drv/nic/ne2k \
146 drv/nic/e1k \
147 drv/nic/rtl8139
148
149ifeq ($(CONFIG_PCC),y)
150DIRS += \
151 app/cc \
152 app/ccom \
153 app/ccom/mkext \
154 app/cpp
155endif
156
157ifeq ($(CONFIG_BINUTILS),y)
158DIRS += \
159 app/binutils
160endif
161
162ifeq ($(CONFIG_MSIM),y)
163DIRS += \
164 app/msim
165endif
166
167## Platform-specific hardware support
168#
169
170ifeq ($(UARCH),amd64)
171 DIRS += \
172 drv/infrastructure/rootpc \
173 drv/bus/pci/pciintel \
174 drv/bus/isa \
175 drv/char/ns8250 \
176 drv/time/cmos-rtc \
177 srv/hw/irc/apic \
178 srv/hw/irc/i8259
179endif
180
181ifeq ($(UARCH),ia32)
182 DIRS += \
183 drv/infrastructure/rootpc \
184 drv/bus/pci/pciintel \
185 drv/bus/isa \
186 drv/char/ns8250 \
187 drv/time/cmos-rtc \
188 srv/hw/irc/apic \
189 srv/hw/irc/i8259
190endif
191
192ifeq ($(UARCH), $(filter $(UARCH),mips32 mips32eb))
193 DIRS += \
194 drv/infrastructure/rootmalta \
195 drv/bus/pci/pciintel \
196 drv/bus/isa
197endif
198
199ifeq ($(UARCH),ppc32)
200 DIRS += \
201 drv/infrastructure/rootmac \
202 drv/bus/pci/pciintel \
203 srv/hw/bus/cuda_adb
204endif
205
206ifeq ($(UARCH),sparc64)
207 DIRS += \
208 srv/hw/irc/obio
209endif
210
211ifeq ($(UARCH),arm32)
212 DIRS += \
213 drv/infrastructure/rootamdm37x \
214 drv/fb/amdm37x_dispc
215endif
216
217## System libraries
218#
219
220LIBC = lib/c
221LIBS = \
222 lib/fs \
223 lib/block \
224 lib/clui \
225 lib/fmtutil \
226 lib/scsi \
227 lib/softint \
228 lib/softfloat \
229 lib/drv \
230 lib/graph \
231 lib/gui \
232 lib/hound \
233 lib/softrend \
234 lib/draw \
235 lib/net \
236 lib/nic \
237 lib/ext4 \
238 lib/usb \
239 lib/usbhost \
240 lib/usbdev \
241 lib/usbhid \
242 lib/usbvirt \
243 lib/pcm \
244 lib/bithenge \
245 lib/posix
246
247LIBC_BUILD = $(addsuffix .build,$(LIBC))
248LIBS_BUILD = $(addsuffix .build,$(LIBS))
249LIBN_BUILD = $(addsuffix .build,$(LIBN))
250BUILDS := $(addsuffix .build,$(DIRS))
251
252CLEANS := $(addsuffix .clean,$(DIRS)) $(addsuffix .clean,$(LIBN)) $(addsuffix .clean,$(LIBS)) $(addsuffix .clean,$(LIBC))
253
254.PHONY: all $(LIBC_BUILD) $(LIBS_BUILD) $(LIBN_BUILD) $(BUILDS) $(CLEANS) clean
255
256all: $(BUILDS)
257
258clean: $(CLEANS)
259
260$(CLEANS):
261 -$(MAKE) -C $(basename $@) clean
262
263$(BUILDS): $(LIBC_BUILD) $(LIBS_BUILD) $(LIBN_BUILD)
264 $(MAKE) -C $(basename $@) all PRECHECK=$(PRECHECK)
265
266$(LIBN_BUILD): $(LIBC_BUILD) $(LIBS_BUILD)
267 $(MAKE) -C $(basename $@) all PRECHECK=$(PRECHECK)
268
269$(LIBS_BUILD): $(LIBC_BUILD)
270 $(MAKE) -C $(basename $@) all PRECHECK=$(PRECHECK)
271
272$(LIBC_BUILD):
273 $(MAKE) -C $(basename $@) all PRECHECK=$(PRECHECK)
Note: See TracBrowser for help on using the repository browser.