Changeset View
Changeset View
Standalone View
Standalone View
share/mk/bsd.prog.mk
| # from: @(#)bsd.prog.mk 5.26 (Berkeley) 6/25/91 | # from: @(#)bsd.prog.mk 5.26 (Berkeley) 6/25/91 | ||||
| # $FreeBSD$ | # $FreeBSD$ | ||||
| .include <bsd.init.mk> | .include <bsd.init.mk> | ||||
| .include <bsd.compiler.mk> | .include <bsd.compiler.mk> | ||||
| .SUFFIXES: .out .o .c .cc .cpp .cxx .C .m .y .l .ln .s .S .asm | .SUFFIXES: .out .o .c .cc .cpp .cxx .C .m .y .l .ln .s .S .asm | ||||
| # XXX The use of COPTS in modern makefiles is discouraged. | # XXX The use of COPTS in modern makefiles is discouraged. | ||||
| .if defined(COPTS) | .if defined(COPTS) | ||||
| CFLAGS+=${COPTS} | CFLAGS+=${COPTS} | ||||
| .endif | .endif | ||||
| LDFLAGS+= -Wl,-z,relro -Wl,-z,now | |||||
| .if ${MK_ASSERT_DEBUG} == "no" | .if ${MK_ASSERT_DEBUG} == "no" | ||||
| CFLAGS+= -DNDEBUG | CFLAGS+= -DNDEBUG | ||||
| NO_WERROR= | NO_WERROR= | ||||
| .endif | .endif | ||||
| .if defined(DEBUG_FLAGS) | .if defined(DEBUG_FLAGS) | ||||
| CFLAGS+=${DEBUG_FLAGS} | CFLAGS+=${DEBUG_FLAGS} | ||||
| CXXFLAGS+=${DEBUG_FLAGS} | CXXFLAGS+=${DEBUG_FLAGS} | ||||
| ▲ Show 20 Lines • Show All 261 Lines • Show Last 20 Lines | |||||