mirror of
https://github.com/DarkStore-3DS/Project_CTR.git
synced 2026-07-03 00:39:14 +00:00
Fixed static linking of ctrtool & added a few more gcc flags.
This commit is contained in:
+2
-2
@@ -1,9 +1,9 @@
|
|||||||
OBJS = keyset.o main.o ctr.o ncsd.o cia.o tik.o tmd.o filepath.o lzss.o exheader.o exefs.o ncch.o utils.o settings.o firm.o cwav.o stream.o romfs.o ivfc.o
|
OBJS = keyset.o main.o ctr.o ncsd.o cia.o tik.o tmd.o filepath.o lzss.o exheader.o exefs.o ncch.o utils.o settings.o firm.o cwav.o stream.o romfs.o ivfc.o
|
||||||
POLAR_OBJS = polarssl/aes.o polarssl/bignum.o polarssl/rsa.o polarssl/sha2.o
|
POLAR_OBJS = polarssl/aes.o polarssl/bignum.o polarssl/rsa.o polarssl/sha2.o
|
||||||
TINYXML_OBJS = tinyxml/tinystr.o tinyxml/tinyxml.o tinyxml/tinyxmlerror.o tinyxml/tinyxmlparser.o
|
TINYXML_OBJS = tinyxml/tinystr.o tinyxml/tinyxml.o tinyxml/tinyxmlerror.o tinyxml/tinyxmlparser.o
|
||||||
LIBS = -static-libstdc++
|
LIBS = -static-libgcc -static-libstdc++
|
||||||
CXXFLAGS = -I.
|
CXXFLAGS = -I.
|
||||||
CFLAGS = -Wall -Wno-unused-variable -Wno-unused-but-set-variable -I.
|
CFLAGS = -Wall -O2 -flto -static -Wno-unused-variable -Wno-unused-but-set-variable -I.
|
||||||
OUTPUT = ctrtool
|
OUTPUT = ctrtool
|
||||||
CC = gcc
|
CC = gcc
|
||||||
|
|
||||||
|
|||||||
+2
-2
@@ -5,7 +5,7 @@ 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 -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 -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
|
||||||
CC = gcc
|
CC = gcc
|
||||||
|
|
||||||
# MAKEROM Build Settings
|
# MAKEROM Build Settings
|
||||||
@@ -22,4 +22,4 @@ build: $(OBJS)
|
|||||||
g++ -o $(OUTPUT) $(LIBS) $(OBJS) -m64
|
g++ -o $(OUTPUT) $(LIBS) $(OBJS) -m64
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
rm -rf $(OUTPUT) $(OBJS) *.cci *.cia *.cxi *.cfa
|
rm -rf $(OUTPUT) $(OBJS) *.cci *.cia *.cxi *.cfa
|
||||||
|
|||||||
Reference in New Issue
Block a user