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
|
||||
#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
|
||||
|
||||
@ -84,7 +84,7 @@ endif
|
||||
#pre targets
|
||||
all::
|
||||
|
||||
all:: flags-update $(INTERNAL_STATIC_LIBRARY) $(INTERNAL_SHARED_LIBRARY)
|
||||
all:: $(INTERNAL_STATIC_LIBRARY) $(INTERNAL_SHARED_LIBRARY)
|
||||
|
||||
#post targets
|
||||
all::
|
||||
@ -174,24 +174,23 @@ else
|
||||
ALL_LDLIBS=$(LDLIBS) $(DEBUG_LDLIBS)
|
||||
endif
|
||||
|
||||
.PHONY: cflags-update
|
||||
cflags-update:
|
||||
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))
|
||||
else
|
||||
$(CFLAGS_TMPFILE):
|
||||
endif
|
||||
$(CFLAGS_TMPFILE): cflags-update
|
||||
endif
|
||||
.PHONY: ldflags-update
|
||||
ldflags-update:
|
||||
ifeq ($(SAVEFLAGS),1)
|
||||
|
||||
ifneq ($(ALL_LINKFLAGS),$(OLD_LINKFLAGS))
|
||||
.PHONY: $(LDFLAGS_TMPFILE)
|
||||
$(LDFLAGS_TMPFILE):
|
||||
$(file >$(LDFLAGS_TMPFILE),$(ALL_LINKFLAGS))
|
||||
else
|
||||
$(LDFLAGS_TMPFILE):
|
||||
endif
|
||||
$(LDFLAGS_TMPFILE): ldflags-update
|
||||
endif
|
||||
.PHONY: flags-update
|
||||
flags-update: cflags-update ldflags-update
|
||||
|
||||
|
||||
#target for shared library
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user