source: mainline/uspace/Makefile@ 60e3e85

lfn serial ticket/834-toolchain-update topic/msim-upgrade topic/simplify-dev-export
Last change on this file since 60e3e85 was 98a0fd3, checked in by Jiří Zárevúcky <zarevucky.jiri@…>, 14 years ago

Make C compiler build.

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