Ticket #56873: Makefile

File Makefile, 578 bytes (added by LiamFry, 6 years ago)
Line 
1# vbel-os* -- use macOS ncurses
2# vbel-mp* -- use MacPorts ncurses
3# vbel-*b  -- blink (flash)
4# vbel-*h  -- hold awaiting "hit any key"
5
6.PHONY: all
7
8all: vbel-osb vbel-osh vbel-mpb vbel-mph
9
10# Use preinstalled macOS ncurses
11vbel-osb: vbel-rb.c
12        $(CC) -o $@ $< -lncurses
13
14# Use preinstalled macOS ncurses
15vbel-osh: vbel-rh.c
16        $(CC) -o $@ $< -lncurses
17
18# Use ncurses from MacPorts
19vbel-mpb: vbel-rb.c
20        $(CC) -I/opt/local/include -L/opt/local/lib -o $@ $< -lncurses
21
22# Use ncurses from MacPorts
23vbel-mph: vbel-rh.c
24        $(CC) -I/opt/local/include -L/opt/local/lib -o $@ $< -lncurses