Skip to content
Browse files

3DS: Add a make rule for a distributable package

(cherry picked from commit cc721bc)
  • Loading branch information...
bgK committed Nov 4, 2019
1 parent 6e8f7a8 commit f81e50e549a0cbc40cd59e01486c0bea575955be
Showing with 10 additions and 1 deletion.
  1. +10 −1 backends/platform/3ds/
@@ -14,7 +14,7 @@ CXXFLAGS += -std=gnu++11
ASFLAGS += -mfloat-abi=hard
LDFLAGS += -specs=3dsx.specs $(ARCH) -L$(DEVKITPRO)/libctru/lib -L$(DEVKITPRO)/portlibs/3ds/lib

.PHONY: clean_3ds
.PHONY: clean_3ds dist_3ds

clean: clean_3ds

@@ -27,6 +27,7 @@ clean_3ds:
$(RM) $(TARGET).romfs
$(RM) $(TARGET).cia
$(RM) -rf romfs
$(RM) -rf dist_3ds

@rm -rf romfs
@@ -65,6 +66,14 @@ $(TARGET).cia: $(EXECUTABLE) $(APP_RSF) $(TARGET).smdh $(TARGET).bnr $(TARGET).r
@makerom -f cia -target t -exefslogo -o $@ -elf $(EXECUTABLE) -rsf $(APP_RSF) -banner $(TARGET).bnr -icon $(TARGET).smdh -romfs $(TARGET).romfs
@echo built ... $(notdir $@)

dist_3ds: $(TARGET).cia $(TARGET).3dsx $(DIST_FILES_DOCS)
@rm -rf dist_3ds
@mkdir -p dist_3ds
@cp $(TARGET).3dsx $(TARGET).cia dist_3ds/
@cp $(DIST_FILES_DOCS) dist_3ds/
@cp $(srcdir)/backends/platform/3ds/ dist_3ds/
@echo built ... $(notdir $@)

# rules for assembling GPU shaders

0 comments on commit f81e50e

Please sign in to comment.
You can’t perform that action at this time.