aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
blob: 93bbf3f359498fe6644943100f22df08fc37e379 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
OUT      = runes
OBJ      = runes.o display.o xlib.o term.o
CFLAGS  ?= -g -Wall -Wextra -Werror
LDFLAGS ?= -g -Wall -Wextra -Werror

build: $(OUT)

$(OUT): $(OBJ)
	$(CC) $(shell pkg-config --libs cairo-xlib libuv) $(LDFLAGS) -o $@ $^

%.o: %.c
	$(CC) $(shell pkg-config --cflags cairo-xlib libuv) $(CFLAGS) -c -o $@ $^

clean:
	rm -f $(OUT) $(OBJ)

.PHONY: build clean