fork/slippc
git clone https://git.julia.blue/fork/slippc
aa5d48a
0.7.0
1RM := rm -rf 2MKDIR_P = mkdir -p 3# INCLUDES := -I/usr/include/lzma 4# LIBS := -L ./lib-lin -static -llzma 5 6UNUSED := -Wno-unused-variable 7 8HEADERS += \ 9src/parser.h \ 10src/replay.h \ 11src/analyzer.h \ 12src/analysis.h \ 13src/compressor.h \ 14src/enums.h \ 15src/schema.h \ 16src/util.h 17 18OBJS += \ 19build/parser.o \ 20build/replay.o \ 21build/analyzer.o \ 22build/analysis.o \ 23build/compressor.o \ 24build/main.o 25 26CPP_DEPS += \ 27build/parser.d \ 28build/replay.d \ 29build/analyzer.d \ 30build/analysis.d \ 31build/compressor.d \ 32build/main.d 33 34DEFINES += \ 35 -D__GXX_EXPERIMENTAL_CXX0X__ 36 37OUT_DIR = build 38 39# OLEVEL := -O0 40OLEVEL := -O3 41# OLEVEL := -Ofast -march=native -frename-registers -fno-signed-zeros -fno-trapping-math 42 43all : base 44 45base:INCLUDES += -I/usr/include/lzma 46base:LIBS += -llzma 47base : targets 48 49gui:GUI = -DGUI_ENABLED=1 50gui : base 51 52static:LIBS += -L ./lib-lin -static -llzma 53static : targets 54 55staticgui:GUI = -DGUI_ENABLED=1 56staticgui : static 57 58targets : directories slippc 59 60slippc : $( OBJS ) 61@ echo 'Building target: $ @' 62@ echo 'Invoking: GCC C++ Linker' 63g++ -L/usr/lib -std=c++17 -o "./slippc" $( OBJS ) $( LIBS ) 64@ echo 'Finished building target: $ @' 65@ echo ' ' 66 67build/%.o : ./src/%.cpp$( HEADERS ) 68@ echo 'Building file: $ <' 69@ echo 'Invoking: GCC C++ Compiler' 70$( LINK.c ) $ < -c -o$ @ 71g++ $( DEFINES ) $( GUI ) $( INCLUDES ) $( OLEVEL ) -g3 -Wall -c -fmessage-length=0 -std=c++17 $( UNUSED ) -o " $ @" " $ <" 72@ echo 'Finished building: $ <' 73@ echo ' ' 74 75clean : 76 -$( RM ) $( OBJS )$( C++_DEPS ) ./slippc 77 -@echo ' ' 78 79directories : ${ OUT_DIR } 80 81${ OUT_DIR }: 82${ MKDIR_P } ${ OUT_DIR } 83 84.PHONY : all clean dependents directories 85.SECONDARY :