zcsf: extend makefiles
This commit is contained in:
parent
9cfaabff3f
commit
86431b9abd
2 changed files with 13 additions and 1 deletions
|
|
@ -8,9 +8,16 @@ NAME = hello
|
||||||
LDFLAGS =
|
LDFLAGS =
|
||||||
|
|
||||||
CC=gcc
|
CC=gcc
|
||||||
CXXFLAGS= -I$(IDIR) -Wall -pedantic -std=c18 -O2
|
CXXFLAGS= -I$(IDIR) -Wall -pedantic -std=c18
|
||||||
ifeq ($(DEBUG),true)
|
ifeq ($(DEBUG),true)
|
||||||
CXXFLAGS += -g
|
CXXFLAGS += -g
|
||||||
|
else
|
||||||
|
CXXFLAGS += -O2
|
||||||
|
endif
|
||||||
|
ifeq ($(STATIC),true)
|
||||||
|
LDFLAGS +=
|
||||||
|
else
|
||||||
|
LDFLAGS +=
|
||||||
endif
|
endif
|
||||||
|
|
||||||
$(shell mkdir -p $(ODIR))
|
$(shell mkdir -p $(ODIR))
|
||||||
|
|
|
||||||
|
|
@ -14,6 +14,11 @@ ifeq ($(DEBUG),true)
|
||||||
else
|
else
|
||||||
CXXFLAGS += -O2
|
CXXFLAGS += -O2
|
||||||
endif
|
endif
|
||||||
|
ifeq ($(STATIC),true)
|
||||||
|
LDFLAGS +=
|
||||||
|
else
|
||||||
|
LDFLAGS +=
|
||||||
|
endif
|
||||||
|
|
||||||
$(shell mkdir -p $(ODIR))
|
$(shell mkdir -p $(ODIR))
|
||||||
$(shell mkdir -p $(BINDIR))
|
$(shell mkdir -p $(BINDIR))
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue