master hovercats/oakiss / pkg / make / gen.lua
 1cflags{
 2	'-std=c99', '-Wno-return-local-addr',
 3	'-D HAVE_CONFIG_H',
 4	'-I $dir',
 5	'-I $srcdir/src',
 6	'-I $srcdir/lib',
 7	'-I $outdir',
 8}
 9
10build('copy', '$outdir/fnmatch.h', '$srcdir/lib/fnmatch.in.h')
11build('copy', '$outdir/glob.h', '$srcdir/lib/glob.in.h')
12
13pkg.deps = {
14	'$outdir/fnmatch.h',
15	'$outdir/glob.h',
16}
17
18lib('libgnu.a', [[
19	lib/(
20		concat-filename.c findprog-in.c fnmatch.c
21		getloadavg.c glob.c
22	)
23]])
24
25exe('make', [[
26	src/(
27		ar.c arscan.c commands.c
28		default.c dir.c expand.c
29		file.c function.c getopt.c
30		getopt1.c guile.c
31		hash.c implicit.c job.c
32		load.c loadapi.c main.c misc.c
33		output.c read.c remake.c
34		rule.c shuffle.c signame.c strcache.c
35		variable.c version.c vpath.c
36
37		posixos.c
38		remote-stub.c
39	)
40	libgnu.a
41]])
42file('bin/make', '755', '$outdir/make')
43man{'doc/make.1'}
44
45fetch 'curl'