fixed some warnings

This commit is contained in:
2022-05-08 15:06:38 +03:00
parent c6c70c6fcc
commit c9864f3b68
13 changed files with 52 additions and 33 deletions

View File

@@ -3,10 +3,10 @@ TESTS=$(wildcard tests/*c) $(wildcard tests/**/*.c)
OUTDIR=bin
CMP=gcc
OPT_ARGS=-O2 -std=c17
OPT_ARGS=-O2 -flto -std=c17
WARN_ARGS=-Wall -Wno-discarded-qualifiers
all: clear_c clear_bin build_test build_lib
all: clear_c clear_bin build_test_dbg
clear_c:
clear
@@ -43,6 +43,16 @@ build_lib:
@echo -e '\n\e[96m-------------[build_lib]--------------\e[0m'
$(CMP) $(LIB_ARGS) -o $(OUTDIR)/$(LIB_FILE)
DLL_ARGS=$(OPT_ARGS) $(WARN_ARGS)\
-shared -fpic -static-libgcc -static-libstdc++\
$(SRC) tests/test_marshalling.c
DLL_FILE=kerep.dll
build_dll:
gcc --version
@echo -e '\n\e[96m-------------[build_dll]--------------\e[0m'
$(CMP) $(DLL_ARGS) -o $(OUTDIR)/$(DLL_FILE)
######################################
###### Run tasks #######
######################################