source: mainline/uspace/Makefile@ 462b418

lfn serial ticket/834-toolchain-update topic/msim-upgrade topic/simplify-dev-export
Last change on this file since 462b418 was eb660787, checked in by Jakub Jermar <jakub@…>, 14 years ago

Remove unneeded stuff.

  • 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/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/exfat \
82 srv/fs/fat \
83 srv/fs/tmpfs \
84 srv/fs/locfs \
85 srv/fs/ext2fs \
86 srv/hid/console \
87 srv/hid/s3c24xx_ts \
88 srv/hid/fb \
89 srv/hid/input \
90 srv/hw/char/i8042 \
91 srv/hw/char/s3c24xx_uart \
92 srv/hw/netif/ne2000 \
93 srv/net/netif/lo \
94 srv/net/il/arp \
95 srv/net/il/ip \
96 srv/net/tl/icmp \
97 srv/net/tl/udp \
98 srv/net/tl/tcp \
99 srv/net/net \
100 drv/infrastructure/root \
101 drv/infrastructure/rootvirt \
102 drv/test/test1 \
103 drv/test/test2 \
104 drv/test/test3 \
105 drv/bus/usb/ehci \
106 drv/bus/usb/ohci \
107 drv/bus/usb/uhci \
108 drv/bus/usb/uhcirh \
109 drv/bus/usb/usbflbk \
110 drv/bus/usb/usbhid \
111 drv/bus/usb/usbhub \
112 drv/bus/usb/usbmast \
113 drv/bus/usb/usbmid \
114 drv/bus/usb/usbmouse \
115 drv/bus/usb/vhc
116
117## Networking
118#
119
120DIRS += \
121 srv/net/nil/eth \
122 srv/net/nil/nildummy
123
124## Platform-specific hardware support
125#
126
127ifeq ($(UARCH),amd64)
128 DIRS += \
129 drv/infrastructure/rootpc \
130 drv/bus/pci/pciintel \
131 drv/bus/isa \
132 drv/char/ns8250 \
133 srv/hw/irc/apic \
134 srv/hw/irc/i8259
135endif
136
137ifeq ($(UARCH),ia32)
138 DIRS += \
139 drv/infrastructure/rootpc \
140 drv/bus/pci/pciintel \
141 drv/bus/isa \
142 drv/char/ns8250 \
143 srv/hw/irc/apic \
144 srv/hw/irc/i8259
145endif
146
147ifeq ($(UARCH),ppc32)
148 DIRS += \
149 drv/infrastructure/rootmac \
150 srv/hw/bus/cuda_adb
151endif
152
153ifeq ($(UARCH),sparc64)
154 DIRS += \
155 srv/hw/irc/obio
156endif
157
158## System libraries
159#
160
161LIBC = lib/c
162LIBS = \
163 lib/fs \
164 lib/block \
165 lib/clui \
166 lib/fmtutil \
167 lib/scsi \
168 lib/softint \
169 lib/softfloat \
170 lib/drv \
171 lib/packet \
172 lib/imgmap \
173 lib/net \
174 lib/ext2 \
175 lib/usb \
176 lib/usbhost \
177 lib/usbdev \
178 lib/usbhid \
179 lib/usbvirt
180
181LIBC_BUILD = $(addsuffix .build,$(LIBC))
182LIBS_BUILD = $(addsuffix .build,$(LIBS))
183LIBN_BUILD = $(addsuffix .build,$(LIBN))
184BUILDS := $(addsuffix .build,$(DIRS))
185
186CLEANS := $(addsuffix .clean,$(DIRS)) $(addsuffix .clean,$(LIBN)) $(addsuffix .clean,$(LIBS)) $(addsuffix .clean,$(LIBC))
187
188.PHONY: all $(LIBC_BUILD) $(LIBS_BUILD) $(LIBN_BUILD) $(BUILDS) $(CLEANS) clean
189
190all: $(BUILDS)
191
192clean: $(CLEANS)
193
194$(CLEANS):
195 -$(MAKE) -C $(basename $@) clean
196
197$(BUILDS): $(LIBC_BUILD) $(LIBS_BUILD) $(LIBN_BUILD)
198 $(MAKE) -C $(basename $@) all PRECHECK=$(PRECHECK)
199
200$(LIBN_BUILD): $(LIBC_BUILD) $(LIBS_BUILD)
201 $(MAKE) -C $(basename $@) all PRECHECK=$(PRECHECK)
202
203$(LIBS_BUILD): $(LIBC_BUILD)
204 $(MAKE) -C $(basename $@) all PRECHECK=$(PRECHECK)
205
206$(LIBC_BUILD):
207 $(MAKE) -C $(basename $@) all PRECHECK=$(PRECHECK)
Note: See TracBrowser for help on using the repository browser.