ftpiiu_plugin/Makefile

134 lines
4.2 KiB
Makefile
Raw Normal View History

2020-04-17 22:32:39 +02:00
.PHONY: all all-classic format clean
.PHONY: dslink 3dslink 3dslink-classic nxlink-classic
.PHONY: nds 3dsx cia nro linux
.PHONY: 3dsx-classic cia-classic nro-classic
.PHONY: release release-nds release-3dsx release-cia release-nro
.PHONY: release-3dsx-classic release-cia-classic release-nro-classic
export GITREV := $(shell git rev-parse HEAD 2>/dev/null | cut -c1-6)
2020-04-05 21:16:16 +02:00
export VERSION_MAJOR := 3
2021-06-02 03:23:00 +02:00
export VERSION_MINOR := 1
2020-04-05 21:16:16 +02:00
export VERSION_MICRO := 0
2020-04-17 22:32:39 +02:00
export VERSION := $(VERSION_MAJOR).$(VERSION_MINOR).$(VERSION_MICRO)
2016-06-15 09:44:49 +02:00
2020-04-17 22:32:39 +02:00
###########################################################################
2023-11-19 13:55:58 +01:00
all: wiiu nds 3dsx nro linux
2014-11-23 23:39:00 +01:00
2023-11-19 13:55:58 +01:00
all-classic: wiiu nds 3dsx-classic nro-classic linux
2020-04-05 21:16:16 +02:00
format:
@clang-format -style=file -i $(filter-out \
2023-03-11 14:02:43 +01:00
include/imconfig.h \
2020-04-05 21:16:16 +02:00
include/imgui.h \
source/imgui/imgui.cpp \
source/imgui/imgui_draw.cpp \
2021-06-02 03:14:38 +02:00
source/imgui/imgui_internal.h \
source/imgui/imgui_tables.cpp \
2020-04-05 21:16:16 +02:00
source/imgui/imgui_widgets.cpp \
source/imgui/imstb_rectpack.h \
source/imgui/imstb_textedit.h \
source/imgui/imstb_truetype.h \
2021-06-02 03:14:38 +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 \
2023-03-11 14:02:43 +01:00
source/linux/imgui_impl_opengl3_loader.h \
, $(shell find source include -type f -name \*.c -o -name \*.cpp -o -name \*.h))
2020-04-05 21:16:16 +02:00
2020-04-17 22:32:39 +02:00
clean:
2023-11-19 13:55:58 +01:00
@$(MAKE) -f Makefile.wiiu clean
2020-04-17 22:32:39 +02:00
@$(MAKE) -f Makefile.nds clean
@$(MAKE) -f Makefile.3ds clean
@$(MAKE) -f Makefile.3ds clean CLASSIC="-DCLASSIC"
@$(MAKE) -f Makefile.switch clean
@$(MAKE) -f Makefile.switch clean CLASSIC="-DCLASSIC"
@$(MAKE) -f Makefile.linux clean
@$(RM) ftpd.nds.xz ftpd*.3dsx.xz ftpd*.cia.xz ftpd*.nro.xz
2019-09-15 22:34:35 +02:00
2020-04-17 22:32:39 +02:00
###########################################################################
dslink:
@$(MAKE) -f Makefile.nds dslink
2018-02-02 15:35:22 +01:00
2020-04-17 22:32:39 +02:00
3dslink:
@$(MAKE) -f Makefile.3ds 3dslink
3dslink-classic:
@$(MAKE) -f Makefile.3ds 3dslink CLASSIC="-DCLASSIC"
nxlink:
@$(MAKE) -f Makefile.switch nxlink
nxlink-classic:
@$(MAKE) -f Makefile.switch nxlink CLASSIC="-DCLASSIC"
###########################################################################
2023-11-19 13:55:58 +01:00
wiiu:
@$(MAKE) -f Makefile.wiiu CLASSIC="-DCLASSIC"
2020-04-17 22:32:39 +02:00
nds:
@$(MAKE) -f Makefile.nds CLASSIC="-DCLASSIC"
2020-04-05 21:16:16 +02:00
3dsx:
@$(MAKE) -f Makefile.3ds 3dsx
2020-04-17 22:32:39 +02:00
3dsx-classic:
@$(MAKE) -f Makefile.3ds 3dsx CLASSIC="-DCLASSIC"
2020-04-05 21:16:16 +02:00
cia: 3dsx
@$(MAKE) -f Makefile.3ds cia
2018-02-02 15:35:22 +01:00
2020-04-17 22:32:39 +02:00
cia-classic: 3dsx-classic
@$(MAKE) -f Makefile.3ds cia CLASSIC="-DCLASSIC"
nro:
@$(MAKE) -f Makefile.switch all
2020-04-05 21:16:16 +02:00
2020-04-17 22:32:39 +02:00
nro-classic:
@$(MAKE) -f Makefile.switch all CLASSIC="-DCLASSIC"
2020-04-05 21:16:16 +02:00
2014-11-25 07:13:47 +01:00
linux:
@$(MAKE) -f Makefile.linux
2014-11-23 23:39:00 +01:00
2020-04-17 22:32:39 +02:00
###########################################################################
release: release-nds \
release-3dsx release-3dsx-classic \
release-cia release-cia-classic \
release-nro release-nro-classic
2021-06-02 03:23:00 +02:00
@$(RM) -r release
@mkdir release
@xz -c <nds/ftpd.nds >release/ftpd.nds.xz
@ln -s ../nds/ftpd.nds release/ftpd.nds
@xz -c <3ds/ftpd.3dsx >release/ftpd.3dsx.xz
@ln -s ../3ds/ftpd.3dsx release/ftpd.3dsx
@xz -c <3ds-classic/ftpd-classic.3dsx >release/ftpd-classic.3dsx.xz
@ln -s ../3ds-classic/ftpd-classic.3dsx release/ftpd-classic.3dsx
@xz -c <3ds/ftpd.cia >release/ftpd.cia.xz
@ln -s ../3ds/ftpd.cia release/ftpd.cia
@xz -c <3ds-classic/ftpd-classic.cia >release/ftpd-classic.cia.xz
@ln -s ../3ds-classic/ftpd-classic.cia release/ftpd-classic.cia
@xz -c <switch/ftpd.nro >release/ftpd.nro.xz
@ln -s ../switch/ftpd.nro release/ftpd.nro
@xz -c <switch-classic/ftpd-classic.nro >release/ftpd-classic.nro.xz
@ln -s ../switch-classic/ftpd-classic.nro release/ftpd-classic.nro
2020-04-17 22:32:39 +02:00
release-nds:
2020-04-23 00:16:21 +02:00
@$(MAKE) -f Makefile.nds DEFINES=-DNDEBUG OPTIMIZE="-O3 -flto"
2020-04-17 22:32:39 +02:00
release-3dsx:
2020-04-23 00:16:21 +02:00
@$(MAKE) -f Makefile.3ds 3dsx DEFINES=-DNDEBUG OPTIMIZE="-O3 -flto"
2020-04-17 22:32:39 +02:00
release-3dsx-classic:
2020-04-23 00:16:21 +02:00
@$(MAKE) -f Makefile.3ds 3dsx DEFINES=-DNDEBUG OPTIMIZE="-O3 -flto" CLASSIC="-DCLASSIC"
2020-04-17 22:32:39 +02:00
release-cia: release-3dsx
2020-04-23 00:16:21 +02:00
@$(MAKE) -f Makefile.3ds cia DEFINES=-DNDEBUG OPTIMIZE="-O3 -flto"
2020-04-17 22:32:39 +02:00
release-cia-classic: release-3dsx-classic
2020-04-23 00:16:21 +02:00
@$(MAKE) -f Makefile.3ds cia DEFINES=-DNDEBUG OPTIMIZE="-O3 -flto" CLASSIC="-DCLASSIC"
2020-04-17 22:32:39 +02:00
release-nro:
2020-04-23 00:16:21 +02:00
@$(MAKE) -f Makefile.switch all DEFINES=-DNDEBUG OPTIMIZE="-O3 -flto"
2020-04-17 22:32:39 +02:00
release-nro-classic:
2020-04-23 00:16:21 +02:00
@$(MAKE) -f Makefile.switch all DEFINES=-DNDEBUG OPTIMIZE="-O3 -flto" CLASSIC="-DCLASSIC"