source: mainline/uspace/Makefile@ 947e2ef

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

Crude DHCP client prototype.

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