mirror of
https://github.com/despawnerer/freearc
synced 2026-08-23 02:23:04 -04:00
25 lines
1.2 KiB
Makefile
Executable file
25 lines
1.2 KiB
Makefile
Executable file
include ../../common.mak
|
|
|
|
ALL: Example-C.exe mse.exe
|
|
|
|
CODE_FLAGS = -fno-exceptions -fno-rtti -Wall \
|
|
-Wno-unknown-pragmas -Wno-sign-compare -Wno-conversion \
|
|
-I../_Encryption -I../_Encryption/headers -I../_Encryption/hashes
|
|
OPT_FLAGS = -O3 \
|
|
-fomit-frame-pointer -fstrict-aliasing \
|
|
-fforce-addr -funroll-loops
|
|
DEBUG_FLAGS = -g0
|
|
CFLAGS = $(CODE_FLAGS) $(OPT_FLAGS) $(DEBUG_FLAGS) $(DEFINES)
|
|
|
|
BUILD_FLAGS = -lstdc++ -s
|
|
|
|
COMPRESSION_OBJS = $(TEMPDIR)/C_LZMA.o $(TEMPDIR)/C_BCJ.o $(TEMPDIR)/C_Dict.o $(TEMPDIR)/C_Delta.o $(TEMPDIR)/C_LZ4.o \
|
|
$(TEMPDIR)/C_REP.o $(TEMPDIR)/C_LZP.o $(TEMPDIR)/C_PPMD.o $(TEMPDIR)/C_External.o \
|
|
$(TEMPDIR)/C_MM.o $(TEMPDIR)/C_TTA.o $(TEMPDIR)/C_Tornado.o $(TEMPDIR)/C_GRZip.o $(TEMPDIR)/C_4x4.o $(TEMPDIR)/C_DisPack.o \
|
|
$(TEMPDIR)/Common.o $(TEMPDIR)/CompressionLibrary.o
|
|
|
|
Example-C.exe: Example-C.cpp makefile $(COMPRESSION_OBJS)
|
|
$(GCC) $(CFLAGS) Example-C.cpp -o Example-C.exe $(COMPRESSION_OBJS) $(BUILD_FLAGS)
|
|
|
|
mse.exe: mse.cpp makefile $(COMPRESSION_OBJS)
|
|
$(GCC) $(CFLAGS) mse.cpp -o mse.exe $(COMPRESSION_OBJS) $(BUILD_FLAGS)
|