Skip to content
Snippets Groups Projects
Commit b622f1db authored by Fred Wright's avatar Fred Wright Committed by Christopher Nielsen
Browse files

Makefile: Add DEBUG and OPT options.

The OPT value (default -Os) is included in compile commands, and the
DEBUG value is included in both compile and link commands.

TESTED:
Both default and debug settings work.
parent 42217f16
No related branches found
No related tags found
No related merge requests found
......@@ -63,14 +63,16 @@ POSTINSTALL = install_name_tool
FORCE_ARCH ?=
ARCHFLAGS ?=
LIPO ?= lipo
XCFLAGS ?= -Os -Wall -Wno-deprecated-declarations
DEBUG ?=
OPT ?= -Os
XCFLAGS ?= $(DEBUG) $(OPT) -Wall -Wno-deprecated-declarations
ALLCFLAGS := $(ARCHFLAGS) $(XCFLAGS) $(CFLAGS)
DLIBCFLAGS ?= -fPIC
SLIBCFLAGS ?=
XCXXFLAGS ?= -Os -Wall
XCXXFLAGS ?= $(DEBUG) $(OPT) -Wall
ALLCXXFLAGS := $(ARCHFLAGS) $(XCXXFLAGS) $(CXXFLAGS)
LD ?= ld
LDFLAGS ?=
LD ?= /usr/bin/ld
LDFLAGS ?= $(DEBUG)
ALLLDFLAGS := $(ARCHFLAGS) $(LDFLAGS)
TEST_ARGS ?=
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment