* tdm_datatype: - use typedefs to map basic types

- no derive type (polymorph) anymore
* makefile: - use HPP to list .hpp dependencies
This commit is contained in:
2021-01-22 13:22:35 +01:00
parent 90253f819a
commit 93f0077146
3 changed files with 261 additions and 164 deletions

View File

@@ -3,8 +3,9 @@
# declare name of executable
EXE = tdmreaper
# source name
# sources and headers
SRC := tdm_reaper
HPP = $(wildcard lib/*.hpp)
# compiler and C++ standard
CC = g++ -std=c++17
@@ -38,7 +39,7 @@ uninstall : $(INST)/$(EXE)
rm $<
# build main.cpp object file and include git version/commit tag
main.o : src/main.cpp lib/$(SRC).hpp lib/tdm_datamodel.hpp
main.o : src/main.cpp lib/$(SRC).hpp $(HPP)
@cp $< $<.cpp
@if [ $(OST) = "Linux" ]; then\
sed -i 's/TAGSTRING/$(GTAG)/g' $<.cpp; \
@@ -51,7 +52,7 @@ main.o : src/main.cpp lib/$(SRC).hpp lib/tdm_datamodel.hpp
$(CC) -c $(OPT) -I $(LIB) -I lib/ $<.cpp -o $@
@rm $<.cpp
$(SRC).o : lib/$(SRC).cpp lib/$(SRC).hpp lib/tdm_datamodel.hpp
$(SRC).o : lib/$(SRC).cpp lib/$(SRC).hpp $(HPP)
$(CC) -c $(OPT) -I $(LIB) $< -o $@
clean :