mirror of
https://github.com/DarkStore-3DS/Project_CTR.git
synced 2026-07-06 16:59:03 +00:00
[makerom/ctrtool] Updated usage text. (now with build datestamp)
This commit is contained in:
+3
-2
@@ -38,9 +38,10 @@ typedef struct
|
|||||||
static void usage(const char *argv0)
|
static void usage(const char *argv0)
|
||||||
{
|
{
|
||||||
fprintf(stderr,
|
fprintf(stderr,
|
||||||
"Usage: %s [options...] <file>\n"
|
|
||||||
"CTRTOOL (c) neimod, 3DSGuy.\n"
|
"CTRTOOL (c) neimod, 3DSGuy.\n"
|
||||||
|
"Built: %s %s\n"
|
||||||
"\n"
|
"\n"
|
||||||
|
"Usage: %s [options...] <file>\n"
|
||||||
"Options:\n"
|
"Options:\n"
|
||||||
" -i, --info Show file info.\n"
|
" -i, --info Show file info.\n"
|
||||||
" This is the default action.\n"
|
" This is the default action.\n"
|
||||||
@@ -86,7 +87,7 @@ static void usage(const char *argv0)
|
|||||||
" --romfsdir=dir Specify RomFS directory path.\n"
|
" --romfsdir=dir Specify RomFS directory path.\n"
|
||||||
" --listromfs List files in RomFS.\n"
|
" --listromfs List files in RomFS.\n"
|
||||||
"\n",
|
"\n",
|
||||||
argv0);
|
__TIME__, __DATE__, argv0);
|
||||||
exit(1);
|
exit(1);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
+3
-4
@@ -5,13 +5,12 @@ OBJS = $(foreach dir,$(SRC_DIR),$(subst .c,.o,$(wildcard $(dir)/*.c)))
|
|||||||
# Compiler Settings
|
# Compiler Settings
|
||||||
LIBS = -static-libgcc
|
LIBS = -static-libgcc
|
||||||
CXXFLAGS = -I.
|
CXXFLAGS = -I.
|
||||||
CFLAGS = --std=c99 -Wall -O2 -flto -static -Wno-unused-but-set-variable -Wno-unused-value -I. -DMAKEROM_VER_MAJOR=$(VER_MAJOR) -DMAKEROM_VER_MINOR=$(VER_MINOR) $(MAKEROM_BUILD_FLAGS) -m64
|
CFLAGS = --std=c99 -O2 -flto -Wall -Wno-unused-but-set-variable -Wno-unused-value -I. $(MAKEROM_BUILD_FLAGS)
|
||||||
CC = gcc
|
CC = gcc
|
||||||
|
CXX = g++
|
||||||
|
|
||||||
# MAKEROM Build Settings
|
# MAKEROM Build Settings
|
||||||
MAKEROM_BUILD_FLAGS = #-DDEBUG
|
MAKEROM_BUILD_FLAGS = #-DDEBUG
|
||||||
VER_MAJOR = 0
|
|
||||||
VER_MINOR = 14
|
|
||||||
OUTPUT = makerom
|
OUTPUT = makerom
|
||||||
|
|
||||||
main: build
|
main: build
|
||||||
@@ -19,7 +18,7 @@ main: build
|
|||||||
rebuild: clean build
|
rebuild: clean build
|
||||||
|
|
||||||
build: $(OBJS)
|
build: $(OBJS)
|
||||||
g++ -o $(OUTPUT) $(LIBS) $(OBJS) -m64
|
$(CXX) -o $(OUTPUT) $(LIBS) $(OBJS)
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
rm -rf $(OUTPUT) $(OBJS) *.cci *.cia *.cxi *.cfa
|
rm -rf $(OUTPUT) $(OBJS) *.cci *.cia *.cxi *.cfa
|
||||||
|
|||||||
+344
-319
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user