source: mainline/uspace/Makefile@ 7bce1fc

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

console and framebuffer server rewrite

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