source: mainline/uspace/Makefile@ fb86ff19

Last change on this file since fb86ff19 was b55f62a, checked in by Matthieu Riolo <matthieu.riolo@…>, 6 years ago

sysman: Create control utility sysctl

  • can list units and their states (starts to feel like systemctl :-)
  • helluva boilerplate to get some IPC between sysctl and sysman :-/

Conflicts:

boot/Makefile.common
uspace/Makefile

  • Property mode set to 100644
File size: 5.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/barber \
37 app/bdsh \
38 app/bithenge \
39 app/blkdump \
40 app/contacts \
41 app/corecfg \
42 app/cpptest \
43 app/devctl \
44 app/dnscfg \
45 app/dnsres \
46 app/download \
47 app/edit \
48 app/fdisk \
49 app/fontviewer \
50 app/getterm \
51 app/gunzip \
52 app/hbench \
53 app/init \
54 app/inet \
55 app/kill \
56 app/killall \
57 app/kio \
58 app/loc \
59 app/logset \
60 app/lprint \
61 app/mixerctl \
62 app/mkfat \
63 app/mkexfat \
64 app/mkext4 \
65 app/mkmfs \
66 app/modplay \
67 app/netecho \
68 app/nterm \
69 app/pci \
70 app/redir \
71 app/sbi \
72 app/sportdmp \
73 app/stats \
74 app/sysctl \
75 app/taskdump \
76 app/tester \
77 app/testread \
78 app/testrunner \
79 app/testwrit \
80 app/tetris \
81 app/tmon \
82 app/trace \
83 app/top \
84 app/untar \
85 app/usbinfo \
86 app/vol \
87 app/vuhid \
88 app/nic \
89 app/ping \
90 app/pkg \
91 app/sysinfo \
92 app/sysinst \
93 app/mkbd \
94 app/date \
95 app/vcalc \
96 app/vdemo \
97 app/viewer \
98 app/vlaunch \
99 app/vterm \
100 app/df \
101 app/wavplay \
102 app/websrv \
103 app/wifi_supplicant \
104 srv/audio/hound \
105 srv/clipboard \
106 srv/locsrv \
107 srv/logger \
108 srv/klog \
109 srv/devman \
110 srv/loader \
111 srv/net/dhcp \
112 srv/net/dnsrsrv \
113 srv/net/ethip \
114 srv/net/inetsrv \
115 srv/net/loopip \
116 srv/net/nconfsrv \
117 srv/net/slip \
118 srv/net/tcp \
119 srv/net/udp \
120 srv/ns \
121 srv/taskmon \
122 srv/sysman \
123 srv/taskman \
124 srv/vfs \
125 srv/bd/sata_bd \
126 srv/bd/file_bd \
127 srv/bd/rd \
128 srv/bd/vbd \
129 srv/fs/exfat \
130 srv/fs/udf \
131 srv/fs/fat \
132 srv/fs/cdfs \
133 srv/fs/tmpfs \
134 srv/fs/mfs \
135 srv/fs/locfs \
136 srv/fs/ext4fs \
137 srv/volsrv \
138 srv/hid/compositor \
139 srv/hid/console \
140 srv/hid/s3c24xx_ts \
141 srv/hid/isdv4_tablet \
142 srv/hid/input \
143 srv/hid/output \
144 srv/hid/remcons \
145 srv/hw/char/s3c24xx_uart \
146 srv/hid/rfb \
147 srv/test/chardev-test \
148 srv/test/ipc-test \
149 drv/audio/hdaudio \
150 drv/audio/sb16 \
151 drv/root/root \
152 drv/root/virt \
153 drv/block/ahci \
154 drv/block/ata_bd \
155 drv/block/ddisk \
156 drv/block/usbmast \
157 drv/block/virtio-blk \
158 drv/bus/adb/cuda_adb \
159 drv/bus/isa \
160 drv/bus/pci/pciintel \
161 drv/bus/usb/ehci \
162 drv/bus/usb/ohci \
163 drv/bus/usb/uhci \
164 drv/bus/usb/usbdiag \
165 drv/bus/usb/usbflbk \
166 drv/bus/usb/usbhub \
167 drv/bus/usb/usbmid \
168 drv/bus/usb/vhc \
169 drv/bus/usb/xhci \
170 drv/char/i8042 \
171 drv/char/msim-con \
172 drv/char/ns8250 \
173 drv/char/pc-lpt \
174 drv/char/pl011 \
175 drv/char/pl050 \
176 drv/char/ski-con \
177 drv/char/sun4v-con \
178 drv/fb/amdm37x_dispc \
179 drv/fb/kfb \
180 drv/hid/adb-kbd \
181 drv/hid/adb-mouse \
182 drv/hid/atkbd \
183 drv/hid/ps2mouse \
184 drv/hid/usbhid \
185 drv/hid/xtkbd \
186 drv/intctl/apic \
187 drv/intctl/gicv2 \
188 drv/intctl/i8259 \
189 drv/intctl/icp-ic \
190 drv/intctl/obio \
191 drv/nic/ne2k \
192 drv/nic/e1k \
193 drv/nic/rtl8139 \
194 drv/nic/rtl8169 \
195 drv/nic/ar9271 \
196 drv/nic/virtio-net \
197 drv/platform/amdm37x \
198 drv/platform/arm64virt \
199 drv/platform/icp \
200 drv/platform/mac \
201 drv/platform/malta \
202 drv/platform/msim \
203 drv/platform/pc \
204 drv/platform/ski \
205 drv/platform/sun4v \
206 drv/test/test1 \
207 drv/test/test2 \
208 drv/test/test3 \
209 drv/time/cmos-rtc
210
211## sun4u driver won't compile on 32-bit targets
212ifeq ($(UARCH),sparc64)
213 DIRS += \
214 drv/platform/sun4u
215endif
216
217## Dynamic linking tests
218#
219ifeq ($(CONFIG_BUILD_SHARED_LIBS),y)
220 DIRS += \
221 app/dltest \
222 app/dltests
223endif
224
225## System libraries
226#
227
228DIRS += \
229 lib/fs \
230 lib/block \
231 lib/c \
232 lib/cpp \
233 lib/crypto \
234 lib/clui \
235 lib/dltest \
236 lib/fdisk \
237 lib/fmtutil \
238 lib/scsi \
239 lib/sif \
240 lib/compress \
241 lib/drv \
242 lib/graph \
243 lib/gui \
244 lib/hound \
245 lib/http \
246 lib/conf \
247 lib/softrend \
248 lib/draw \
249 lib/label \
250 lib/math \
251 lib/minix \
252 lib/nettl \
253 lib/nic \
254 lib/ext4 \
255 lib/trackmod \
256 lib/untar \
257 lib/uri \
258 lib/usb \
259 lib/usbhost \
260 lib/usbdev \
261 lib/usbhid \
262 lib/usbvirt \
263 lib/pcm \
264 lib/pcut \
265 lib/bithenge \
266 lib/posix \
267 lib/ieee80211 \
268 lib/virtio \
269 lib/sysman
270
271BUILDS := $(addsuffix .build,$(DIRS))
272BUILDS_TESTS := $(addsuffix .build-test,$(DIRS))
273DEPS = $(addsuffix /deps.mk,$(DIRS))
274CLEANS := $(addsuffix .clean,$(DIRS))
275
276.PHONY: all $(BUILDS) $(BUILDS_TESTS) $(CLEANS) clean export
277
278all: $(BUILDS) $(BUILDS_TESTS)
279
280$(BUILDS_TESTS): $(BUILDS)
281 $(MAKE) -r -C $(basename $@) all-test PRECHECK=$(PRECHECK)
282
283export: $(BUILDS)
284 mkdir -p $(EXPORT_DIR)
285 $(MAKE) -r -C lib/posix export EXPORT_DIR=$(EXPORT_DIR)
286
287clean: $(CLEANS)
288 find lib app drv srv -name '*.o' -follow -exec rm \{\} \;
289 find lib app drv srv -name '*.lo' -follow -exec rm \{\} \;
290 find lib app drv srv -name '*.d' -follow -exec rm \{\} \;
291 rm -fr export
292
293$(CLEANS):
294 -$(MAKE) -r -C $(basename $@) fasterclean
295
296$(BUILDS):
297 $(MAKE) -r -C $(basename $@) all PRECHECK=$(PRECHECK)
298
299$(DEPS): %/deps.mk: %/Makefile
300 $(MAKE) -r -C $(@D) deps.mk SELF_TARGET="$(@D).build"
301
302-include $(DEPS)
Note: See TracBrowser for help on using the repository browser.