source: mainline/uspace/Makefile@ 04803bf

lfn serial ticket/834-toolchain-update topic/msim-upgrade topic/simplify-dev-export
Last change on this file since 04803bf was 04803bf, checked in by Jiri Svoboda <jiri@…>, 15 years ago

Merge mainline changes (needs fixes).

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