Changeset View
Changeset View
Standalone View
Standalone View
head/share/mk/sys.mk
Show First 20 Lines • Show All 136 Lines • ▼ Show 20 Lines | |||||
# | # | ||||
# This functionality is currently broken, since make(1) processes sys.mk | # This functionality is currently broken, since make(1) processes sys.mk | ||||
# before reading any other files, and consequently has no opportunity to | # before reading any other files, and consequently has no opportunity to | ||||
# set the %POSIX macro before we read this point. | # set the %POSIX macro before we read this point. | ||||
.if defined(%POSIX) | .if defined(%POSIX) | ||||
.SUFFIXES: .o .c .y .l .a .sh .f | .SUFFIXES: .o .c .y .l .a .sh .f | ||||
.else | .else | ||||
.SUFFIXES: .out .a .ln .o .bco .llo .c .cc .cpp .cxx .C .m .F .f .e .r .y .l .S .asm .s .cl .p .h .sh | .SUFFIXES: .out .a .o .bco .llo .c .cc .cpp .cxx .C .m .F .f .e .r .y .l .S .asm .s .cl .p .h .sh | ||||
.endif | .endif | ||||
AR ?= ar | AR ?= ar | ||||
.if defined(%POSIX) | .if defined(%POSIX) | ||||
ARFLAGS ?= -rv | ARFLAGS ?= -rv | ||||
.else | .else | ||||
ARFLAGS ?= -crD | ARFLAGS ?= -crD | ||||
.endif | .endif | ||||
▲ Show 20 Lines • Show All 85 Lines • ▼ Show 20 Lines | |||||
LFLAGS ?= | LFLAGS ?= | ||||
# LDFLAGS is for CC, _LDFLAGS is for LD. Generate _LDFLAGS from | # LDFLAGS is for CC, _LDFLAGS is for LD. Generate _LDFLAGS from | ||||
# LDFLAGS by stripping -Wl, from pass-through arguments and dropping | # LDFLAGS by stripping -Wl, from pass-through arguments and dropping | ||||
# compiler driver flags (e.g. -mabi=*) that conflict with flags to LD. | # compiler driver flags (e.g. -mabi=*) that conflict with flags to LD. | ||||
LD ?= ld | LD ?= ld | ||||
LDFLAGS ?= | LDFLAGS ?= | ||||
_LDFLAGS = ${LDFLAGS:S/-Wl,//g:N-mabi=*:N-fuse-ld=*} | _LDFLAGS = ${LDFLAGS:S/-Wl,//g:N-mabi=*:N-fuse-ld=*} | ||||
LINT ?= lint | |||||
LINTFLAGS ?= -cghapbx | |||||
LINTKERNFLAGS ?= ${LINTFLAGS} | |||||
LINTOBJFLAGS ?= -cghapbxu -i | |||||
LINTOBJKERNFLAGS?= ${LINTOBJFLAGS} | |||||
LINTLIBFLAGS ?= -cghapbxu -C ${LIB} | |||||
MAKE ?= make | MAKE ?= make | ||||
.if !defined(%POSIX) | .if !defined(%POSIX) | ||||
LLVM_LINK ?= llvm-link | LLVM_LINK ?= llvm-link | ||||
LORDER ?= lorder | LORDER ?= lorder | ||||
▲ Show 20 Lines • Show All 92 Lines • Show Last 20 Lines |