diff --git a/makefile b/makefile index 18bad2b..18b5538 100644 --- a/makefile +++ b/makefile @@ -30,6 +30,14 @@ INST := /usr/local/bin OST := $(shell uname) CWD := $(shell pwd) +# --------------------------------------------------------------------------- # + +tdmtest : tdmtest.o + $(CC) $(OPT) $^ -o $@ + +tdmtest.o : src/test.cpp lib/$(SRC).hpp $(HPP) + $(CC) -c $(OPT) $(LIB) -I lib/ $< -o $@ + # --------------------------------------------------------------------------- # # CLI tool @@ -60,7 +68,7 @@ $(SRC).o : lib/$(SRC).cpp lib/$(SRC).hpp $(HPP) $(CC) -c $(OPT) $(LIB) $< -o $@ cpp-clean : - rm -f $(EXE) *.o src/main.cpp.cpp + rm -f $(EXE) *.o src/main.cpp.cpp tdmtest # --------------------------------------------------------------------------- # # check process diff --git a/src/test.cpp b/src/test.cpp new file mode 100644 index 0000000..82c9190 --- /dev/null +++ b/src/test.cpp @@ -0,0 +1,33 @@ +// ------------------------------------------------------------------------- // + +#include "tdm_termite.hpp" + +#include +#include +#include +#include + +// ------------------------------------------------------------------------- // + +int main(int argc, char* argv[]) +{ + std::string tdmfile(argv[1]); + std::string tdxfile(argv[2]); + + std::cout<