summaryrefslogtreecommitdiff
path: root/sys/src/libc/port/mkfile
blob: dc2d936943366a70dbd332fbe80cd1a6c72f9ede (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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
</$objtype/mkfile

LIB=/$objtype/lib/libc.a
CFILES=\
	_assert.c\
	abs.c\
	asin.c\
	atan.c\
	atan2.c\
	atexit.c\
	atnotify.c\
	atof.c\
	atol.c\
	atoll.c\
	cistrcmp.c\
	cistrncmp.c\
	cistrstr.c\
	charstod.c\
	cleanname.c\
	crypt.c\
	ctype.c\
	encodefmt.c\
	execl.c\
	exp.c\
	fabs.c\
	floor.c\
	fmod.c\
	frand.c\
	frexp.c\
	getcallerpc.c\
	getfields.c\
	getuser.c\
	hangup.c\
	hypot.c\
	lnrand.c\
	lock.c\
	log.c\
	lrand.c\
	malloc.c\
	memccpy.c\
	memchr.c\
	memcmp.c\
	memmove.c\
	memset.c\
	mktemp.c\
	muldiv.c\
	nan.c\
	needsrcquote.c\
	netcrypt.c\
	netmkaddr.c\
	nrand.c\
	ntruerand.c\
	perror.c\
	pool.c\
	pow.c\
	pow10.c\
	profile.c\
	qsort.c\
	quote.c\
	rand.c\
	readn.c\
	rune.c\
	runestrcat.c\
	runestrchr.c\
	runestrcmp.c\
	runestrcpy.c\
	runestrecpy.c\
	runestrdup.c\
	runestrncat.c\
	runestrncmp.c\
	runestrncpy.c\
	runestrrchr.c\
	runestrlen.c\
	runestrstr.c\
	runetype.c\
	sin.c\
	sinh.c\
	sqrt.c\
	strcat.c\
	strchr.c\
	strcmp.c\
	strcpy.c\
	strecpy.c\
	strcspn.c\
	strdup.c\
	strlen.c\
	strncat.c\
	strncmp.c\
	strncpy.c\
	strpbrk.c\
	strrchr.c\
	strspn.c\
	strstr.c\
	strtod.c\
	strtok.c\
	strtol.c\
	strtoll.c\
	strtoul.c\
	strtoull.c\
	tan.c\
	tanh.c\
	tokenize.c\
	toupper.c\
	utfecpy.c\
	utflen.c\
	utfnlen.c\
	utfrune.c\
	utfrrune.c\
	utfutf.c\
	u16.c\
	u32.c\
	u64.c\

ALLOFILES=${CFILES:%.c=%.$O}

# cull things in the per-machine directories from this list
OFILES=	`{rc ./reduce $O $objtype $ALLOFILES}

HFILES=/sys/include/libc.h

UPDATE=mkfile\
	$HFILES\
	$CFILES\

</sys/src/cmd/mksyslib

profile.$O: /sys/include/tos.h