fork/slippc
git clone https://git.julia.blue/fork/slippc
81596bb
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/parser.o \ 18build/replay.o \ 19build/analyzer.o \ 20build/analysis.o \ 21build/main.o 22 23CPP_DEPS += \ 24build/parser.d \ 25build/replay.d \ 26build/analyzer.d \ 27build/analysis.d \ 28build/main.d 29 30OUT_DIR = build 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' 41g++ -L/usr/lib -std=c++17 -o "./slippc" $( OBJS ) $( LIBS ) 42@ echo 'Finished building target: $ @' 43@ echo ' ' 44 45build/%.o : ./src/%.cpp$( HEADERS ) 46@ echo 'Building file: $ <' 47@ echo 'Invoking: GCC C++ Compiler' 48$( LINK.c ) $ < -c -o$ @ 49g++ -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 55 -@echo ' ' 56 57directories : ${ OUT_DIR } 58 59${ OUT_DIR }: 60${ MKDIR_P } ${ OUT_DIR } 61 62.PHONY : all clean dependents directories 63.SECONDARY :