forked from anatol/menuconfig
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.ninja
37 lines (30 loc) · 1.19 KB
/
build.ninja
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
common_cflags =
common_ldflags =
rule cc
command = gcc $common_cflags $cflags -c $in -o $out
rule ld
command = gcc $common_cflags $cflags $common_ldflags $ldflags $in -o $out
rule flex
command = flex -o $out $in
rule bison
command = bison -d -o $out $in
build lexer.tab.c: flex lexer.l
build parser.tab.c | parser.tab.h: bison parser.y
build conf.o: cc conf.c
build confdata.o: cc confdata.c
build expr.o: cc expr.c
build mconf.o: cc mconf.c
build preprocess.o: cc preprocess.c
build symbol.o: cc symbol.c
build parser.tab.o: cc parser.tab.c
cflags = -DYYDEBUG
build lexer.tab.o: cc lexer.tab.c | parser.tab.h
build lxdialog/util.o: cc lxdialog/util.c
build lxdialog/yesno.o: cc lxdialog/yesno.c
build lxdialog/inputbox.o: cc lxdialog/inputbox.c
build lxdialog/checklist.o: cc lxdialog/checklist.c
build lxdialog/textbox.o: cc lxdialog/textbox.c
build lxdialog/menubox.o: cc lxdialog/menubox.c
build conf: ld conf.o symbol.o expr.o preprocess.o confdata.o parser.tab.o lexer.tab.o
build mconf: ld mconf.o symbol.o expr.o preprocess.o confdata.o parser.tab.o lexer.tab.o lxdialog/util.o lxdialog/yesno.o lxdialog/inputbox.o lxdialog/checklist.o lxdialog/textbox.o lxdialog/menubox.o
ldflags = -lncurses