source: mainline/uspace/Makefile@ 16b2ea8

lfn serial ticket/834-toolchain-update topic/msim-upgrade topic/simplify-dev-export
Last change on this file since 16b2ea8 was cf5e86e, checked in by Martin Sucha <sucha14@…>, 14 years ago

Merge mainline changes

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