-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathMakefile
More file actions
38 lines (28 loc) · 790 Bytes
/
Copy pathMakefile
File metadata and controls
38 lines (28 loc) · 790 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
38
#####################################
#
# Custom-written for making Debian package for CDIRip
#
#####################################
CC?=gcc
# Output filename
OUTPUT="cdirip"
# Source files
SRCS=cdirip.c buffer.c cdi.c common.c audio.c
# Output object files (*.o)
OBJECTS = ${SRCS:.c=.o}
# Headers (*.h)
HEADERS= ${SRCS:.c=.h}
RM = rm -f
MV = mv -f
CP = cp -f
.c.o:
${CC} -c ${CFLAGS} $<
cdirip: ${OBJECTS}
${CC} ${LDFLAGS} -o $@ ${OBJECTS} -lm
all: cdirip
clean:
-${RM} ${OUTPUT} ${OBJECTS}
mrproper: clean
install: all
${CP} ${OUTPUT} ${DESTDIR}/usr/bin # Line 25
${CP} ${HEADERS} ${DESTDIR}/usr/include/cdirip # Line 26