aboutsummaryrefslogtreecommitdiff
path: root/Makefile
blob: cd8ef2195629fe9b7fe8ab8d392fa60ca9a81142 (plain)
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
VERSION = 0.0
PREFIX = /usr/local
CC = cc
DIR = src
OBJS = $(DIR)/draw.o $(DIR)/calp.o $(DIR)/date.o
.PHONY: clean all install

FLAGS = `pkg-config --cflags pangocairo`
LIBS = `pkg-config --libs pangocairo`

CFLAGS = -O2 -g -Wall -Werror -Wextra -Winit-self -Wuninitialized -pedantic

all: calp

calp: $(OBJS)
	$(CC) $(FLAGS) -o calp $(OBJS) $(LIBS)

clean:
	-rm -f $(OBJS) calp

install: all
	mkdir -p ${DESTDIR}${PREFIX}/bin
	cp -f calp ${DESTDIR}${PREFIX}/bin
	chmod 755 ${DESTDIR}${PREFIX}/bin/calp

uninstall:
	rm -f ${DESTDIR}${PREFIX}/bin/calp