source: mainline/uspace/Makefile@ 8fde078

lfn serial ticket/834-toolchain-update topic/msim-upgrade topic/simplify-dev-export
Last change on this file since 8fde078 was eb083ad, checked in by Maurizio Lombardi <m.lombardi85@…>, 13 years ago

merge mainline changes

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