source: mainline/uspace/Makefile@ d578fb9

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

Added a simple program to benchmark filesystems

  • 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
100## Networking
101#
102
103DIRS += \
104 srv/net/nil/eth \
105 srv/net/nil/nildummy
106
107## Platform-specific hardware support
108#
109
110ifneq ($(UARCH),abs32le)
111 DIRS += srv/hid/console
112endif
113
114ifeq ($(UARCH),amd64)
115 DIRS += \
116 drv/rootpc \
117 drv/pciintel \
118 drv/isa \
119 drv/ns8250 \
120 srv/hw/irc/apic \
121 srv/hw/irc/i8259
122endif
123
124ifeq ($(UARCH),ia32)
125 DIRS += \
126 drv/rootpc \
127 drv/pciintel \
128 drv/isa \
129 drv/ns8250 \
130 srv/hw/irc/apic \
131 srv/hw/irc/i8259
132endif
133
134ifeq ($(UARCH),ppc32)
135 DIRS += srv/hw/bus/cuda_adb
136endif
137
138ifeq ($(UARCH),sparc64)
139 DIRS += \
140 srv/hw/irc/fhc \
141 srv/hw/irc/obio
142endif
143
144## System libraries
145#
146
147LIBC = lib/c
148LIBS = \
149 lib/fs \
150 lib/block \
151 lib/clui \
152 lib/softint \
153 lib/softfloat \
154 lib/drv \
155 lib/packet \
156 lib/net \
157 lib/ext2
158
159LIBC_BUILD = $(addsuffix .build,$(LIBC))
160LIBS_BUILD = $(addsuffix .build,$(LIBS))
161LIBN_BUILD = $(addsuffix .build,$(LIBN))
162BUILDS := $(addsuffix .build,$(DIRS))
163
164CLEANS := $(addsuffix .clean,$(DIRS)) $(addsuffix .clean,$(LIBN)) $(addsuffix .clean,$(LIBS)) $(addsuffix .clean,$(LIBC))
165
166.PHONY: all $(LIBC_BUILD) $(LIBS_BUILD) $(LIBN_BUILD) $(BUILDS) $(CLEANS) clean
167
168all: $(BUILDS)
169
170clean: $(CLEANS)
171
172$(CLEANS):
173 -$(MAKE) -C $(basename $@) clean
174
175$(BUILDS): $(LIBC_BUILD) $(LIBS_BUILD) $(LIBN_BUILD)
176 $(MAKE) -C $(basename $@) all PRECHECK=$(PRECHECK)
177
178$(LIBN_BUILD): $(LIBC_BUILD) $(LIBS_BUILD)
179 $(MAKE) -C $(basename $@) all PRECHECK=$(PRECHECK)
180
181$(LIBS_BUILD): $(LIBC_BUILD)
182 $(MAKE) -C $(basename $@) all PRECHECK=$(PRECHECK)
183
184$(LIBC_BUILD):
185 $(MAKE) -C $(basename $@) all PRECHECK=$(PRECHECK)
Note: See TracBrowser for help on using the repository browser.