source: mainline/uspace/Makefile@ 606c369

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

Replace loopback NIC with a loopback IP link provider.

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