source: mainline/uspace/Makefile@ 52c4264

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

Merge mainline changes

  • Property mode set to 100644
File size: 5.0 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 app/vdemo \
76 app/vlaunch \
77 app/vterm \
78 srv/clipboard \
79 srv/locsrv \
80 srv/logger \
81 srv/devman \
82 srv/loader \
83 srv/net/ethip \
84 srv/net/inetsrv \
85 srv/net/loopip \
86 srv/net/tcp \
87 srv/net/udp \
88 srv/ns \
89 srv/taskmon \
90 srv/vfs \
91 srv/bd/ata_bd \
92 srv/bd/sata_bd \
93 srv/bd/file_bd \
94 srv/bd/gxe_bd \
95 srv/bd/rd \
96 srv/bd/part/guid_part \
97 srv/bd/part/mbr_part \
98 srv/fs/exfat \
99 srv/fs/fat \
100 srv/fs/cdfs \
101 srv/fs/tmpfs \
102 srv/fs/mfs \
103 srv/fs/locfs \
104 srv/fs/ext2fs \
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 srv/hw/irc/apic \
166 srv/hw/irc/i8259
167endif
168
169ifeq ($(UARCH),ia32)
170 DIRS += \
171 drv/infrastructure/rootpc \
172 drv/bus/pci/pciintel \
173 drv/bus/isa \
174 drv/char/ns8250 \
175 srv/hw/irc/apic \
176 srv/hw/irc/i8259
177endif
178
179ifeq ($(UARCH),ppc32)
180 DIRS += \
181 drv/infrastructure/rootmac \
182 drv/bus/pci/pciintel \
183 srv/hw/bus/cuda_adb
184endif
185
186ifeq ($(UARCH),sparc64)
187 DIRS += \
188 srv/hw/irc/obio
189endif
190
191## System libraries
192#
193
194LIBC = lib/c
195LIBS = \
196 lib/fs \
197 lib/block \
198 lib/clui \
199 lib/fmtutil \
200 lib/scsi \
201 lib/softint \
202 lib/softfloat \
203 lib/drv \
204 lib/graph \
205 lib/gui \
206 lib/softrend \
207 lib/draw \
208 lib/net \
209 lib/nic \
210 lib/ext2 \
211 lib/ext4 \
212 lib/usb \
213 lib/usbhost \
214 lib/usbdev \
215 lib/usbhid \
216 lib/usbvirt \
217 lib/posix
218
219LIBC_BUILD = $(addsuffix .build,$(LIBC))
220LIBS_BUILD = $(addsuffix .build,$(LIBS))
221LIBN_BUILD = $(addsuffix .build,$(LIBN))
222BUILDS := $(addsuffix .build,$(DIRS))
223
224CLEANS := $(addsuffix .clean,$(DIRS)) $(addsuffix .clean,$(LIBN)) $(addsuffix .clean,$(LIBS)) $(addsuffix .clean,$(LIBC))
225
226.PHONY: all $(LIBC_BUILD) $(LIBS_BUILD) $(LIBN_BUILD) $(BUILDS) $(CLEANS) clean
227
228all: $(BUILDS)
229
230clean: $(CLEANS)
231
232$(CLEANS):
233 -$(MAKE) -C $(basename $@) clean
234
235$(BUILDS): $(LIBC_BUILD) $(LIBS_BUILD) $(LIBN_BUILD)
236 $(MAKE) -C $(basename $@) all PRECHECK=$(PRECHECK)
237
238$(LIBN_BUILD): $(LIBC_BUILD) $(LIBS_BUILD)
239 $(MAKE) -C $(basename $@) all PRECHECK=$(PRECHECK)
240
241$(LIBS_BUILD): $(LIBC_BUILD)
242 $(MAKE) -C $(basename $@) all PRECHECK=$(PRECHECK)
243
244$(LIBC_BUILD):
245 $(MAKE) -C $(basename $@) all PRECHECK=$(PRECHECK)
Note: See TracBrowser for help on using the repository browser.