-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
65 lines (46 loc) · 1.54 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
# TARGET #
TARGET := 3DS
LIBRARY := 0
ifeq ($(TARGET),3DS)
ifeq ($(strip $(DEVKITPRO)),)
$(error "Please set DEVKITPRO in your environment. export DEVKITPRO=<path to>devkitPro")
endif
ifeq ($(strip $(DEVKITARM)),)
$(error "Please set DEVKITARM in your environment. export DEVKITARM=<path to>devkitARM")
endif
endif
# COMMON CONFIGURATION #
NAME := tikSweep
BUILD_DIR := build
OUTPUT_DIR := output
INCLUDE_DIRS := include
SOURCE_DIRS := source
BUILD_FILTER := source/svchax/test/test.c
EXTRA_OUTPUT_FILES := LICENSE.TXT
LIBRARY_DIRS := $(DEVKITPRO)/libctru
LIBRARIES := ctru m
BUILD_FLAGS := -DBUILD_VERSION="\"`git describe --tags --abbrev=0`\"" -DBUILD_REVISION="\"`git rev-parse --short HEAD``git diff-index --quiet HEAD -- || echo ' (dirty)'`\"" -DBUILD_DATE="\"`date -u +'%Y-%m-%d %H:%M:%S %Z'`\""
RUN_FLAGS :=
VERSION_PARTS := $(subst ., ,$(shell echo "`git describe --tags --abbrev=0`.0.0" | cut -d "v" -f 2))
VERSION_MAJOR := $(word 1, $(VERSION_PARTS))
VERSION_MINOR := $(word 2, $(VERSION_PARTS))
VERSION_MICRO := $(word 3, $(VERSION_PARTS))
$(info Major Version: $(VERSION_MAJOR))
$(info Minor Version: $(VERSION_MINOR))
$(info Micro Version: $(VERSION_MICRO))
$(info )
# 3DS CONFIGURATION #
TITLE := $(NAME)
DESCRIPTION := Remove unused tickets
AUTHOR := DanTheMan827
PRODUCT_CODE := CTR-K-TIKSWEEP
UNIQUE_ID := 0xA8BF
SYSTEM_MODE := 64MB
SYSTEM_MODE_EXT := Legacy
ICON_FLAGS :=
ROMFS_DIR := romfs
BANNER_AUDIO := audio.wav
BANNER_IMAGE := banner.png
ICON := icon.png
# INTERNAL #
include buildtools/make_base