source: mainline/uspace/Makefile@ ac08cd9

lfn serial ticket/834-toolchain-update topic/msim-upgrade topic/simplify-dev-export
Last change on this file since ac08cd9 was 921b84f, checked in by Petr Koupy <petr.koupy@…>, 14 years ago

Merge libposix changes.

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