source: mainline/uspace/Makefile@ a1467102

lfn serial ticket/834-toolchain-update topic/msim-upgrade topic/simplify-dev-export
Last change on this file since a1467102 was a1467102, checked in by Oleg Romanenko <romanenko.oleg@…>, 14 years ago
  1. Add utility to calculate CRC32 for a file(s): filecrc
  2. Add utility to fill file with specified number of random bytes: filegen

I've used they for testing FAT server. CRC32 algorithm is equal to
cksfv linux utility.

  • 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/filecrc \
39 app/filegen \
40 app/getterm \
41 app/init \
42 app/kill \
43 app/killall \
44 app/klog \
45 app/mkfat \
46 app/redir \
47 app/sbi \
48 app/stats \
49 app/taskdump \
50 app/tester \
51 app/tetris \
52 app/trace \
53 app/top \
54 app/netecho \
55 app/nettest1 \
56 app/nettest2 \
57 app/ping \
58 app/websrv \
59 app/sysinfo \
60 srv/clip \
61 srv/devmap \
62 srv/devman \
63 srv/loader \
64 srv/ns \
65 srv/taskmon \
66 srv/vfs \
67 srv/bd/ata_bd \
68 srv/bd/file_bd \
69 srv/bd/gxe_bd \
70 srv/bd/rd \
71 srv/bd/part/guid_part \
72 srv/bd/part/mbr_part \
73 srv/fs/fat \
74 srv/fs/tmpfs \
75 srv/fs/devfs \
76 srv/hid/adb_mouse \
77 srv/hid/char_mouse \
78 srv/hid/s3c24xx_ts \
79 srv/hid/fb \
80 srv/hid/kbd \
81 srv/hw/char/i8042 \
82 srv/hw/char/s3c24xx_uart \
83 srv/hw/netif/ne2000 \
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 += \
112 drv/rootpc \
113 drv/pciintel \
114 drv/isa \
115 drv/ns8250 \
116 srv/hw/irc/apic \
117 srv/hw/irc/i8259
118endif
119
120ifeq ($(UARCH),ia32)
121 DIRS += \
122 drv/rootpc \
123 drv/pciintel \
124 drv/isa \
125 drv/ns8250 \
126 srv/hw/irc/apic \
127 srv/hw/irc/i8259
128endif
129
130ifeq ($(UARCH),ppc32)
131 DIRS += srv/hw/bus/cuda_adb
132endif
133
134ifeq ($(UARCH),sparc64)
135 DIRS += \
136 srv/hw/irc/fhc \
137 srv/hw/irc/obio
138endif
139
140## System libraries
141#
142
143LIBC = lib/c
144LIBS = \
145 lib/fs \
146 lib/block \
147 lib/clui \
148 lib/softint \
149 lib/softfloat \
150 lib/drv \
151 lib/packet \
152 lib/net
153
154LIBC_BUILD = $(addsuffix .build,$(LIBC))
155LIBS_BUILD = $(addsuffix .build,$(LIBS))
156LIBN_BUILD = $(addsuffix .build,$(LIBN))
157BUILDS := $(addsuffix .build,$(DIRS))
158
159CLEANS := $(addsuffix .clean,$(DIRS)) $(addsuffix .clean,$(LIBN)) $(addsuffix .clean,$(LIBS)) $(addsuffix .clean,$(LIBC))
160
161.PHONY: all $(LIBC_BUILD) $(LIBS_BUILD) $(LIBN_BUILD) $(BUILDS) $(CLEANS) clean
162
163all: $(BUILDS)
164
165clean: $(CLEANS)
166
167$(CLEANS):
168 -$(MAKE) -C $(basename $@) clean
169
170$(BUILDS): $(LIBC_BUILD) $(LIBS_BUILD) $(LIBN_BUILD)
171 $(MAKE) -C $(basename $@) all PRECHECK=$(PRECHECK)
172
173$(LIBN_BUILD): $(LIBC_BUILD) $(LIBS_BUILD)
174 $(MAKE) -C $(basename $@) all PRECHECK=$(PRECHECK)
175
176$(LIBS_BUILD): $(LIBC_BUILD)
177 $(MAKE) -C $(basename $@) all PRECHECK=$(PRECHECK)
178
179$(LIBC_BUILD):
180 $(MAKE) -C $(basename $@) all PRECHECK=$(PRECHECK)
Note: See TracBrowser for help on using the repository browser.