-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathmakefile
More file actions
70 lines (50 loc) · 1.21 KB
/
makefile
File metadata and controls
70 lines (50 loc) · 1.21 KB
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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
# compat bits for combined GNU/BSD make targets, do not use them in this file
S := ${.CURDIR}
O = .
O_OBJ = $(O)/src
# ---
PHONY =
PHONY += all
all: ip-dedup
CC ?= cc
CC_IS_GCC ?= 0
USE_OPENBSD ?= 1
.include "mk/install_vars.mk"
.include "mk/prj.mk"
.include "mk/compile_c_opts.mk"
.if ${STANDALONE} == 1
.include "mk/datadir_standalone.mk"
.else
.include "mk/datadir_install.mk"
.endif
.if !defined(IPDEDUP_DATADIR) || ${IPDEDUP_DATADIR} == ""
CC_OPTS_EXTRA += -UIPDEDUP_DATADIR
.else
CC_OPTS_EXTRA += -DIPDEDUP_DATADIR=\"$(IPDEDUP_DATADIR)\"
.endif
.include "mk/warnflags_base.mk"
.if ${CC_IS_GCC} == 1
.include $(MK_INCLUDE)/warnflags_gcc.mk
.endif
.if ${NO_WERROR} != 1
.include "mk/warnflags_werror.mk"
.endif
.if ${STATIC} == 1
.include "mk/static.mk"
.endif
.if ${HARDEN} == 1
.include "mk/c_harden.mk"
.endif
.include "mk/compile_c.mk"
.include "mk/obj_defs.mk"
.include "mk/common_targets.mk"
ODEP_IP_DEDUP := ${OBUNDLE_APP_IP_DEDUP:%=src/%.o}
.SUFFIXES: .c .o
.c.o:
${MKDIRP} -- ${@D}
${COMPILE_C} ${.IMPSRC} -o ${@}
ip-dedup: ${ODEP_IP_DEDUP}
$(LINK_O) ${.ALLSRC} -o ${@}
ip-dedup.bashcomp: ${S_FILES}/ip-dedup.bashcomp.in
< ${S_FILES}/ip-dedup.bashcomp.in ${RUN_SED_EXPRV} > ${@}
.PHONY: ${PHONY}