mirror of
https://github.com/jeremysrand/Apple2GSBuildPipeline.git
synced 2025-02-18 10:30:44 +00:00
Do link from the object directory and provide relative paths to the objects. Seems like the linker does not like the long pathnames.
This commit is contained in:
parent
e5bbf48167
commit
bb76e8eb61
@ -120,11 +120,12 @@ ifeq ($(BINTARGET),)
|
|||||||
# then link the binary over that same file creating the resource fork first
|
# then link the binary over that same file creating the resource fork first
|
||||||
# and the data fork second.
|
# and the data fork second.
|
||||||
$(TARGETDIR)/$(PGM): $(BUILD_OBJS)
|
$(TARGETDIR)/$(PGM): $(BUILD_OBJS)
|
||||||
|
$(MKDIR) $(TARGETDIR)
|
||||||
ifneq ($(REZ_OBJS),)
|
ifneq ($(REZ_OBJS),)
|
||||||
$(RM) $(TARGETDIR)/$(PGM)
|
$(RM) $(TARGETDIR)/$(PGM)
|
||||||
$(CP) $(REZ_OBJS) $(TARGETDIR)/$(PGM)
|
$(CP) $(REZ_OBJS) $(TARGETDIR)/$(PGM)
|
||||||
endif
|
endif
|
||||||
$(LINK) $(LDFLAGS) $(BUILD_OBJS_NOSUFFIX) --keep=$(TARGETDIR)/$(PGM)
|
cd $(OBJDIR); $(LINK) $(LDFLAGS) $(patsubst $(OBJDIR)/%, %, $(BUILD_OBJS_NOSUFFIX)) --keep=$(TARGETDIR)/$(PGM)
|
||||||
$(CHTYP) -t $(FILETYPE) $(AUXTYPE) $(TARGETDIR)/$(PGM)
|
$(CHTYP) -t $(FILETYPE) $(AUXTYPE) $(TARGETDIR)/$(PGM)
|
||||||
|
|
||||||
endif
|
endif
|
||||||
@ -135,6 +136,7 @@ endif
|
|||||||
# and the data fork second.
|
# and the data fork second.
|
||||||
|
|
||||||
$(TARGETDIR)/$(PGM): $(BUILD_OBJS) $(ASM_SRCS)
|
$(TARGETDIR)/$(PGM): $(BUILD_OBJS) $(ASM_SRCS)
|
||||||
|
$(MKDIR) $(TARGETDIR)
|
||||||
$(RM) $(TARGETDIR)/$(PGM)
|
$(RM) $(TARGETDIR)/$(PGM)
|
||||||
$(MERLIN_ASM) linkscript.s $(PGM) $(TARGETDIR)/$(PGM)
|
$(MERLIN_ASM) linkscript.s $(PGM) $(TARGETDIR)/$(PGM)
|
||||||
ifneq ($(REZ_OBJS),)
|
ifneq ($(REZ_OBJS),)
|
||||||
@ -152,7 +154,7 @@ else
|
|||||||
# resource compile will read the $(PGM).bin binary and load it into the
|
# resource compile will read the $(PGM).bin binary and load it into the
|
||||||
# resources also.
|
# resources also.
|
||||||
$(BINTARGET): $(BUILD_OBJS)
|
$(BINTARGET): $(BUILD_OBJS)
|
||||||
$(LINK) $(LDFLAGS) $(BUILD_OBJS_NOSUFFIX) --keep=$(BINTARGET)
|
cd $(OBJDIR); $(LINK) $(LDFLAGS) $(patsubst $(OBJDIR)/%, %, $(BUILD_OBJS_NOSUFFIX)) --keep=$(BINTARGET)
|
||||||
|
|
||||||
endif
|
endif
|
||||||
|
|
||||||
@ -169,6 +171,7 @@ $(BINTARGET): $(BUILD_OBJS) $(ASM_SRCS)
|
|||||||
$(REZ_OBJS): $(BINTARGET)
|
$(REZ_OBJS): $(BINTARGET)
|
||||||
|
|
||||||
$(TARGETDIR)/$(PGM): $(REZ_OBJS)
|
$(TARGETDIR)/$(PGM): $(REZ_OBJS)
|
||||||
|
$(MKDIR) $(TARGETDIR)
|
||||||
$(RM) $(TARGETDIR)/$(PGM)
|
$(RM) $(TARGETDIR)/$(PGM)
|
||||||
$(CP) $(REZ_OBJS) $(TARGETDIR)/$(PGM)
|
$(CP) $(REZ_OBJS) $(TARGETDIR)/$(PGM)
|
||||||
$(CHTYP) -t $(FILETYPE) $(AUXTYPE) $(TARGETDIR)/$(PGM)
|
$(CHTYP) -t $(FILETYPE) $(AUXTYPE) $(TARGETDIR)/$(PGM)
|
||||||
|
@ -63,7 +63,7 @@ done < $PROJECTS
|
|||||||
|
|
||||||
rm -f $PROJECTS
|
rm -f $PROJECTS
|
||||||
|
|
||||||
pkgbuild --root $TMPDIR --version 2.0.1 --identifier com.halcyontouch.Apple2gsTemplate.pkg --install-location /Library/Developer/Xcode/ --scripts pkg/scripts/ Apple2GSXcodeTemplate.pkg
|
pkgbuild --root $TMPDIR --version 2.0.3 --identifier com.halcyontouch.Apple2gsTemplate.pkg --install-location /Library/Developer/Xcode/ --scripts pkg/scripts/ Apple2GSXcodeTemplate.pkg
|
||||||
productbuild --distribution pkg/Distribution.xml --resource ./pkg temp.pkg
|
productbuild --distribution pkg/Distribution.xml --resource ./pkg temp.pkg
|
||||||
rm Apple2GSXcodeTemplate.pkg
|
rm Apple2GSXcodeTemplate.pkg
|
||||||
productsign --sign "Developer ID Installer" temp.pkg Apple2GSXcodeTemplate.pkg
|
productsign --sign "Developer ID Installer" temp.pkg Apple2GSXcodeTemplate.pkg
|
||||||
|
Loading…
x
Reference in New Issue
Block a user