source: mainline/uspace/Makefile@ f50a756

lfn serial ticket/834-toolchain-update topic/msim-upgrade topic/simplify-dev-export
Last change on this file since f50a756 was 5882487, checked in by Vojtech Horky <vojtechhorky@…>, 13 years ago

Merge mainline changes

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