aboutsummaryrefslogtreecommitdiff
path: root/Makefile
blob: f0afb1537146216fe3def8ee3bfe8822e059b4f2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
CCFLAGS=-Wall -Iinclude -std=c99
LDFLAGS=

CCFLAGS+=$(shell pkg-config --cflags glib-2.0)
LDFLAGS+=$(shell pkg-config --libs   glib-2.0)

all: demo

demo: termkey.o demo.c
	gcc $(CCFLAGS) $(LDFLAGS) -o $@ $^

termkey.o: termkey.c
	gcc $(CCFLAGS) -o $@ -c $^

.PHONY: clean
clean:
	rm -f *.o demo