mirror of
https://github.com/Ninjdai1/pokeemerald.git
synced 2024-12-25 03:04:15 +01:00
Support absolute paths
This commit is contained in:
parent
105e1721d6
commit
b0c634d531
4
Makefile
4
Makefile
@ -159,7 +159,7 @@ $(C_BUILDDIR)/%.o : $(C_SUBDIR)/%.c $$(c_dep)
|
|||||||
ifeq ($(NODEP),1)
|
ifeq ($(NODEP),1)
|
||||||
$(ASM_BUILDDIR)/%.o: asm_dep :=
|
$(ASM_BUILDDIR)/%.o: asm_dep :=
|
||||||
else
|
else
|
||||||
$(ASM_BUILDDIR)/%.o: asm_dep = $(shell $(SCANINC) $(ASM_SUBDIR)/$*.s)
|
$(ASM_BUILDDIR)/%.o: asm_dep = $(shell $(SCANINC) -I "" $(ASM_SUBDIR)/$*.s)
|
||||||
endif
|
endif
|
||||||
|
|
||||||
$(ASM_BUILDDIR)/%.o: $(ASM_SUBDIR)/%.s $$(asm_dep)
|
$(ASM_BUILDDIR)/%.o: $(ASM_SUBDIR)/%.s $$(asm_dep)
|
||||||
@ -168,7 +168,7 @@ $(ASM_BUILDDIR)/%.o: $(ASM_SUBDIR)/%.s $$(asm_dep)
|
|||||||
ifeq ($(NODEP),1)
|
ifeq ($(NODEP),1)
|
||||||
$(DATA_ASM_BUILDDIR)/%.o: data_dep :=
|
$(DATA_ASM_BUILDDIR)/%.o: data_dep :=
|
||||||
else
|
else
|
||||||
$(DATA_ASM_BUILDDIR)/%.o: data_dep = $(shell $(SCANINC) -I include $(DATA_ASM_SUBDIR)/$*.s)
|
$(DATA_ASM_BUILDDIR)/%.o: data_dep = $(shell $(SCANINC) -I include -I "" $(DATA_ASM_SUBDIR)/$*.s)
|
||||||
endif
|
endif
|
||||||
|
|
||||||
$(DATA_ASM_BUILDDIR)/%.o: $(DATA_ASM_SUBDIR)/%.s $$(data_dep)
|
$(DATA_ASM_BUILDDIR)/%.o: $(DATA_ASM_SUBDIR)/%.s $$(data_dep)
|
||||||
|
@ -62,7 +62,7 @@ int main(int argc, char **argv)
|
|||||||
argv++;
|
argv++;
|
||||||
includeDir = std::string(argv[0]);
|
includeDir = std::string(argv[0]);
|
||||||
}
|
}
|
||||||
if (includeDir.back() != '/')
|
if (!includeDir.empty() && includeDir.back() != '/')
|
||||||
{
|
{
|
||||||
includeDir += '/';
|
includeDir += '/';
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user