source: mainline/uspace/Makefile@ ea6c838

lfn serial ticket/834-toolchain-update topic/msim-upgrade topic/simplify-dev-export
Last change on this file since ea6c838 was ea6c838, checked in by Jan Vesely <jano.vesely@…>, 13 years ago

Create libpcm.

Move pcm related functions and definitions there.
Make other stuff use this library.
Rename most of it on the way.

  • Property mode set to 100644
File size: 4.8 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/dplay \
41 app/drec \
42 app/edit \
43 app/ext2info \
44 app/getterm \
45 app/init \
46 app/inet \
47 app/kill \
48 app/killall \
49 app/klog \
50 app/loc \
51 app/lsusb \
52 app/mixerctl \
53 app/mkfat \
54 app/mkexfat \
55 app/mkmfs \
56 app/nterm \
57 app/redir \
58 app/sbi \
59 app/sportdmp \
60 app/stats \
61 app/taskdump \
62 app/tester \
63 app/testread \
64 app/tetris \
65 app/trace \
66 app/top \
67 app/usbinfo \
68 app/vuhid \
69 app/netecho \
70 app/nettest1 \
71 app/nettest2 \
72 app/nettest3 \
73 app/ping \
74 app/sysinfo \
75 app/mkbd \
76 app/wavplay \
77 app/websrv \
78 srv/audio/hound \
79 srv/clipboard \
80 srv/locsrv \
81 srv/devman \
82 srv/loader \
83 srv/net/ethip \
84 srv/net/inetsrv \
85 srv/net/loopip \
86 srv/net/tcp \
87 srv/net/udp \
88 srv/ns \
89 srv/taskmon \
90 srv/vfs \
91 srv/bd/ata_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/fat \
99 srv/fs/cdfs \
100 srv/fs/tmpfs \
101 srv/fs/mfs \
102 srv/fs/locfs \
103 srv/fs/ext2fs \
104 srv/hid/console \
105 srv/hid/s3c24xx_ts \
106 srv/hid/fb \
107 srv/hid/input \
108 srv/hid/remcons \
109 srv/hw/char/s3c24xx_uart \
110 drv/audio/sb16 \
111 drv/infrastructure/root \
112 drv/infrastructure/rootvirt \
113 drv/char/i8042 \
114 drv/char/ps2mouse \
115 drv/char/xtkbd \
116 drv/test/test1 \
117 drv/test/test2 \
118 drv/test/test3 \
119 drv/bus/usb/ehci \
120 drv/bus/usb/ohci \
121 drv/bus/usb/uhci \
122 drv/bus/usb/uhcirh \
123 drv/bus/usb/usbflbk \
124 drv/bus/usb/usbhid \
125 drv/bus/usb/usbhub \
126 drv/bus/usb/usbmast \
127 drv/bus/usb/usbmid \
128 drv/bus/usb/vhc \
129 drv/nic/ne2k \
130 drv/nic/e1k \
131 drv/nic/rtl8139
132
133ifeq ($(CONFIG_PCC),y)
134DIRS += \
135 app/cc \
136 app/ccom \
137 app/ccom/mkext \
138 app/cpp
139endif
140
141ifeq ($(CONFIG_BINUTILS),y)
142DIRS += \
143 app/binutils
144endif
145
146ifeq ($(CONFIG_MSIM),y)
147DIRS += \
148 app/msim
149endif
150
151## Platform-specific hardware support
152#
153
154ifeq ($(UARCH),amd64)
155 DIRS += \
156 drv/infrastructure/rootpc \
157 drv/bus/pci/pciintel \
158 drv/bus/isa \
159 drv/char/ns8250 \
160 srv/hw/irc/apic \
161 srv/hw/irc/i8259
162endif
163
164ifeq ($(UARCH),ia32)
165 DIRS += \
166 drv/infrastructure/rootpc \
167 drv/bus/pci/pciintel \
168 drv/bus/isa \
169 drv/char/ns8250 \
170 srv/hw/irc/apic \
171 srv/hw/irc/i8259
172endif
173
174ifeq ($(UARCH),ppc32)
175 DIRS += \
176 drv/infrastructure/rootmac \
177 srv/hw/bus/cuda_adb
178endif
179
180ifeq ($(UARCH),sparc64)
181 DIRS += \
182 srv/hw/irc/obio
183endif
184
185## System libraries
186#
187
188LIBC = lib/c
189LIBS = \
190 lib/fs \
191 lib/block \
192 lib/clui \
193 lib/fmtutil \
194 lib/scsi \
195 lib/softint \
196 lib/softfloat \
197 lib/drv \
198 lib/fb \
199 lib/hound \
200 lib/net \
201 lib/nic \
202 lib/ext2 \
203 lib/usb \
204 lib/usbhost \
205 lib/usbdev \
206 lib/usbhid \
207 lib/usbvirt \
208 lib/pcm \
209 lib/posix
210
211LIBC_BUILD = $(addsuffix .build,$(LIBC))
212LIBS_BUILD = $(addsuffix .build,$(LIBS))
213LIBN_BUILD = $(addsuffix .build,$(LIBN))
214BUILDS := $(addsuffix .build,$(DIRS))
215
216CLEANS := $(addsuffix .clean,$(DIRS)) $(addsuffix .clean,$(LIBN)) $(addsuffix .clean,$(LIBS)) $(addsuffix .clean,$(LIBC))
217
218.PHONY: all $(LIBC_BUILD) $(LIBS_BUILD) $(LIBN_BUILD) $(BUILDS) $(CLEANS) clean
219
220all: $(BUILDS)
221
222clean: $(CLEANS)
223
224$(CLEANS):
225 -$(MAKE) -C $(basename $@) clean
226
227$(BUILDS): $(LIBC_BUILD) $(LIBS_BUILD) $(LIBN_BUILD)
228 $(MAKE) -C $(basename $@) all PRECHECK=$(PRECHECK)
229
230$(LIBN_BUILD): $(LIBC_BUILD) $(LIBS_BUILD)
231 $(MAKE) -C $(basename $@) all PRECHECK=$(PRECHECK)
232
233$(LIBS_BUILD): $(LIBC_BUILD)
234 $(MAKE) -C $(basename $@) all PRECHECK=$(PRECHECK)
235
236$(LIBC_BUILD):
237 $(MAKE) -C $(basename $@) all PRECHECK=$(PRECHECK)
Note: See TracBrowser for help on using the repository browser.