source: mainline/uspace/Makefile@ 452268a1

lfn serial ticket/834-toolchain-update topic/msim-upgrade topic/simplify-dev-export
Last change on this file since 452268a1 was c0379fc, checked in by Stanislav Kozina <stanislav.kozina@…>, 16 years ago

uptime

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