Fix unspecified behavior in makefile.library
This commit is contained in:
parent
5f5710ffd9
commit
d45372cb23
@ -11,7 +11,7 @@
|
|||||||
#You should have received a copy of the GNU General Public License
|
#You should have received a copy of the GNU General Public License
|
||||||
#along with this program. If not, see <http://www.gnu.org/licenses/>.
|
#along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
#Copyright 2018-2020 rexy712
|
#Copyright 2018-2021 rexy712
|
||||||
|
|
||||||
#Makefile to generate a single static or shared library from all the sources in SOURCE_DIRS ending in EXT
|
#Makefile to generate a single static or shared library from all the sources in SOURCE_DIRS ending in EXT
|
||||||
|
|
||||||
@ -84,7 +84,7 @@ endif
|
|||||||
#pre targets
|
#pre targets
|
||||||
all::
|
all::
|
||||||
|
|
||||||
all:: flags-update $(INTERNAL_STATIC_LIBRARY) $(INTERNAL_SHARED_LIBRARY)
|
all:: $(INTERNAL_STATIC_LIBRARY) $(INTERNAL_SHARED_LIBRARY)
|
||||||
|
|
||||||
#post targets
|
#post targets
|
||||||
all::
|
all::
|
||||||
@ -174,24 +174,23 @@ else
|
|||||||
ALL_LDLIBS=$(LDLIBS) $(DEBUG_LDLIBS)
|
ALL_LDLIBS=$(LDLIBS) $(DEBUG_LDLIBS)
|
||||||
endif
|
endif
|
||||||
|
|
||||||
.PHONY: cflags-update
|
|
||||||
cflags-update:
|
|
||||||
ifeq ($(SAVEFLAGS),1)
|
ifeq ($(SAVEFLAGS),1)
|
||||||
ifneq ($(subst -MF"$(DEPDIR)/",-MF"$(DEPDIR)/cflags-update",$(ALL_COMPILEFLAGS)),$(OLD_COMPILEFLAGS))
|
ifneq ($(subst -MF"$(DEPDIR)/",-MF"$(DEPDIR)/$(CFLAGS_TMPFILE)",$(ALL_COMPILEFLAGS)),$(OLD_COMPILEFLAGS))
|
||||||
|
.PHONY: $(CFLAGS_TMPFILE)
|
||||||
|
$(CFLAGS_TMPFILE):
|
||||||
$(file >$(CFLAGS_TMPFILE),$(ALL_COMPILEFLAGS))
|
$(file >$(CFLAGS_TMPFILE),$(ALL_COMPILEFLAGS))
|
||||||
|
else
|
||||||
|
$(CFLAGS_TMPFILE):
|
||||||
endif
|
endif
|
||||||
$(CFLAGS_TMPFILE): cflags-update
|
|
||||||
endif
|
|
||||||
.PHONY: ldflags-update
|
|
||||||
ldflags-update:
|
|
||||||
ifeq ($(SAVEFLAGS),1)
|
|
||||||
ifneq ($(ALL_LINKFLAGS),$(OLD_LINKFLAGS))
|
ifneq ($(ALL_LINKFLAGS),$(OLD_LINKFLAGS))
|
||||||
|
.PHONY: $(LDFLAGS_TMPFILE)
|
||||||
|
$(LDFLAGS_TMPFILE):
|
||||||
$(file >$(LDFLAGS_TMPFILE),$(ALL_LINKFLAGS))
|
$(file >$(LDFLAGS_TMPFILE),$(ALL_LINKFLAGS))
|
||||||
|
else
|
||||||
|
$(LDFLAGS_TMPFILE):
|
||||||
endif
|
endif
|
||||||
$(LDFLAGS_TMPFILE): ldflags-update
|
|
||||||
endif
|
endif
|
||||||
.PHONY: flags-update
|
|
||||||
flags-update: cflags-update ldflags-update
|
|
||||||
|
|
||||||
|
|
||||||
#target for shared library
|
#target for shared library
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user