-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
37 lines (32 loc) · 839 Bytes
/
Makefile
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
.DEFAULT: all
demos = just-text \
window-with-text\
two-windows \
doupdate \
panels \
panels-switch \
panels-toggle \
panels-move \
panels-resize \
panels-show-hide \
colors \
keyboard-and-mouse \
menu \
menu-with-window \
menu-multicolumn \
menu-options \
menu-user-pointer
demos_files = $(patsubst %, %.exe, $(demos))
.PHONY: all
all: $(demos_files)
# -L-stuff is needed only for OSX, on linux looks like ignored
# -lmenu, according to curses documentation should precede -lcurses
%.exe: %.vala
valac -v --save-temps -g \
--vapidir=vapi --pkg curses-fixes --pkg curses-panel --pkg curses-menu --pkg posix \
-X -L/usr/local/opt/ncurses/lib -X -I/usr/local/opt/ncurses/include \
-X -lmenu -X -lcurses -X -lpanel \
$(patsubst %.exe, %, $@).vala -o $@
.PHONY: clean
clean:
rm -rf $(demos_files) *.c *.dSYM