source: mainline/uspace/Makefile@ 7accfac

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

Merge mainline changes

  • Property mode set to 100644
File size: 4.3 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/mkminix \
49 app/redir \
50 app/sbi \
51 app/stats \
52 app/taskdump \
53 app/tester \
54 app/testread \
55 app/tetris \
56 app/trace \
57 app/top \
58 app/usbinfo \
59 app/vuhid \
60 app/netecho \
61 app/nettest1 \
62 app/nettest2 \
63 app/ping \
64 app/websrv \
65 app/sysinfo \
66 app/mkbd \
67 srv/clip \
68 srv/devmap \
69 srv/devman \
70 srv/loader \
71 srv/ns \
72 srv/taskmon \
73 srv/vfs \
74 srv/bd/ata_bd \
75 srv/bd/file_bd \
76 srv/bd/gxe_bd \
77 srv/bd/rd \
78 srv/bd/part/guid_part \
79 srv/bd/part/mbr_part \
80 srv/fs/fat \
81 srv/fs/tmpfs \
82 srv/fs/devfs \
83 srv/fs/minixfs \
84 srv/fs/ext2fs \
85 srv/hid/adb_mouse \
86 srv/hid/char_mouse \
87 srv/hid/s3c24xx_ts \
88 srv/hid/fb \
89 srv/hid/kbd \
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/root \
101 drv/rootvirt \
102 drv/test1 \
103 drv/test2 \
104 drv/test3 \
105 drv/ehci_hcd \
106 drv/ohci \
107 drv/uhci_hcd \
108 drv/uhci_rhd \
109 drv/usbflbk \
110 drv/usbhid \
111 drv/usbhub \
112 drv/usbmast \
113 drv/usbmid \
114 drv/usbmouse \
115 drv/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
127ifneq ($(UARCH),abs32le)
128 DIRS += srv/hid/console
129endif
130
131ifeq ($(UARCH),amd64)
132 DIRS += \
133 drv/rootpc \
134 drv/pciintel \
135 drv/isa \
136 drv/ns8250 \
137 srv/hw/irc/apic \
138 srv/hw/irc/i8259
139endif
140
141ifeq ($(UARCH),ia32)
142 DIRS += \
143 drv/rootpc \
144 drv/pciintel \
145 drv/isa \
146 drv/ns8250 \
147 srv/hw/irc/apic \
148 srv/hw/irc/i8259
149endif
150
151ifeq ($(UARCH),ppc32)
152 DIRS += srv/hw/bus/cuda_adb
153endif
154
155ifeq ($(UARCH),sparc64)
156 DIRS += \
157 srv/hw/irc/fhc \
158 srv/hw/irc/obio
159endif
160
161## System libraries
162#
163
164LIBC = lib/c
165LIBS = \
166 lib/fs \
167 lib/block \
168 lib/clui \
169 lib/softint \
170 lib/softfloat \
171 lib/drv \
172 lib/packet \
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.