source: mainline/uspace/Makefile@ 40e29f5

lfn serial ticket/834-toolchain-update topic/msim-upgrade topic/simplify-dev-export
Last change on this file since 40e29f5 was 63f8966, checked in by Martin Decky <martin@…>, 15 years ago

rename library directories (the common "lib" prefix is already in the upper directory)

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