source: mainline/uspace/Makefile@ f7ea5400

lfn serial ticket/834-toolchain-update topic/msim-upgrade topic/simplify-dev-export
Last change on this file since f7ea5400 was 14c5005, checked in by Maurizio Lombardi <m.lombardi85@…>, 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/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/date \
74 app/websrv \
75 srv/clipboard \
76 srv/locsrv \
77 srv/devman \
78 srv/loader \
79 srv/net/ethip \
80 srv/net/inetsrv \
81 srv/net/loopip \
82 srv/net/tcp \
83 srv/net/udp \
84 srv/ns \
85 srv/taskmon \
86 srv/vfs \
87 srv/bd/ata_bd \
88 srv/bd/sata_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/fs/ext4fs \
102 srv/hid/console \
103 srv/hid/s3c24xx_ts \
104 srv/hid/fb \
105 srv/hid/input \
106 srv/hid/remcons \
107 srv/hw/char/s3c24xx_uart \
108 drv/infrastructure/root \
109 drv/infrastructure/rootvirt \
110 drv/block/ahci \
111 drv/char/i8042 \
112 drv/char/ps2mouse \
113 drv/char/xtkbd \
114 drv/test/test1 \
115 drv/test/test2 \
116 drv/test/test3 \
117 drv/bus/usb/ehci \
118 drv/bus/usb/ohci \
119 drv/bus/usb/uhci \
120 drv/bus/usb/uhcirh \
121 drv/bus/usb/usbflbk \
122 drv/bus/usb/usbhid \
123 drv/bus/usb/usbhub \
124 drv/bus/usb/usbmast \
125 drv/bus/usb/usbmid \
126 drv/bus/usb/vhc \
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
144ifeq ($(CONFIG_MSIM),y)
145DIRS += \
146 app/msim
147endif
148
149## Platform-specific hardware support
150#
151
152ifeq ($(UARCH),amd64)
153 DIRS += \
154 drv/infrastructure/rootpc \
155 drv/bus/pci/pciintel \
156 drv/bus/isa \
157 drv/char/ns8250 \
158 drv/time/cmos-rtc \
159 srv/hw/irc/apic \
160 srv/hw/irc/i8259
161endif
162
163ifeq ($(UARCH),ia32)
164 DIRS += \
165 drv/infrastructure/rootpc \
166 drv/bus/pci/pciintel \
167 drv/bus/isa \
168 drv/char/ns8250 \
169 drv/time/cmos-rtc \
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.