mirror of
https://github.com/DarkStore-3DS/Project_CTR.git
synced 2026-07-04 16:59:02 +00:00
[ctrtool] Made makefile consistent with makerom.
This commit is contained in:
+10
-8
@@ -1,15 +1,17 @@
|
|||||||
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
|
# Sources
|
||||||
POLAR_OBJS = polarssl/aes.o polarssl/bignum.o polarssl/rsa.o polarssl/sha2.o
|
SRC_DIR = . polarssl tinyxml
|
||||||
TINYXML_OBJS = tinyxml/tinystr.o tinyxml/tinyxml.o tinyxml/tinyxmlerror.o tinyxml/tinyxmlparser.o
|
OBJS = $(foreach dir,$(SRC_DIR),$(subst .c,.o,$(wildcard $(dir)/*.c))) $(foreach dir,$(SRC_DIR),$(subst .cpp,.o,$(wildcard $(dir)/*.cpp)))
|
||||||
|
|
||||||
|
# Compiler Settings
|
||||||
LIBS = -static-libgcc -static-libstdc++
|
LIBS = -static-libgcc -static-libstdc++
|
||||||
CXXFLAGS = -I.
|
CXXFLAGS = -I.
|
||||||
CFLAGS = -Wall -O2 -flto -static -Wno-unused-variable -Wno-unused-but-set-variable -I.
|
CFLAGS = -O2 -flto -Wall -Wno-unused-variable -Wno-unused-but-set-variable -I.
|
||||||
OUTPUT = ctrtool
|
OUTPUT = ctrtool
|
||||||
CC = gcc
|
CC = gcc
|
||||||
|
CXX = g++
|
||||||
|
|
||||||
main: $(OBJS) $(POLAR_OBJS) $(TINYXML_OBJS)
|
main: $(OBJS)
|
||||||
g++ -o $(OUTPUT) $(LIBS) $(OBJS) $(POLAR_OBJS) $(TINYXML_OBJS)
|
$(CXX) -o $(OUTPUT) $(LIBS) $(OBJS)
|
||||||
|
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
rm -rf $(OUTPUT) $(OBJS) $(POLAR_OBJS) $(TINYXML_OBJS)
|
rm -rf $(OUTPUT) $(OBJS)
|
||||||
|
|||||||
Reference in New Issue
Block a user