blob: 821cb9b9857a0ec7b8edf9490a93699fbdc0984e (
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
|
PREFIX ?= /usr/local
BINDIR ?= /bin
LDLIBS = -lglfw -lGL $(shell pkg-config --libs freetype2)
CFLAGS = $(shell pkg-config --cflags freetype2)
ifeq ($(DEBUG),1)
CFLAGS += -Og -g
endif
all: xnote
xnote: xnote.c
clean:
rm -f xnote
install:
install -m755 xnote -t "$(DESTDIR)$(PREFIX)$(BINDIR)"
uninstall:
rm "$(DESTDIR)$(PREFIX)$(BINDIR)/xnote"
.PHONY: all clean install uninstall
|