source: mainline/uspace/Makefile@ e478cebf

lfn serial ticket/834-toolchain-update topic/msim-upgrade topic/simplify-dev-export
Last change on this file since e478cebf was e478cebf, checked in by Petr Koupy <petr.koupy@…>, 14 years ago

Merge binutils changes.

  • Property mode set to 100644
File size: 4.5 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/cc \
40 app/ccom \
41 app/ccom/mkext \
42 app/cpp \
43 app/edit \
44 app/ext2info \
45 app/getterm \
46 app/init \
47 app/kill \
48 app/killall \
49 app/klog \
50 app/lsusb \
51 app/mkfat \
52 app/redir \
53 app/sbi \
54 app/stats \
55 app/taskdump \
56 app/tester \
57 app/testread \
58 app/tetris \
59 app/trace \
60 app/top \
61 app/usbinfo \
62 app/vuhid \
63 app/netecho \
64 app/nettest1 \
65 app/nettest2 \
66 app/ping \
67 app/websrv \
68 app/sysinfo \
69 app/mkbd \
70 srv/clip \
71 srv/devmap \
72 srv/devman \
73 srv/loader \
74 srv/ns \
75 srv/taskmon \
76 srv/vfs \
77 srv/bd/ata_bd \
78 srv/bd/file_bd \
79 srv/bd/gxe_bd \
80 srv/bd/rd \
81 srv/bd/part/guid_part \
82 srv/bd/part/mbr_part \
83 srv/fs/fat \
84 srv/fs/tmpfs \
85 srv/fs/devfs \
86 srv/fs/ext2fs \
87 srv/hid/s3c24xx_ts \
88 srv/hid/fb \
89 srv/hid/input \
90 srv/hw/char/i8042 \
91 srv/hw/char/s3c24xx_uart \
92 srv/hw/netif/ne2000 \
93 srv/net/netif/lo \
94 srv/net/il/arp \
95 srv/net/il/ip \
96 srv/net/tl/icmp \
97 srv/net/tl/udp \
98 srv/net/tl/tcp \
99 srv/net/net \
100 drv/infrastructure/root \
101 drv/infrastructure/rootvirt \
102 drv/test/test1 \
103 drv/test/test2 \
104 drv/test/test3 \
105 drv/bus/usb/ehci \
106 drv/bus/usb/ohci \
107 drv/bus/usb/uhci \
108 drv/bus/usb/uhcirh \
109 drv/bus/usb/usbflbk \
110 drv/bus/usb/usbhid \
111 drv/bus/usb/usbhub \
112 drv/bus/usb/usbmast \
113 drv/bus/usb/usbmid \
114 drv/bus/usb/usbmouse \
115 drv/bus/usb/vhc
116
117ifeq ($(CONFIG_BINUTILS),y)
118DIRS += \
119 app/binutils
120endif
121
122## Networking
123#
124
125DIRS += \
126 srv/net/nil/eth \
127 srv/net/nil/nildummy
128
129## Platform-specific hardware support
130#
131
132ifneq ($(UARCH),abs32le)
133 DIRS += srv/hid/console
134endif
135
136ifeq ($(UARCH),amd64)
137 DIRS += \
138 drv/infrastructure/rootpc \
139 drv/bus/pci/pciintel \
140 drv/bus/isa \
141 drv/char/ns8250 \
142 srv/hw/irc/apic \
143 srv/hw/irc/i8259
144endif
145
146ifeq ($(UARCH),ia32)
147 DIRS += \
148 drv/infrastructure/rootpc \
149 drv/bus/pci/pciintel \
150 drv/bus/isa \
151 drv/char/ns8250 \
152 srv/hw/irc/apic \
153 srv/hw/irc/i8259
154endif
155
156ifeq ($(UARCH),ppc32)
157 DIRS += \
158 drv/infrastructure/rootmac \
159 srv/hw/bus/cuda_adb
160endif
161
162ifeq ($(UARCH),sparc64)
163 DIRS += \
164 srv/hw/irc/obio
165endif
166
167## System libraries
168#
169
170LIBC = lib/c
171LIBS = \
172 lib/fs \
173 lib/block \
174 lib/clui \
175 lib/scsi \
176 lib/softint \
177 lib/softfloat \
178 lib/drv \
179 lib/packet \
180 lib/net \
181 lib/ext2 \
182 lib/usb \
183 lib/usbhost \
184 lib/usbdev \
185 lib/usbhid \
186 lib/usbvirt \
187 lib/posix
188
189LIBC_BUILD = $(addsuffix .build,$(LIBC))
190LIBS_BUILD = $(addsuffix .build,$(LIBS))
191LIBN_BUILD = $(addsuffix .build,$(LIBN))
192BUILDS := $(addsuffix .build,$(DIRS))
193
194CLEANS := $(addsuffix .clean,$(DIRS)) $(addsuffix .clean,$(LIBN)) $(addsuffix .clean,$(LIBS)) $(addsuffix .clean,$(LIBC))
195
196.PHONY: all $(LIBC_BUILD) $(LIBS_BUILD) $(LIBN_BUILD) $(BUILDS) $(CLEANS) clean
197
198all: $(BUILDS)
199
200clean: $(CLEANS)
201
202$(CLEANS):
203 -$(MAKE) -C $(basename $@) clean
204
205$(BUILDS): $(LIBC_BUILD) $(LIBS_BUILD) $(LIBN_BUILD)
206 $(MAKE) -C $(basename $@) all PRECHECK=$(PRECHECK)
207
208$(LIBN_BUILD): $(LIBC_BUILD) $(LIBS_BUILD)
209 $(MAKE) -C $(basename $@) all PRECHECK=$(PRECHECK)
210
211$(LIBS_BUILD): $(LIBC_BUILD)
212 $(MAKE) -C $(basename $@) all PRECHECK=$(PRECHECK)
213
214$(LIBC_BUILD):
215 $(MAKE) -C $(basename $@) all PRECHECK=$(PRECHECK)
Note: See TracBrowser for help on using the repository browser.