zcsf: extend makefiles

This commit is contained in:
zawz 2020-04-15 16:49:32 +02:00
parent 9cfaabff3f
commit 86431b9abd
2 changed files with 13 additions and 1 deletions

View file

@ -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))

View file

@ -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))