platform/Makefile: More attempts to fix for Windows native build.
This commit is contained in:
parent
175610de48
commit
013a8a0774
@ -37,10 +37,7 @@
|
|||||||
-include $(TOPDIR)/Make.defs
|
-include $(TOPDIR)/Make.defs
|
||||||
|
|
||||||
CONFIG_ARCH_BOARD ?= dummy
|
CONFIG_ARCH_BOARD ?= dummy
|
||||||
|
DELIM ?= $(strip /)
|
||||||
# REVISIT: Backslash causes problems in $(COBJS) target
|
|
||||||
# DELIM ?= $(strip /)
|
|
||||||
DELIM := $(strip /)
|
|
||||||
|
|
||||||
include $(APPDIR)$(DELIM)Make.defs
|
include $(APPDIR)$(DELIM)Make.defs
|
||||||
|
|
||||||
@ -85,8 +82,11 @@ CSRCS =
|
|||||||
-include $(GNUDIR)$(DELIM)Make.defs
|
-include $(GNUDIR)$(DELIM)Make.defs
|
||||||
-include $(PLATFORMDIR)$(DELIM)Make.defs
|
-include $(PLATFORMDIR)$(DELIM)Make.defs
|
||||||
|
|
||||||
AOBJS = $(patsubst %.S, bin$(DELIM)%$(OBJEXT), $(ASRCS))
|
# REVISIT: Backslash causes problems in $(A/COBJS) patsubst
|
||||||
COBJS = $(patsubst %.c, bin$(DELIM)%$(OBJEXT), $(CSRCS))
|
# AOBJS = $(patsubst %.S, bin$(DELIM)%$(OBJEXT), $(ASRCS))
|
||||||
|
# COBJS = $(patsubst %.c, bin$(DELIM)%$(OBJEXT), $(CSRCS))
|
||||||
|
AOBJS = $(patsubst %.S, bin/%$(OBJEXT), $(ASRCS))
|
||||||
|
COBJS = $(patsubst %.c, bin/%$(OBJEXT), $(CSRCS))
|
||||||
|
|
||||||
SRCS = $(ASRCS) $(CSRCS)
|
SRCS = $(ASRCS) $(CSRCS)
|
||||||
OBJS = $(AOBJS) $(COBJS)
|
OBJS = $(AOBJS) $(COBJS)
|
||||||
@ -107,12 +107,16 @@ all: .built
|
|||||||
.PHONY: context .depend depend clean distclean
|
.PHONY: context .depend depend clean distclean
|
||||||
|
|
||||||
ifneq ($(ASRCS),)
|
ifneq ($(ASRCS),)
|
||||||
$(AOBJS): bin$(DELIM)%$(OBJEXT): %.S
|
# REVISIT: Backslash causes problems in $(AOBJS) target
|
||||||
|
# $(AOBJS): bin$(DELIM)%$(OBJEXT): %.S
|
||||||
|
$(AOBJS): bin/%$(OBJEXT): %.S
|
||||||
$(call ASSEMBLE, $<, $@)
|
$(call ASSEMBLE, $<, $@)
|
||||||
endif
|
endif
|
||||||
|
|
||||||
ifneq ($(CSRCS),)
|
ifneq ($(CSRCS),)
|
||||||
$(COBJS): bin$(DELIM)%$(OBJEXT): %.c
|
# REVISIT: Backslash causes problems in $(COBJS) target
|
||||||
|
# $(COBJS): bin$(DELIM)%$(OBJEXT): %.c
|
||||||
|
$(COBJS): bin/%$(OBJEXT): %.c
|
||||||
$(call COMPILE, $<, $@)
|
$(call COMPILE, $<, $@)
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user