summary refs log tree commit diff
path: root/gfx/Makefile
blob: f2ae4beed052520247d75b358f44ba1cd0cafe44 (plain) (blame)
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
BINS = brot gfxx
GFX ?= cocoa

CFLAGS += -Wall -Wextra -Wpedantic
LDLIBS = -lm -lz
LDLIBS_cocoa = -framework Cocoa
LDLIBS_x11 = -lX11

all: .gitignore tags $(BINS)

.gitignore: Makefile
	echo '*.o' tags $(BINS) | tr ' ' '\n' > .gitignore

tags: *.h *.c
	ctags -w *.h *.c

brot: brot.o $(GFX).o
	$(CC) $(LDFLAGS) brot.o $(GFX).o $(LDLIBS) $(LDLIBS_$(GFX)) -o $@

gfxx: gfxx.o $(GFX).o
	$(CC) $(LDFLAGS) gfxx.o $(GFX).o $(LDLIBS) $(LDLIBS_$(GFX)) -o $@

clean:
	rm -f tags *.o $(BINS)

link:
	mkdir -p ~/.local/bin
	ln -s -f $(BINS:%=$(PWD)/%) ~/.local/bin

unlink:
	rm -f $(BINS:%=~/.local/bin/%)
href='/src/commit/bin/hi.c?id=5c72122bf4361d2811201aa5205d2cb1d172b215&follow=1'>Skip only one character if a match fails due to parentJune McEnroe Really it should skip forward until the parent changes, but this is simpler. 2019-02-10Remove pattend from hiJune McEnroe 2019-02-10Replace uses of pattend with newline patternsJune McEnroe 2019-02-10Add hi debug outputJune McEnroe 2019-02-10Actually do HTML " escapingJune McEnroe 2019-02-10Set git commit.verboseJune McEnroe 2019-02-10Add back missing static keywordJune McEnroe