[makerom/ctrtool] Updated usage text. (now with build datestamp)

This commit is contained in:
jakcron
2015-10-22 01:35:53 +08:00
parent dd9538b096
commit d7d45411ba
3 changed files with 382 additions and 357 deletions
+3 -2
View File
@@ -38,9 +38,10 @@ typedef struct
static void usage(const char *argv0)
{
fprintf(stderr,
"Usage: %s [options...] <file>\n"
"CTRTOOL (c) neimod, 3DSGuy.\n"
"Built: %s %s\n"
"\n"
"Usage: %s [options...] <file>\n"
"Options:\n"
" -i, --info Show file info.\n"
" This is the default action.\n"
@@ -86,7 +87,7 @@ static void usage(const char *argv0)
" --romfsdir=dir Specify RomFS directory path.\n"
" --listromfs List files in RomFS.\n"
"\n",
argv0);
__TIME__, __DATE__, argv0);
exit(1);
}
+4 -5
View File
@@ -5,13 +5,12 @@ OBJS = $(foreach dir,$(SRC_DIR),$(subst .c,.o,$(wildcard $(dir)/*.c)))
# Compiler Settings
LIBS = -static-libgcc
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
CXX = g++
# MAKEROM Build Settings
MAKEROM_BUILD_FLAGS = #-DDEBUG
VER_MAJOR = 0
VER_MINOR = 14
OUTPUT = makerom
main: build
@@ -19,7 +18,7 @@ main: build
rebuild: clean build
build: $(OBJS)
g++ -o $(OUTPUT) $(LIBS) $(OBJS) -m64
$(CXX) -o $(OUTPUT) $(LIBS) $(OBJS)
clean:
rm -rf $(OUTPUT) $(OBJS) *.cci *.cia *.cxi *.cfa
+375 -350
View File
File diff suppressed because it is too large Load Diff