forked from cococry/ragnar
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
42 lines (31 loc) · 823 Bytes
/
Makefile
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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
CC = cc
# includes and flags
CFLAGS = -O3 -ffast-math -Wall -Wextra
LIBS = -lXft -lX11 -lXcursor -lXft -lfontconfig -lXcomposite
FREETYPEINC = /usr/include/freetype2
INCS = -I${FREETYPEINC}
SRC = ragnar.c
OBJ = ${SRC:.c=.o}
all: ragnar print_options
print_options:
@echo ragnar build options:
@echo "CFLAGS = ${CFLAGS}"
@echo "LIBS = ${LIBS}"
@echo "INCS = ${INCS}"
@echo "CC = ${CC}"
.c.o:
${CC} -c ${CFLAGS} ${LIBS} ${INCS} $<
${OBJ}: config.h
ragnar: ${OBJ}
${CC} -o $@ ${OBJ} ${LIBS} ${INCS}
install:
cp -f ragnar /usr/bin
cp -f ragnar.desktop /usr/share/applications
cp -f ragnarstart /usr/bin
chmod 755 /usr/bin/ragnar
clean:
rm -f ragnar ${OBJ}
uninstall:
rm -f /usr/bin/ragnar
rm -f /usr/share/applications/ragnar.desktop
.PHONY: all print_options clean install uninstall freetype