source: mainline/uspace/Makefile@ bd29f9c9

lfn serial ticket/834-toolchain-update topic/msim-upgrade topic/simplify-dev-export
Last change on this file since bd29f9c9 was b828907, checked in by Frantisek Princ <frantisek.princ@…>, 13 years ago

Merge with mainline

  • 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/mkfat \
50 app/mkexfat \
51 app/mkmfs \
52 app/nterm \
53 app/redir \
54 app/sbi \
55 app/sportdmp \
56 app/stats \
57 app/taskdump \
58 app/tester \
59 app/testread \
60 app/testwrit \
61 app/tetris \
62 app/trace \
63 app/top \
64 app/usbinfo \
65 app/vuhid \
66 app/netecho \
67 app/nettest1 \
68 app/nettest2 \
69 app/nettest3 \
70 app/ping \
71 app/sysinfo \
72 app/mkbd \
73 app/websrv \
74 srv/clipboard \
75 srv/locsrv \
76 srv/devman \
77 srv/loader \
78 srv/net/ethip \
79 srv/net/inetsrv \
80 srv/net/loopip \
81 srv/net/tcp \
82 srv/net/udp \
83 srv/ns \
84 srv/taskmon \
85 srv/vfs \
86 srv/bd/ata_bd \
87 srv/bd/sata_bd \
88 srv/bd/file_bd \
89 srv/bd/gxe_bd \
90 srv/bd/rd \
91 srv/bd/part/guid_part \
92 srv/bd/part/mbr_part \
93 srv/fs/exfat \
94 srv/fs/fat \
95 srv/fs/cdfs \
96 srv/fs/tmpfs \
97 srv/fs/mfs \
98 srv/fs/locfs \
99 srv/fs/ext2fs \
100 srv/fs/ext4fs \
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/infrastructure/root \
108 drv/infrastructure/rootvirt \
109 drv/block/ahci \
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 drv/bus/pci/pciintel \
175 srv/hw/bus/cuda_adb
176endif
177
178ifeq ($(UARCH),sparc64)
179 DIRS += \
180 srv/hw/irc/obio
181endif
182
183## System libraries
184#
185
186LIBC = lib/c
187LIBS = \
188 lib/fs \
189 lib/block \
190 lib/clui \
191 lib/fmtutil \
192 lib/scsi \
193 lib/softint \
194 lib/softfloat \
195 lib/drv \
196 lib/fb \
197 lib/net \
198 lib/nic \
199 lib/ext2 \
200 lib/ext4 \
201 lib/usb \
202 lib/usbhost \
203 lib/usbdev \
204 lib/usbhid \
205 lib/usbvirt \
206 lib/posix
207
208LIBC_BUILD = $(addsuffix .build,$(LIBC))
209LIBS_BUILD = $(addsuffix .build,$(LIBS))
210LIBN_BUILD = $(addsuffix .build,$(LIBN))
211BUILDS := $(addsuffix .build,$(DIRS))
212
213CLEANS := $(addsuffix .clean,$(DIRS)) $(addsuffix .clean,$(LIBN)) $(addsuffix .clean,$(LIBS)) $(addsuffix .clean,$(LIBC))
214
215.PHONY: all $(LIBC_BUILD) $(LIBS_BUILD) $(LIBN_BUILD) $(BUILDS) $(CLEANS) clean
216
217all: $(BUILDS)
218
219clean: $(CLEANS)
220
221$(CLEANS):
222 -$(MAKE) -C $(basename $@) clean
223
224$(BUILDS): $(LIBC_BUILD) $(LIBS_BUILD) $(LIBN_BUILD)
225 $(MAKE) -C $(basename $@) all PRECHECK=$(PRECHECK)
226
227$(LIBN_BUILD): $(LIBC_BUILD) $(LIBS_BUILD)
228 $(MAKE) -C $(basename $@) all PRECHECK=$(PRECHECK)
229
230$(LIBS_BUILD): $(LIBC_BUILD)
231 $(MAKE) -C $(basename $@) all PRECHECK=$(PRECHECK)
232
233$(LIBC_BUILD):
234 $(MAKE) -C $(basename $@) all PRECHECK=$(PRECHECK)
Note: See TracBrowser for help on using the repository browser.