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 |
|
---|
35 | DIRS = \
|
---|
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/logset \
|
---|
52 | app/mixerctl \
|
---|
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/date \
|
---|
79 | app/vdemo \
|
---|
80 | app/vlaunch \
|
---|
81 | app/vterm \
|
---|
82 | app/wavplay \
|
---|
83 | app/websrv \
|
---|
84 | srv/audio/hound \
|
---|
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/uhcirh \
|
---|
137 | drv/bus/usb/usbflbk \
|
---|
138 | drv/bus/usb/usbhid \
|
---|
139 | drv/bus/usb/usbhub \
|
---|
140 | drv/bus/usb/usbmast \
|
---|
141 | drv/bus/usb/usbmid \
|
---|
142 | drv/bus/usb/vhc \
|
---|
143 | drv/nic/ne2k \
|
---|
144 | drv/nic/e1k \
|
---|
145 | drv/nic/rtl8139
|
---|
146 |
|
---|
147 | ifeq ($(CONFIG_PCC),y)
|
---|
148 | DIRS += \
|
---|
149 | app/cc \
|
---|
150 | app/ccom \
|
---|
151 | app/ccom/mkext \
|
---|
152 | app/cpp
|
---|
153 | endif
|
---|
154 |
|
---|
155 | ifeq ($(CONFIG_BINUTILS),y)
|
---|
156 | DIRS += \
|
---|
157 | app/binutils
|
---|
158 | endif
|
---|
159 |
|
---|
160 | ifeq ($(CONFIG_MSIM),y)
|
---|
161 | DIRS += \
|
---|
162 | app/msim
|
---|
163 | endif
|
---|
164 |
|
---|
165 | ## Platform-specific hardware support
|
---|
166 | #
|
---|
167 |
|
---|
168 | ifeq ($(UARCH),amd64)
|
---|
169 | DIRS += \
|
---|
170 | drv/infrastructure/rootpc \
|
---|
171 | drv/bus/pci/pciintel \
|
---|
172 | drv/bus/isa \
|
---|
173 | drv/char/ns8250 \
|
---|
174 | drv/time/cmos-rtc \
|
---|
175 | srv/hw/irc/apic \
|
---|
176 | srv/hw/irc/i8259
|
---|
177 | endif
|
---|
178 |
|
---|
179 | ifeq ($(UARCH),ia32)
|
---|
180 | DIRS += \
|
---|
181 | drv/infrastructure/rootpc \
|
---|
182 | drv/bus/pci/pciintel \
|
---|
183 | drv/bus/isa \
|
---|
184 | drv/char/ns8250 \
|
---|
185 | drv/time/cmos-rtc \
|
---|
186 | srv/hw/irc/apic \
|
---|
187 | srv/hw/irc/i8259
|
---|
188 | endif
|
---|
189 |
|
---|
190 | ifeq ($(UARCH),ppc32)
|
---|
191 | DIRS += \
|
---|
192 | drv/infrastructure/rootmac \
|
---|
193 | drv/bus/pci/pciintel \
|
---|
194 | srv/hw/bus/cuda_adb
|
---|
195 | endif
|
---|
196 |
|
---|
197 | ifeq ($(UARCH),sparc64)
|
---|
198 | DIRS += \
|
---|
199 | srv/hw/irc/obio
|
---|
200 | endif
|
---|
201 |
|
---|
202 | ifeq ($(UARCH),arm32)
|
---|
203 | DIRS += \
|
---|
204 | drv/infrastructure/rootamdm37x \
|
---|
205 | drv/fb/amdm37x_dispc
|
---|
206 | endif
|
---|
207 |
|
---|
208 | ## System libraries
|
---|
209 | #
|
---|
210 |
|
---|
211 | LIBC = lib/c
|
---|
212 | LIBS = \
|
---|
213 | lib/fs \
|
---|
214 | lib/block \
|
---|
215 | lib/clui \
|
---|
216 | lib/fmtutil \
|
---|
217 | lib/scsi \
|
---|
218 | lib/softint \
|
---|
219 | lib/softfloat \
|
---|
220 | lib/drv \
|
---|
221 | lib/graph \
|
---|
222 | lib/gui \
|
---|
223 | lib/hound \
|
---|
224 | lib/softrend \
|
---|
225 | lib/draw \
|
---|
226 | lib/net \
|
---|
227 | lib/nic \
|
---|
228 | lib/ext4 \
|
---|
229 | lib/usb \
|
---|
230 | lib/usbhost \
|
---|
231 | lib/usbdev \
|
---|
232 | lib/usbhid \
|
---|
233 | lib/usbvirt \
|
---|
234 | lib/pcm \
|
---|
235 | lib/bithenge \
|
---|
236 | lib/posix
|
---|
237 |
|
---|
238 | LIBC_BUILD = $(addsuffix .build,$(LIBC))
|
---|
239 | LIBS_BUILD = $(addsuffix .build,$(LIBS))
|
---|
240 | LIBN_BUILD = $(addsuffix .build,$(LIBN))
|
---|
241 | BUILDS := $(addsuffix .build,$(DIRS))
|
---|
242 |
|
---|
243 | CLEANS := $(addsuffix .clean,$(DIRS)) $(addsuffix .clean,$(LIBN)) $(addsuffix .clean,$(LIBS)) $(addsuffix .clean,$(LIBC))
|
---|
244 |
|
---|
245 | .PHONY: all $(LIBC_BUILD) $(LIBS_BUILD) $(LIBN_BUILD) $(BUILDS) $(CLEANS) clean
|
---|
246 |
|
---|
247 | all: $(BUILDS)
|
---|
248 |
|
---|
249 | clean: $(CLEANS)
|
---|
250 |
|
---|
251 | $(CLEANS):
|
---|
252 | -$(MAKE) -C $(basename $@) clean
|
---|
253 |
|
---|
254 | $(BUILDS): $(LIBC_BUILD) $(LIBS_BUILD) $(LIBN_BUILD)
|
---|
255 | $(MAKE) -C $(basename $@) all PRECHECK=$(PRECHECK)
|
---|
256 |
|
---|
257 | $(LIBN_BUILD): $(LIBC_BUILD) $(LIBS_BUILD)
|
---|
258 | $(MAKE) -C $(basename $@) all PRECHECK=$(PRECHECK)
|
---|
259 |
|
---|
260 | $(LIBS_BUILD): $(LIBC_BUILD)
|
---|
261 | $(MAKE) -C $(basename $@) all PRECHECK=$(PRECHECK)
|
---|
262 |
|
---|
263 | $(LIBC_BUILD):
|
---|
264 | $(MAKE) -C $(basename $@) all PRECHECK=$(PRECHECK)
|
---|