ftpiiu_plugin/Makefile

80 lines
2.0 KiB
Makefile
Raw Normal View History

2020-04-05 21:16:16 +02:00
.PHONY: all nro 3dsx cia clean linux 3dslink nxlink format release release-3dsx release-cia release-3ds release-nro
TARGET := $(notdir $(CURDIR))
2014-11-23 23:39:00 +01:00
2016-06-15 09:44:49 +02:00
export GITREV := $(shell git rev-parse HEAD 2>/dev/null | cut -c1-8)
2020-04-05 21:16:16 +02:00
export VERSION_MAJOR := 3
export VERSION_MINOR := 0
export VERSION_MICRO := 0
2020-04-10 07:50:37 +02:00
export VERSION := $(VERSION_MAJOR).$(VERSION_MINOR).$(VERSION_MICRO)-rc3
2016-01-22 21:42:38 +01:00
2016-06-15 09:44:49 +02:00
ifneq ($(strip $(GITREV)),)
export VERSION := $(VERSION)-$(GITREV)
endif
2020-04-05 21:16:16 +02:00
all: 3dsx nro linux
2014-11-23 23:39:00 +01:00
2020-04-05 21:16:16 +02:00
nxlink:
@$(MAKE) -f Makefile.switch nxlink
2020-04-06 07:36:03 +02:00
3dslink:
@$(MAKE) -f Makefile.3ds 3dslink
2020-04-05 21:16:16 +02:00
format:
@clang-format -style=file -i $(filter-out \
include/imgui.h \
2020-04-06 07:36:03 +02:00
source/linux/imgui_impl_glfw.cpp \
source/linux/imgui_impl_glfw.h \
source/linux/imgui_impl_opengl3.cpp \
source/linux/imgui_impl_opengl3.h \
source/linux/KHR/khrplatform.h \
source/linux/glad.c \
source/linux/glad/glad.h \
2020-04-05 21:16:16 +02:00
source/imgui/imgui.cpp \
source/imgui/imgui_demo.cpp \
source/imgui/imgui_draw.cpp \
source/imgui/imgui_widgets.cpp \
source/imgui/imstb_rectpack.h \
source/imgui/imstb_textedit.h \
source/imgui/imstb_truetype.h \
source/imgui/imgui_internal.h, \
$(shell find source include -type f -name \*.c -o -name \*.cpp -o -name \*.h))
release: release-3ds release-nro
2020-04-06 07:36:03 +02:00
@xz -c <3ds/$(TARGET).3dsx >ftpd.3dsx.xz
@xz -c <3ds/$(TARGET).cia >ftpd.cia.xz
@xz -c <switch/$(TARGET).nro >ftpd.nro.xz
2019-09-15 22:34:35 +02:00
2018-02-27 15:27:16 +01:00
nro:
2018-02-02 15:35:22 +01:00
@$(MAKE) -f Makefile.switch all
2020-04-05 21:16:16 +02:00
release-nro:
@$(MAKE) DEFINES=-DNDEBUG -f Makefile.switch all
3dsx:
@$(MAKE) -f Makefile.3ds 3dsx
2020-04-05 21:16:16 +02:00
release-3dsx:
@$(MAKE) DEFINES=-DNDEBUG -f Makefile.3ds 3dsx
cia: 3dsx
@$(MAKE) -f Makefile.3ds cia
2018-02-02 15:35:22 +01:00
2020-04-05 21:16:16 +02:00
release-cia: release-3dsx
@$(MAKE) DEFINES=-NDEBUG -f Makefile.3ds cia
release-3ds:
2020-04-06 07:36:03 +02:00
# can't let these run in parallel with each other due to using same
2020-04-05 21:16:16 +02:00
# .elf file name
@$(MAKE) DEFINES=-DNDEBUG -f Makefile.3ds 3dsx
@$(MAKE) DEFINES=-DNDEBUG -f Makefile.3ds cia
2014-11-25 07:13:47 +01:00
linux:
@$(MAKE) -f Makefile.linux
2014-11-23 23:39:00 +01:00
clean:
2020-04-05 21:16:16 +02:00
@$(MAKE) -f Makefile.switch clean
@$(MAKE) -f Makefile.3ds clean
2014-11-25 07:13:47 +01:00
@$(MAKE) -f Makefile.linux clean
2019-09-15 22:34:35 +02:00
@$(RM) ftpd.3dsx.xz ftpd.cia.xz ftpd.nro.xz