date: remove dead code
[helenos.git] / uspace / Makefile
blob8306f7c4f03610f531798722317b71e3d948fd69
2 # Copyright (c) 2005 Martin Decky
3 # All rights reserved.
5 # Redistribution and use in source and binary forms, with or without
6 # modification, are permitted provided that the following conditions
7 # are met:
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.
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.
29 -include ../Makefile.common
30 -include ../Makefile.config
32 ## Common binaries
35 DIRS = \
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 app/vdemo \
76 app/vlaunch \
77 app/vterm \
78 srv/clipboard \
79 srv/locsrv \
80 srv/devman \
81 srv/loader \
82 srv/net/ethip \
83 srv/net/inetsrv \
84 srv/net/loopip \
85 srv/net/tcp \
86 srv/net/udp \
87 srv/ns \
88 srv/taskmon \
89 srv/vfs \
90 srv/bd/ata_bd \
91 srv/bd/sata_bd \
92 srv/bd/file_bd \
93 srv/bd/gxe_bd \
94 srv/bd/rd \
95 srv/bd/part/guid_part \
96 srv/bd/part/mbr_part \
97 srv/fs/exfat \
98 srv/fs/udf \
99 srv/fs/fat \
100 srv/fs/cdfs \
101 srv/fs/tmpfs \
102 srv/fs/mfs \
103 srv/fs/locfs \
104 srv/fs/ext2fs \
105 srv/fs/ext4fs \
106 srv/hid/compositor \
107 srv/hid/console \
108 srv/hid/s3c24xx_ts \
109 srv/hid/isdv4_tablet \
110 srv/hid/input \
111 srv/hid/output \
112 srv/hid/remcons \
113 srv/hw/char/s3c24xx_uart \
114 drv/infrastructure/root \
115 drv/infrastructure/rootvirt \
116 drv/block/ahci \
117 drv/char/i8042 \
118 drv/char/ps2mouse \
119 drv/char/xtkbd \
120 drv/test/test1 \
121 drv/test/test2 \
122 drv/test/test3 \
123 drv/fb/kfb \
124 drv/bus/usb/ehci \
125 drv/bus/usb/ohci \
126 drv/bus/usb/uhci \
127 drv/bus/usb/uhcirh \
128 drv/bus/usb/usbflbk \
129 drv/bus/usb/usbhid \
130 drv/bus/usb/usbhub \
131 drv/bus/usb/usbmast \
132 drv/bus/usb/usbmid \
133 drv/bus/usb/vhc \
134 drv/nic/ne2k \
135 drv/nic/e1k \
136 drv/nic/rtl8139 \
138 ifeq ($(CONFIG_PCC),y)
139 DIRS += \
140 app/cc \
141 app/ccom \
142 app/ccom/mkext \
143 app/cpp
144 endif
146 ifeq ($(CONFIG_BINUTILS),y)
147 DIRS += \
148 app/binutils
149 endif
151 ifeq ($(CONFIG_MSIM),y)
152 DIRS += \
153 app/msim
154 endif
156 ## Platform-specific hardware support
159 ifeq ($(UARCH),amd64)
160 DIRS += \
161 drv/infrastructure/rootpc \
162 drv/bus/pci/pciintel \
163 drv/bus/isa \
164 drv/char/ns8250 \
165 drv/time/cmos-rtc \
166 srv/hw/irc/apic \
167 srv/hw/irc/i8259
168 endif
170 ifeq ($(UARCH),ia32)
171 DIRS += \
172 drv/infrastructure/rootpc \
173 drv/bus/pci/pciintel \
174 drv/bus/isa \
175 drv/char/ns8250 \
176 drv/time/cmos-rtc \
177 srv/hw/irc/apic \
178 srv/hw/irc/i8259
179 endif
181 ifeq ($(UARCH),ppc32)
182 DIRS += \
183 drv/infrastructure/rootmac \
184 drv/bus/pci/pciintel \
185 srv/hw/bus/cuda_adb
186 endif
188 ifeq ($(UARCH),sparc64)
189 DIRS += \
190 srv/hw/irc/obio
191 endif
193 ## System libraries
196 LIBC = lib/c
197 LIBS = \
198 lib/fs \
199 lib/block \
200 lib/clui \
201 lib/fmtutil \
202 lib/scsi \
203 lib/softint \
204 lib/softfloat \
205 lib/drv \
206 lib/graph \
207 lib/gui \
208 lib/softrend \
209 lib/draw \
210 lib/net \
211 lib/nic \
212 lib/ext2 \
213 lib/ext4 \
214 lib/usb \
215 lib/usbhost \
216 lib/usbdev \
217 lib/usbhid \
218 lib/usbvirt \
219 lib/posix
221 LIBC_BUILD = $(addsuffix .build,$(LIBC))
222 LIBS_BUILD = $(addsuffix .build,$(LIBS))
223 LIBN_BUILD = $(addsuffix .build,$(LIBN))
224 BUILDS := $(addsuffix .build,$(DIRS))
226 CLEANS := $(addsuffix .clean,$(DIRS)) $(addsuffix .clean,$(LIBN)) $(addsuffix .clean,$(LIBS)) $(addsuffix .clean,$(LIBC))
228 .PHONY: all $(LIBC_BUILD) $(LIBS_BUILD) $(LIBN_BUILD) $(BUILDS) $(CLEANS) clean
230 all: $(BUILDS)
232 clean: $(CLEANS)
234 $(CLEANS):
235 -$(MAKE) -C $(basename $@) clean
237 $(BUILDS): $(LIBC_BUILD) $(LIBS_BUILD) $(LIBN_BUILD)
238 $(MAKE) -C $(basename $@) all PRECHECK=$(PRECHECK)
240 $(LIBN_BUILD): $(LIBC_BUILD) $(LIBS_BUILD)
241 $(MAKE) -C $(basename $@) all PRECHECK=$(PRECHECK)
243 $(LIBS_BUILD): $(LIBC_BUILD)
244 $(MAKE) -C $(basename $@) all PRECHECK=$(PRECHECK)
246 $(LIBC_BUILD):
247 $(MAKE) -C $(basename $@) all PRECHECK=$(PRECHECK)