source: mainline/uspace/Makefile@ 16dc887

lfn serial ticket/834-toolchain-update topic/msim-upgrade topic/simplify-dev-export
Last change on this file since 16dc887 was 16dc887, checked in by Jiri Svoboda <jiri@…>, 14 years ago

Merge Location service.

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