summaryrefslogtreecommitdiff
path: root/pkg/make/gen.lua
blob: b2cf26057deb90fdb088e174e8d69aa021b30652 (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
cflags{
	'-std=c99', '-Wno-return-local-addr',
	'-D HAVE_CONFIG_H',
	'-I $dir',
	'-I $srcdir/src',
	'-I $srcdir/lib',
	'-I $outdir',
}

build('copy', '$outdir/fnmatch.h', '$srcdir/lib/fnmatch.in.h')
build('copy', '$outdir/glob.h', '$srcdir/lib/glob.in.h')

pkg.deps = {
	'$outdir/fnmatch.h',
	'$outdir/glob.h',
}

lib('libgnu.a', [[
	lib/(
		concat-filename.c findprog-in.c fnmatch.c
		getloadavg.c glob.c
	)
]])

exe('make', [[
	src/(
		ar.c arscan.c commands.c
		default.c dir.c expand.c
		file.c function.c getopt.c
		getopt1.c guile.c
		hash.c implicit.c job.c
		load.c loadapi.c main.c misc.c
		output.c read.c
		remake.c rule.c shuffle.c
		signame.c strcache.c variable.c
		version.c vpath.c

		posixos.c
		remote-stub.c
	)
	libgnu.a
]])
file('bin/make', '755', '$outdir/make')
man{'doc/make.1'}

fetch 'curl'