mirror of
https://github.com/DarkStore-3DS/Project_CTR.git
synced 2026-07-03 00:39:14 +00:00
18 lines
475 B
Makefile
18 lines
475 B
Makefile
# Sources
|
|
SRC_DIR = . polarssl tinyxml
|
|
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++
|
|
CXXFLAGS = -I.
|
|
CFLAGS = -O2 -flto -Wall -Wno-unused-variable -Wno-unused-but-set-variable -Wno-unused-result -I.
|
|
OUTPUT = ctrtool
|
|
CC = gcc
|
|
CXX = g++
|
|
|
|
main: $(OBJS)
|
|
$(CXX) -o $(OUTPUT) $(LIBS) $(OBJS)
|
|
|
|
clean:
|
|
rm -rf $(OUTPUT) $(OBJS)
|