source: mainline/uspace/Makefile@ 2a6e4ac2

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

add the well-known 'killall' command (also with the usual race condition feature :))

  • Property mode set to 100644
File size: 3.8 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/kill \
41 app/killall \
42 app/klog \
43 app/mkfat \
44 app/redir \
45 app/sbi \
46 app/stats \
47 app/taskdump \
48 app/tasks \
49 app/tester \
50 app/tetris \
51 app/trace \
52 app/top \
53 app/netecho \
54 app/nettest1 \
55 app/nettest2 \
56 app/ping \
57 app/websrv \
58 app/sysinfo \
59 srv/clip \
60 srv/devmap \
61 srv/devman \
62 srv/loader \
63 srv/ns \
64 srv/taskmon \
65 srv/vfs \
66 srv/bd/ata_bd \
67 srv/bd/file_bd \
68 srv/bd/gxe_bd \
69 srv/bd/rd \
70 srv/bd/part/guid_part \
71 srv/bd/part/mbr_part \
72 srv/fs/fat \
73 srv/fs/tmpfs \
74 srv/fs/devfs \
75 srv/hid/adb_mouse \
76 srv/hid/char_mouse \
77 srv/hid/s3c24xx_ts \
78 srv/hid/fb \
79 srv/hid/kbd \
80 srv/hw/char/i8042 \
81 srv/hw/char/s3c24xx_uart \
82 srv/hw/netif/dp8390 \
83 srv/net/cfg \
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## Networking
97#
98
99DIRS += \
100 srv/net/nil/eth \
101 srv/net/nil/nildummy
102
103## Platform-specific hardware support
104#
105
106ifneq ($(UARCH),abs32le)
107 DIRS += srv/hid/console
108endif
109
110ifeq ($(UARCH),amd64)
111 DIRS += drv/rootpc
112 DIRS += drv/pciintel
113 DIRS += drv/isa
114 DIRS += drv/ns8250
115endif
116
117ifeq ($(UARCH),ia32)
118 DIRS += drv/rootpc
119 DIRS += drv/pciintel
120 DIRS += drv/isa
121 DIRS += drv/ns8250
122endif
123
124ifeq ($(UARCH),ppc32)
125 DIRS += srv/hw/bus/cuda_adb
126endif
127
128ifeq ($(UARCH),sparc64)
129 DIRS += \
130 srv/hw/cir/fhc \
131 srv/hw/cir/obio
132endif
133
134## System libraries
135#
136
137LIBC = lib/c
138LIBS = \
139 lib/fs \
140 lib/block \
141 lib/clui \
142 lib/softint \
143 lib/softfloat \
144 lib/drv \
145 lib/packet \
146 lib/net
147
148LIBC_BUILD = $(addsuffix .build,$(LIBC))
149LIBS_BUILD = $(addsuffix .build,$(LIBS))
150LIBN_BUILD = $(addsuffix .build,$(LIBN))
151BUILDS := $(addsuffix .build,$(DIRS))
152
153CLEANS := $(addsuffix .clean,$(DIRS)) $(addsuffix .clean,$(LIBN)) $(addsuffix .clean,$(LIBS)) $(addsuffix .clean,$(LIBC))
154
155.PHONY: all $(LIBC_BUILD) $(LIBS_BUILD) $(LIBN_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) $(LIBN_BUILD)
165 $(MAKE) -C $(basename $@) all PRECHECK=$(PRECHECK)
166
167$(LIBN_BUILD): $(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.