source: mainline/uspace/Makefile@ 59fb782

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