aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
blob: 2ab83c005b024454f38beaff455d35ec5c5be777 (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
LDFLAGS ?= -g

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