-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
37 lines (25 loc) · 683 Bytes
/
Makefile
File metadata and controls
37 lines (25 loc) · 683 Bytes
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
VERSION = 1.0
BIN = /usr/bin
CC = cc
SRC = src/scroll.c src/utils.c
OBJ = ${SRC:.c=.o}
# DEBUGFLAGS = -g -DDEBUG
XINERAMALIBS = -lXinerama
XINERAMAFLAGS = -DXINERAMA
LIBS = -lm -lX11 -lXinerama -lImlib2
CFLAGS = -std=c99 -D_DEFAULT_SOURCE -Wall -DVERSION=\"${VERSION}\" -DDATE=\""${shell date -R}"\" ${XINERAMAFLAGS} ${DEBUGFLAGS}
LDFLAGS = -s ${LIBS} ${XINERAMALIBS}
.c.o:
${CC} -c ${CFLAGS} $<
${OBJ}: src/utils.h
scroll: src/scroll.o src/utils.o
${CC} -o $@ scroll.o utils.o ${LDFLAGS}
clean:
rm -f scroll.o utils.o scroll
install: scroll
mkdir -p ${BIN}
cp -f scroll ${BIN}
chmod 755 ${BIN}/scroll
uninstall:
rm -f ${BIN}/scroll
.PHONY: clean install uninstall