summaryrefslogtreecommitdiff
path: root/Makefile
blob: d47ad04ce5022b49d4b65317d1e0b7b748a3402e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
DIRS = headers error getent malloc-simple misc regex stdio2 \
	    string termios time sysdeps #rpc

all: libc.a

libc.a: $(DIRS) dummy
	@echo
	@echo Finally finished compiling...
	@echo
	$(CROSS)ranlib $@

headers: dummy
	if [ ! -L "include/asm" ]; then ln -s /usr/src/linux/include/asm include/asm ; fi
	if [ ! -L "include/net" ]; then ln -s /usr/src/linux/include/net include/net ; fi
	if [ ! -L "include/linux" ]; then ln -s /usr/src/linux/include/linux include/linux ; fi

error: dummy
	make -C error

getent: dummy
	make -C getent

malloc-simple: dummy
	make -C malloc-simple

misc: dummy
	make -C misc

net: dummy
	make -C net

regex: dummy
	make -C regex

rpc: dummy
	make -C rpc

stdio2: dummy
	make -C stdio2

string: dummy
	make -C string

sysdeps: dummy
	make -C sysdeps

termios: dummy
	make -C termios

time: dummy
	make -C time

tags:
	ctags -R
	
dummy:

clean:
	-rm -f `find -name \*.[oa]` `find -name \*~` core
	-rm -rf include/asm include/net include/linux
	make -C test clean