source: mainline/uspace/Makefile@ c54f5d0

lfn serial ticket/834-toolchain-update topic/msim-upgrade topic/simplify-dev-export
Last change on this file since c54f5d0 was d1e580a, checked in by Sean Bartell <wingedtachikoma@…>, 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/bithenge \
38 app/blkdump \
39 app/bnchmark \
40 app/devctl \
41 app/edit \
42 app/ext2info \
43 app/getterm \
44 app/init \
45 app/inet \
46 app/kill \
47 app/killall \
48 app/klog \
49 app/loc \
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/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/hid/console \
101 srv/hid/s3c24xx_ts \
102 srv/hid/fb \
103 srv/hid/input \
104 srv/hid/remcons \
105 srv/hw/char/s3c24xx_uart \
106 drv/infrastructure/root \
107 drv/infrastructure/rootvirt \
108 drv/block/ahci \
109 drv/char/i8042 \
110 drv/char/ps2mouse \
111 drv/char/xtkbd \
112 drv/test/test1 \
113 drv/test/test2 \
114 drv/test/test3 \
115 drv/bus/usb/ehci \
116 drv/bus/usb/ohci \
117 drv/bus/usb/uhci \
118 drv/bus/usb/uhcirh \
119 drv/bus/usb/usbflbk \
120 drv/bus/usb/usbhid \
121 drv/bus/usb/usbhub \
122 drv/bus/usb/usbmast \
123 drv/bus/usb/usbmid \
124 drv/bus/usb/vhc \
125 drv/nic/ne2k \
126 drv/nic/e1k \
127 drv/nic/rtl8139
128
129ifeq ($(CONFIG_PCC),y)
130DIRS += \
131 app/cc \
132 app/ccom \
133 app/ccom/mkext \
134 app/cpp
135endif
136
137ifeq ($(CONFIG_BINUTILS),y)
138DIRS += \
139 app/binutils
140endif
141
142ifeq ($(CONFIG_MSIM),y)
143DIRS += \
144 app/msim
145endif
146
147## Platform-specific hardware support
148#
149
150ifeq ($(UARCH),amd64)
151 DIRS += \
152 drv/infrastructure/rootpc \
153 drv/bus/pci/pciintel \
154 drv/bus/isa \
155 drv/char/ns8250 \
156 srv/hw/irc/apic \
157 srv/hw/irc/i8259
158endif
159
160ifeq ($(UARCH),ia32)
161 DIRS += \
162 drv/infrastructure/rootpc \
163 drv/bus/pci/pciintel \
164 drv/bus/isa \
165 drv/char/ns8250 \
166 srv/hw/irc/apic \
167 srv/hw/irc/i8259
168endif
169
170ifeq ($(UARCH),ppc32)
171 DIRS += \
172 drv/infrastructure/rootmac \
173 drv/bus/pci/pciintel \
174 srv/hw/bus/cuda_adb
175endif
176
177ifeq ($(UARCH),sparc64)
178 DIRS += \
179 srv/hw/irc/obio
180endif
181
182## System libraries
183#
184
185LIBC = lib/c
186LIBS = \
187 lib/fs \
188 lib/block \
189 lib/clui \
190 lib/fmtutil \
191 lib/scsi \
192 lib/softint \
193 lib/softfloat \
194 lib/drv \
195 lib/fb \
196 lib/net \
197 lib/nic \
198 lib/ext2 \
199 lib/usb \
200 lib/usbhost \
201 lib/usbdev \
202 lib/usbhid \
203 lib/usbvirt \
204 lib/posix
205
206LIBC_BUILD = $(addsuffix .build,$(LIBC))
207LIBS_BUILD = $(addsuffix .build,$(LIBS))
208LIBN_BUILD = $(addsuffix .build,$(LIBN))
209BUILDS := $(addsuffix .build,$(DIRS))
210
211CLEANS := $(addsuffix .clean,$(DIRS)) $(addsuffix .clean,$(LIBN)) $(addsuffix .clean,$(LIBS)) $(addsuffix .clean,$(LIBC))
212
213.PHONY: all $(LIBC_BUILD) $(LIBS_BUILD) $(LIBN_BUILD) $(BUILDS) $(CLEANS) clean
214
215all: $(BUILDS)
216
217clean: $(CLEANS)
218
219$(CLEANS):
220 -$(MAKE) -C $(basename $@) clean
221
222$(BUILDS): $(LIBC_BUILD) $(LIBS_BUILD) $(LIBN_BUILD)
223 $(MAKE) -C $(basename $@) all PRECHECK=$(PRECHECK)
224
225$(LIBN_BUILD): $(LIBC_BUILD) $(LIBS_BUILD)
226 $(MAKE) -C $(basename $@) all PRECHECK=$(PRECHECK)
227
228$(LIBS_BUILD): $(LIBC_BUILD)
229 $(MAKE) -C $(basename $@) all PRECHECK=$(PRECHECK)
230
231$(LIBC_BUILD):
232 $(MAKE) -C $(basename $@) all PRECHECK=$(PRECHECK)
Note: See TracBrowser for help on using the repository browser.