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 =
|
||||
|
||||
CC=gcc
|
||||
CXXFLAGS= -I$(IDIR) -Wall -pedantic -std=c18 -O2
|
||||
CXXFLAGS= -I$(IDIR) -Wall -pedantic -std=c18
|
||||
ifeq ($(DEBUG),true)
|
||||
CXXFLAGS += -g
|
||||
else
|
||||
CXXFLAGS += -O2
|
||||
endif
|
||||
ifeq ($(STATIC),true)
|
||||
LDFLAGS +=
|
||||
else
|
||||
LDFLAGS +=
|
||||
endif
|
||||
|
||||
$(shell mkdir -p $(ODIR))
|
||||
|
|
|
|||
|
|
@ -14,6 +14,11 @@ ifeq ($(DEBUG),true)
|
|||
else
|
||||
CXXFLAGS += -O2
|
||||
endif
|
||||
ifeq ($(STATIC),true)
|
||||
LDFLAGS +=
|
||||
else
|
||||
LDFLAGS +=
|
||||
endif
|
||||
|
||||
$(shell mkdir -p $(ODIR))
|
||||
$(shell mkdir -p $(BINDIR))
|
||||
|
|
|
|||
Loading…
Reference in a new issue