blob: 4a7f3a9755f5de48cb8254d3252c212fefea85b7 (
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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
|
.PATH:${.CURDIR}/../lib
.include "../diff-version.mk"
PROG= diff
SRCS= \
diff.c \
diff_atomize_text.c \
diff_main.c \
diff_myers.c \
diff_patience.c \
diff_output.c \
diff_output_plain.c \
diff_output_unidiff.c \
diff_output_edscript.c \
${END}
MAN = ${PROG}.1
CPPFLAGS = -I${.CURDIR}/../include -I${.CURDIR}/../lib
#CPPFLAGS += -DDIFF_NO_MMAP
.if defined(PROFILE)
CFLAGS = -O0 -pg -g
LDFLAGS = -pg -lc_p -lutil_p -lz_p -static
.else
LDFLAGS = -lutil -lz
.endif
.if ${DIFF_RELEASE} != "Yes"
NOMAN = Yes
.endif
realinstall:
${INSTALL} ${INSTALL_COPY} -o ${BINOWN} -g ${BINGRP} \
-m ${BINMODE} ${PROG} ${BINDIR}/${PROG}
dist:
mkdir ../diff-${DIFF_VERSION}/diff
cp ${SRCS} ${MAN} ../diff-${DIFF_VERSION}/diff
.include <bsd.prog.mk>
|