source: mainline/uspace/Makefile@ 9923afb

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

date: add the date app to the uspace Makefile

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