project files updated
This commit is contained in:
parent
03feae8a5c
commit
154365ae95
34
Makefile
34
Makefile
@ -6,7 +6,7 @@ CMP=gcc
|
|||||||
OPT_ARGS=-O2 -flto
|
OPT_ARGS=-O2 -flto
|
||||||
WARN_ARGS=-Wall -Wno-discarded-qualifiers
|
WARN_ARGS=-Wall -Wno-discarded-qualifiers
|
||||||
|
|
||||||
all: build_test
|
all: clear_c clear_bin build_test build_test_dbg build_lib build_dll
|
||||||
|
|
||||||
clear_c:
|
clear_c:
|
||||||
clear
|
clear
|
||||||
@ -20,31 +20,39 @@ clang: CMP=clang
|
|||||||
clang: WARN_ARGS=-Wall -Wno-ignored-qualifiers -Wno-incompatible-pointer-types-discards-qualifiers
|
clang: WARN_ARGS=-Wall -Wno-ignored-qualifiers -Wno-incompatible-pointer-types-discards-qualifiers
|
||||||
clang: all
|
clang: all
|
||||||
|
|
||||||
|
######################################
|
||||||
|
###### Build tasks #######
|
||||||
|
######################################
|
||||||
TEST_FILE=kerep_test.com
|
TEST_FILE=kerep_test.com
|
||||||
TEST_ARGS=$(WARN_ARGS) $(SRC) $(TESTS) -o $(OUTDIR)/$(TEST_FILE)
|
TEST_ARGS=$(WARN_ARGS) $(SRC) $(TESTS) -o $(OUTDIR)/$(TEST_FILE)
|
||||||
build_test: clear_c clear_bin
|
|
||||||
|
build_test:
|
||||||
@echo -e '\n\e[96m-------------[build_test]-------------\e[0m'
|
@echo -e '\n\e[96m-------------[build_test]-------------\e[0m'
|
||||||
$(CMP) $(OPT_ARGS) $(TEST_ARGS)
|
$(CMP) $(OPT_ARGS) $(TEST_ARGS)
|
||||||
|
|
||||||
build_test_dbg: clear_c clear_bin
|
build_test_dbg:
|
||||||
@echo -e '\n\e[96m-----------[build_test_dbg]-----------\e[0m'
|
@echo -e '\n\e[96m-----------[build_test_dbg]-----------\e[0m'
|
||||||
$(CMP) -g -O0 $(TEST_ARGS).dbg
|
$(CMP) -g -O0 $(TEST_ARGS).dbg
|
||||||
|
|
||||||
test: build_test
|
LIB_ARGS=$(OPT_ARGS) $(WARN_ARGS)\
|
||||||
|
-fpic -shared -Wl,-soname,$(LIB_FILE)\
|
||||||
|
$(SRC) tests/test_marshalling.c
|
||||||
|
LIB_FILE=kerep.so
|
||||||
|
|
||||||
|
build_lib:
|
||||||
|
@echo -e '\n\e[96m-------------[build_lib]--------------\e[0m'
|
||||||
|
$(CMP) $(LIB_ARGS) -o $(OUTDIR)/$(LIB_FILE)
|
||||||
|
|
||||||
|
######################################
|
||||||
|
###### Run tasks #######
|
||||||
|
######################################
|
||||||
|
test: clear_c build_test
|
||||||
@echo -e '\n\e[96m-------------[build_test]-------------\e[0m'
|
@echo -e '\n\e[96m-------------[build_test]-------------\e[0m'
|
||||||
tabs 4
|
tabs 4
|
||||||
$(OUTDIR)/$(TEST_FILE)
|
$(OUTDIR)/$(TEST_FILE)
|
||||||
|
|
||||||
valgrind: build_test_dbg
|
valgrind: clear_c build_test_dbg
|
||||||
@echo -e '\n\e[96m--------------[valgrind]--------------\e[0m'
|
@echo -e '\n\e[96m--------------[valgrind]--------------\e[0m'
|
||||||
tabs 4
|
tabs 4
|
||||||
valgrind -s --read-var-info=yes --track-origins=yes --fullpath-after=kerep/ \
|
valgrind -s --read-var-info=yes --track-origins=yes --fullpath-after=kerep/ \
|
||||||
--leak-check=full --show-leak-kinds=all $(OUTDIR)/$(TEST_FILE).dbg
|
--leak-check=full --show-leak-kinds=all $(OUTDIR)/$(TEST_FILE).dbg
|
||||||
|
|
||||||
LIB_FILE=kerep.so
|
|
||||||
LIB_ARGS=$(OPT_ARGS) $(WARN_ARGS)\
|
|
||||||
-fpic -shared -Wl,-soname,$(LIB_FILE)\
|
|
||||||
$(SRC) tests/test_marshalling.c -o $(OUTDIR)/$(LIB_FILE)
|
|
||||||
build_lib: clear_c clear_bin
|
|
||||||
@echo -e '\n\e[96m-------------[build_lib]--------------\e[0m'
|
|
||||||
$(CMP) $(LIB_ARGS)
|
|
||||||
|
|||||||
@ -81,8 +81,8 @@
|
|||||||
<ManagedAssembly>false</ManagedAssembly>
|
<ManagedAssembly>false</ManagedAssembly>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
|
||||||
<OutDir>bin\$(Configuration)-$(Platform)\</OutDir>
|
<OutDir>bin\x86\</OutDir>
|
||||||
<IntDir>obj\$(Configuration)-$(Platform)\</IntDir>
|
<IntDir>obj\x86\</IntDir>
|
||||||
<RunCodeAnalysis>true</RunCodeAnalysis>
|
<RunCodeAnalysis>true</RunCodeAnalysis>
|
||||||
<ManagedAssembly>false</ManagedAssembly>
|
<ManagedAssembly>false</ManagedAssembly>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
@ -94,8 +94,8 @@
|
|||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
|
||||||
<RunCodeAnalysis>true</RunCodeAnalysis>
|
<RunCodeAnalysis>true</RunCodeAnalysis>
|
||||||
<OutDir>bin\$(Configuration)-$(Platform)\</OutDir>
|
<OutDir>bin\x64\</OutDir>
|
||||||
<IntDir>obj\$(Configuration)-$(Platform)\</IntDir>
|
<IntDir>obj\x64\</IntDir>
|
||||||
<ManagedAssembly>false</ManagedAssembly>
|
<ManagedAssembly>false</ManagedAssembly>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
|
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
|
||||||
@ -114,6 +114,7 @@
|
|||||||
<CompileAs>Default</CompileAs>
|
<CompileAs>Default</CompileAs>
|
||||||
<LanguageStandard>Default</LanguageStandard>
|
<LanguageStandard>Default</LanguageStandard>
|
||||||
<DebugInformationFormat>None</DebugInformationFormat>
|
<DebugInformationFormat>None</DebugInformationFormat>
|
||||||
|
<Optimization>Disabled</Optimization>
|
||||||
</ClCompile>
|
</ClCompile>
|
||||||
<Link>
|
<Link>
|
||||||
<SubSystem>Windows</SubSystem>
|
<SubSystem>Windows</SubSystem>
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user