source: mainline/uspace/Makefile@ a3da2b2

lfn serial ticket/834-toolchain-update topic/msim-upgrade topic/simplify-dev-export
Last change on this file since a3da2b2 was 48e3190, checked in by Martin Decky <martin@…>, 13 years ago

cherrypick UDF file system driver implementation (originally by Julia Medvedeva)
with coding style improvements and minor changes

  • Property mode set to 100644
File size: 4.9 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/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/websrv \
74 app/vdemo \
75 app/vlaunch \
76 app/vterm \
77 srv/clipboard \
78 srv/locsrv \
79 srv/devman \
80 srv/loader \
81 srv/net/ethip \
82 srv/net/inetsrv \
83 srv/net/loopip \
84 srv/net/tcp \
85 srv/net/udp \
86 srv/ns \
87 srv/taskmon \
88 srv/vfs \
89 srv/bd/ata_bd \
90 srv/bd/sata_bd \
91 srv/bd/file_bd \
92 srv/bd/gxe_bd \
93 srv/bd/rd \
94 srv/bd/part/guid_part \
95 srv/bd/part/mbr_part \
96 srv/fs/exfat \
97 srv/fs/udf \
98 srv/fs/fat \
99 srv/fs/cdfs \
100 srv/fs/tmpfs \
101 srv/fs/mfs \
102 srv/fs/locfs \
103 srv/fs/ext2fs \
104 srv/fs/ext4fs \
105 srv/hid/compositor \
106 srv/hid/console \
107 srv/hid/s3c24xx_ts \
108 srv/hid/isdv4_tablet \
109 srv/hid/input \
110 srv/hid/output \
111 srv/hid/remcons \
112 srv/hw/char/s3c24xx_uart \
113 drv/infrastructure/root \
114 drv/infrastructure/rootvirt \
115 drv/block/ahci \
116 drv/char/i8042 \
117 drv/char/ps2mouse \
118 drv/char/xtkbd \
119 drv/test/test1 \
120 drv/test/test2 \
121 drv/test/test3 \
122 drv/fb/kfb \
123 drv/bus/usb/ehci \
124 drv/bus/usb/ohci \
125 drv/bus/usb/uhci \
126 drv/bus/usb/uhcirh \
127 drv/bus/usb/usbflbk \
128 drv/bus/usb/usbhid \
129 drv/bus/usb/usbhub \
130 drv/bus/usb/usbmast \
131 drv/bus/usb/usbmid \
132 drv/bus/usb/vhc \
133 drv/nic/ne2k \
134 drv/nic/e1k \
135 drv/nic/rtl8139
136
137ifeq ($(CONFIG_PCC),y)
138DIRS += \
139 app/cc \
140 app/ccom \
141 app/ccom/mkext \
142 app/cpp
143endif
144
145ifeq ($(CONFIG_BINUTILS),y)
146DIRS += \
147 app/binutils
148endif
149
150ifeq ($(CONFIG_MSIM),y)
151DIRS += \
152 app/msim
153endif
154
155## Platform-specific hardware support
156#
157
158ifeq ($(UARCH),amd64)
159 DIRS += \
160 drv/infrastructure/rootpc \
161 drv/bus/pci/pciintel \
162 drv/bus/isa \
163 drv/char/ns8250 \
164 srv/hw/irc/apic \
165 srv/hw/irc/i8259
166endif
167
168ifeq ($(UARCH),ia32)
169 DIRS += \
170 drv/infrastructure/rootpc \
171 drv/bus/pci/pciintel \
172 drv/bus/isa \
173 drv/char/ns8250 \
174 srv/hw/irc/apic \
175 srv/hw/irc/i8259
176endif
177
178ifeq ($(UARCH),ppc32)
179 DIRS += \
180 drv/infrastructure/rootmac \
181 drv/bus/pci/pciintel \
182 srv/hw/bus/cuda_adb
183endif
184
185ifeq ($(UARCH),sparc64)
186 DIRS += \
187 srv/hw/irc/obio
188endif
189
190## System libraries
191#
192
193LIBC = lib/c
194LIBS = \
195 lib/fs \
196 lib/block \
197 lib/clui \
198 lib/fmtutil \
199 lib/scsi \
200 lib/softint \
201 lib/softfloat \
202 lib/drv \
203 lib/graph \
204 lib/gui \
205 lib/softrend \
206 lib/draw \
207 lib/net \
208 lib/nic \
209 lib/ext2 \
210 lib/ext4 \
211 lib/usb \
212 lib/usbhost \
213 lib/usbdev \
214 lib/usbhid \
215 lib/usbvirt \
216 lib/posix
217
218LIBC_BUILD = $(addsuffix .build,$(LIBC))
219LIBS_BUILD = $(addsuffix .build,$(LIBS))
220LIBN_BUILD = $(addsuffix .build,$(LIBN))
221BUILDS := $(addsuffix .build,$(DIRS))
222
223CLEANS := $(addsuffix .clean,$(DIRS)) $(addsuffix .clean,$(LIBN)) $(addsuffix .clean,$(LIBS)) $(addsuffix .clean,$(LIBC))
224
225.PHONY: all $(LIBC_BUILD) $(LIBS_BUILD) $(LIBN_BUILD) $(BUILDS) $(CLEANS) clean
226
227all: $(BUILDS)
228
229clean: $(CLEANS)
230
231$(CLEANS):
232 -$(MAKE) -C $(basename $@) clean
233
234$(BUILDS): $(LIBC_BUILD) $(LIBS_BUILD) $(LIBN_BUILD)
235 $(MAKE) -C $(basename $@) all PRECHECK=$(PRECHECK)
236
237$(LIBN_BUILD): $(LIBC_BUILD) $(LIBS_BUILD)
238 $(MAKE) -C $(basename $@) all PRECHECK=$(PRECHECK)
239
240$(LIBS_BUILD): $(LIBC_BUILD)
241 $(MAKE) -C $(basename $@) all PRECHECK=$(PRECHECK)
242
243$(LIBC_BUILD):
244 $(MAKE) -C $(basename $@) all PRECHECK=$(PRECHECK)
Note: See TracBrowser for help on using the repository browser.