source: mainline/uspace/Makefile@ a1e2df13

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

Merge mainline changes.

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