source: mainline/uspace/Makefile@ 50601ef4

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