-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathMakefile.inc
More file actions
33 lines (26 loc) · 788 Bytes
/
Copy pathMakefile.inc
File metadata and controls
33 lines (26 loc) · 788 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
# Used by Makefile code which generates POSIX Makefiles
.for X in ${SRCS}
source-${X:.c=.o}: ${X}
@echo $>
cflags-${X:.c=.o}:
.endfor
# Used to track the subdirectory depth (other directories append to this)
SUBDIR_DEPTH = ..
# Expand ${IDIRS} before it is used
IDIRS := ${IDIRS}
# Default is no man pages
MAN =
.if !defined(NOLIBALL)
# Link everything to liball.a, unless they specifically ask not to use it.
LIBALL = ${SUBDIR_DEPTH}/liball/liball.a
LDADD += ${LIBALL}
DPADD += ${LIBALL}
.endif
# Lines below this point are only relevant if running
# make -f Makefile.BSD
# in a subdirectory; they have no influence on the generated Makefiles.
# Use POSIX standard
CFLAGS += -D_POSIX_C_SOURCE=200809L -D_XOPEN_SOURCE=700
# Make logic
CFLAGS += ${IDIRS}
LDADD += ${LDADD_REQ}