fork/slippc
git clone https://git.julia.blue/fork/slippc
9e82e89
0.4.0
1RM := rm -rf 2MKDIR_P = mkdir -p 3# INCLUDES := -I/usr/include/jsoncpp 4# LIBS := -ljsoncpp 5 6UNUSED := -Wno-unused-variable 7 8HEADERS += \ 9src/parser.h \ 10src/replay.h \ 11src/analyzer.h \ 12src/analysis.h \ 13src/enums.h \ 14src/util.h 15 16OBJS += \ 17build-win/parser.o \ 18build-win/replay.o \ 19build-win/analyzer.o \ 20build-win/analysis.o \ 21build-win/main.o 22 23CPP_DEPS += \ 24build-win/parser.d \ 25build-win/replay.d \ 26build-win/analyzer.d \ 27build-win/analysis.d \ 28build-win/main.d 29 30OUT_DIR = build-win 31 32OLEVEL := -O0 33# OLEVEL := -O3 34# OLEVEL := -Ofast -march=native -frename-registers -fno-signed-zeros -fno-trapping-math 35 36all : directories slippc 37 38slippc : $( OBJS ) 39@ echo 'Building target: $ @' 40@ echo 'Invoking: GCC C++ Linker' 41x86_64-w64-mingw32-g++ -static -static-libgcc -static-libstdc++ -L/usr/x86_64-w64-mingw32/lib/ -std=c++17 -o "./slippc.exe" $( OBJS ) $( LIBS ) 42@ echo 'Finished building target: $ @' 43@ echo ' ' 44 45build-win/%.o : ./src/%.cpp$( HEADERS ) 46@ echo 'Building file: $ <' 47@ echo 'Invoking: GCC C++ Compiler' 48$( LINK.c ) $ < -c -o$ @ 49x86_64-w64-mingw32-g++ -static -static-libgcc -static-libstdc++ -D__GXX_EXPERIMENTAL_CXX0X__ $( INCLUDES ) $( OLEVEL ) -g3 -Wall -c -fmessage-length=0 -std=c++17 $( UNUSED ) -o " $ @" " $ <" 50@ echo 'Finished building: $ <' 51@ echo ' ' 52 53clean : 54 -$( RM ) $( OBJS )$( C++_DEPS ) ./slippc.exe 55 -@echo ' ' 56 57directories : ${ OUT_DIR } 58 59${ OUT_DIR }: 60${ MKDIR_P } ${ OUT_DIR } 61 62.PHONY : all clean dependents directories 63.SECONDARY :