source: mainline/uspace/Makefile@ 2afae0e

lfn serial ticket/834-toolchain-update topic/msim-upgrade topic/simplify-dev-export
Last change on this file since 2afae0e was 6843a9c, checked in by Jan Vesely <jano.vesely@…>, 13 years ago

Merge mainline changes

Trivial conflicts.

  • Property mode set to 100644
File size: 4.7 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/blkdump \
38 app/bnchmark \
39 app/devctl \
40 app/dplay \
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/lsusb \
51 app/mixerctl \
52 app/mkfat \
53 app/mkexfat \
54 app/mkmfs \
55 app/nterm \
56 app/redir \
57 app/sbi \
58 app/sportdmp \
59 app/stats \
60 app/taskdump \
61 app/tester \
62 app/testread \
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/websrv \
76 srv/clipboard \
77 srv/locsrv \
78 srv/devman \
79 srv/loader \
80 srv/net/ethip \
81 srv/net/inetsrv \
82 srv/net/loopip \
83 srv/net/tcp \
84 srv/net/udp \
85 srv/ns \
86 srv/taskmon \
87 srv/vfs \
88 srv/bd/ata_bd \
89 srv/bd/file_bd \
90 srv/bd/gxe_bd \
91 srv/bd/rd \
92 srv/bd/part/guid_part \
93 srv/bd/part/mbr_part \
94 srv/fs/exfat \
95 srv/fs/fat \
96 srv/fs/cdfs \
97 srv/fs/tmpfs \
98 srv/fs/mfs \
99 srv/fs/locfs \
100 srv/fs/ext2fs \
101 srv/hid/console \
102 srv/hid/s3c24xx_ts \
103 srv/hid/fb \
104 srv/hid/input \
105 srv/hid/remcons \
106 srv/hw/char/s3c24xx_uart \
107 drv/audio/sb16 \
108 drv/infrastructure/root \
109 drv/infrastructure/rootvirt \
110 drv/char/i8042 \
111 drv/char/ps2mouse \
112 drv/char/xtkbd \
113 drv/test/test1 \
114 drv/test/test2 \
115 drv/test/test3 \
116 drv/bus/usb/ehci \
117 drv/bus/usb/ohci \
118 drv/bus/usb/uhci \
119 drv/bus/usb/uhcirh \
120 drv/bus/usb/usbflbk \
121 drv/bus/usb/usbhid \
122 drv/bus/usb/usbhub \
123 drv/bus/usb/usbmast \
124 drv/bus/usb/usbmid \
125 drv/bus/usb/vhc \
126 drv/nic/ne2k \
127 drv/nic/e1k \
128 drv/nic/rtl8139
129
130ifeq ($(CONFIG_PCC),y)
131DIRS += \
132 app/cc \
133 app/ccom \
134 app/ccom/mkext \
135 app/cpp
136endif
137
138ifeq ($(CONFIG_BINUTILS),y)
139DIRS += \
140 app/binutils
141endif
142
143ifeq ($(CONFIG_MSIM),y)
144DIRS += \
145 app/msim
146endif
147
148## Platform-specific hardware support
149#
150
151ifeq ($(UARCH),amd64)
152 DIRS += \
153 drv/infrastructure/rootpc \
154 drv/bus/pci/pciintel \
155 drv/bus/isa \
156 drv/char/ns8250 \
157 srv/hw/irc/apic \
158 srv/hw/irc/i8259
159endif
160
161ifeq ($(UARCH),ia32)
162 DIRS += \
163 drv/infrastructure/rootpc \
164 drv/bus/pci/pciintel \
165 drv/bus/isa \
166 drv/char/ns8250 \
167 srv/hw/irc/apic \
168 srv/hw/irc/i8259
169endif
170
171ifeq ($(UARCH),ppc32)
172 DIRS += \
173 drv/infrastructure/rootmac \
174 srv/hw/bus/cuda_adb
175endif
176
177ifeq ($(UARCH),sparc64)
178 DIRS += \
179 srv/hw/irc/obio
180endif
181
182## System libraries
183#
184
185LIBC = lib/c
186LIBS = \
187 lib/fs \
188 lib/block \
189 lib/clui \
190 lib/fmtutil \
191 lib/scsi \
192 lib/softint \
193 lib/softfloat \
194 lib/drv \
195 lib/fb \
196 lib/net \
197 lib/nic \
198 lib/ext2 \
199 lib/usb \
200 lib/usbhost \
201 lib/usbdev \
202 lib/usbhid \
203 lib/usbvirt \
204 lib/posix
205
206LIBC_BUILD = $(addsuffix .build,$(LIBC))
207LIBS_BUILD = $(addsuffix .build,$(LIBS))
208LIBN_BUILD = $(addsuffix .build,$(LIBN))
209BUILDS := $(addsuffix .build,$(DIRS))
210
211CLEANS := $(addsuffix .clean,$(DIRS)) $(addsuffix .clean,$(LIBN)) $(addsuffix .clean,$(LIBS)) $(addsuffix .clean,$(LIBC))
212
213.PHONY: all $(LIBC_BUILD) $(LIBS_BUILD) $(LIBN_BUILD) $(BUILDS) $(CLEANS) clean
214
215all: $(BUILDS)
216
217clean: $(CLEANS)
218
219$(CLEANS):
220 -$(MAKE) -C $(basename $@) clean
221
222$(BUILDS): $(LIBC_BUILD) $(LIBS_BUILD) $(LIBN_BUILD)
223 $(MAKE) -C $(basename $@) all PRECHECK=$(PRECHECK)
224
225$(LIBN_BUILD): $(LIBC_BUILD) $(LIBS_BUILD)
226 $(MAKE) -C $(basename $@) all PRECHECK=$(PRECHECK)
227
228$(LIBS_BUILD): $(LIBC_BUILD)
229 $(MAKE) -C $(basename $@) all PRECHECK=$(PRECHECK)
230
231$(LIBC_BUILD):
232 $(MAKE) -C $(basename $@) all PRECHECK=$(PRECHECK)
Note: See TracBrowser for help on using the repository browser.