source: mainline/uspace/Makefile@ 64639256

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

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