Add compiler definitions to programatically check if STATIC or SHARED are active in library makefiles
This commit is contained in:
parent
f15bff1560
commit
fbbf906d04
@ -154,6 +154,13 @@ ifeq ($(SAVEFLAGS),1)
|
||||
OLD_LINKFLAGS::=$(file <$(LDFLAGS_TMPFILE))
|
||||
endif
|
||||
|
||||
ifeq ($(SHARED),1)
|
||||
COMPILER_FLAGS+=-DENABLE_SHARED=1
|
||||
endif
|
||||
ifeq ($(STATIC),1)
|
||||
COMPILER_FLAGS+=-DENABLE_STATIC=1
|
||||
endif
|
||||
|
||||
#add dependency tracking and include directories
|
||||
INTERNAL_COMPILERFLAGS=-c $(foreach dir,$(INCLUDE_DIRS),-I"$(dir)") -MMD -MP -MF"$(DEPDIR)/$(notdir $(patsubst %.o,%.d,$@))"
|
||||
ifeq ($(WINDOWS),1)
|
||||
|
||||
@ -146,6 +146,13 @@ ifeq ($(SAVEFLAGS),1)
|
||||
OLD_LINKFLAGS::=$(file <$(LDFLAGS_TMPFILE))
|
||||
endif
|
||||
|
||||
ifeq ($(SHARED),1)
|
||||
COMPILER_FLAGS+=-DENABLE_SHARED=1
|
||||
endif
|
||||
ifeq ($(STATIC),1)
|
||||
COMPILER_FLAGS+=-DENABLE_STATIC=1
|
||||
endif
|
||||
|
||||
#add dependency tracking and include directories
|
||||
INTERNAL_COMPILERFLAGS=-c $(foreach dir,$(INCLUDE_DIRS),-I"$(dir)") -MMD -MP -MF"$(DEPDIR)/$(notdir $(patsubst %.o,%.d,$@))"
|
||||
INTERNAL_LINKFLAGS=$(foreach dir,$(LIBDIRS),-L"$(dir)")
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user