source: mainline/uspace/Makefile@ 1fff583

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

Merge with mainline

  • 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/edit \
41 app/ext2info \
42 app/getterm \
43 app/init \
44 app/kill \
45 app/killall \
46 app/klog \
47 app/locinfo \
48 app/lsusb \
49 app/mkfat \
50 app/mkexfat \
51 app/mkmfs \
52 app/redir \
53 app/sbi \
54 app/sportdmp \
55 app/stats \
56 app/taskdump \
57 app/tester \
58 app/testread \
59 app/testwrit \
60 app/tetris \
61 app/trace \
62 app/top \
63 app/usbinfo \
64 app/vuhid \
65 app/netecho \
66 app/nettest1 \
67 app/nettest2 \
68 app/nettest3 \
69 app/ping \
70 app/websrv \
71 app/sysinfo \
72 app/mkbd \
73 srv/clip \
74 srv/loc \
75 srv/devman \
76 srv/loader \
77 srv/ns \
78 srv/taskmon \
79 srv/vfs \
80 srv/bd/ata_bd \
81 srv/bd/file_bd \
82 srv/bd/gxe_bd \
83 srv/bd/rd \
84 srv/bd/part/guid_part \
85 srv/bd/part/mbr_part \
86 srv/fs/exfat \
87 srv/fs/fat \
88 srv/fs/cdfs \
89 srv/fs/tmpfs \
90 srv/fs/mfs \
91 srv/fs/locfs \
92 srv/fs/ext2fs \
93 srv/fs/ext4fs \
94 srv/hid/console \
95 srv/hid/s3c24xx_ts \
96 srv/hid/fb \
97 srv/hid/input \
98 srv/hid/remcons \
99 srv/hw/char/s3c24xx_uart \
100 srv/net/il/arp \
101 srv/net/il/ip \
102 srv/net/tl/icmp \
103 srv/net/tl/udp \
104 srv/net/tl/tcp \
105 srv/net/nil/eth \
106 srv/net/nil/nildummy \
107 srv/net/net \
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/lo \
127 drv/nic/ne2k \
128 drv/nic/e1k \
129 drv/nic/rtl8139
130
131ifeq ($(CONFIG_PCC),y)
132DIRS += \
133 app/cc \
134 app/ccom \
135 app/ccom/mkext \
136 app/cpp
137endif
138
139ifeq ($(CONFIG_BINUTILS),y)
140DIRS += \
141 app/binutils
142endif
143
144## Platform-specific hardware support
145#
146
147ifeq ($(UARCH),amd64)
148 DIRS += \
149 drv/infrastructure/rootpc \
150 drv/bus/pci/pciintel \
151 drv/bus/isa \
152 drv/char/ns8250 \
153 srv/hw/irc/apic \
154 srv/hw/irc/i8259
155endif
156
157ifeq ($(UARCH),ia32)
158 DIRS += \
159 drv/infrastructure/rootpc \
160 drv/bus/pci/pciintel \
161 drv/bus/isa \
162 drv/char/ns8250 \
163 srv/hw/irc/apic \
164 srv/hw/irc/i8259
165endif
166
167ifeq ($(UARCH),ppc32)
168 DIRS += \
169 drv/infrastructure/rootmac \
170 srv/hw/bus/cuda_adb
171endif
172
173ifeq ($(UARCH),sparc64)
174 DIRS += \
175 srv/hw/irc/obio
176endif
177
178## System libraries
179#
180
181LIBC = lib/c
182LIBS = \
183 lib/fs \
184 lib/block \
185 lib/clui \
186 lib/fmtutil \
187 lib/scsi \
188 lib/softint \
189 lib/softfloat \
190 lib/drv \
191 lib/fb \
192 lib/net \
193 lib/nic \
194 lib/ext2 \
195 lib/ext4 \
196 lib/usb \
197 lib/usbhost \
198 lib/usbdev \
199 lib/usbhid \
200 lib/usbvirt \
201 lib/posix
202
203LIBC_BUILD = $(addsuffix .build,$(LIBC))
204LIBS_BUILD = $(addsuffix .build,$(LIBS))
205LIBN_BUILD = $(addsuffix .build,$(LIBN))
206BUILDS := $(addsuffix .build,$(DIRS))
207
208CLEANS := $(addsuffix .clean,$(DIRS)) $(addsuffix .clean,$(LIBN)) $(addsuffix .clean,$(LIBS)) $(addsuffix .clean,$(LIBC))
209
210.PHONY: all $(LIBC_BUILD) $(LIBS_BUILD) $(LIBN_BUILD) $(BUILDS) $(CLEANS) clean
211
212all: $(BUILDS)
213
214clean: $(CLEANS)
215
216$(CLEANS):
217 -$(MAKE) -C $(basename $@) clean
218
219$(BUILDS): $(LIBC_BUILD) $(LIBS_BUILD) $(LIBN_BUILD)
220 $(MAKE) -C $(basename $@) all PRECHECK=$(PRECHECK)
221
222$(LIBN_BUILD): $(LIBC_BUILD) $(LIBS_BUILD)
223 $(MAKE) -C $(basename $@) all PRECHECK=$(PRECHECK)
224
225$(LIBS_BUILD): $(LIBC_BUILD)
226 $(MAKE) -C $(basename $@) all PRECHECK=$(PRECHECK)
227
228$(LIBC_BUILD):
229 $(MAKE) -C $(basename $@) all PRECHECK=$(PRECHECK)
Note: See TracBrowser for help on using the repository browser.