diff --git a/tensor_t/Makefile b/tensor_t/Makefile new file mode 100644 index 0000000..5863173 --- /dev/null +++ b/tensor_t/Makefile @@ -0,0 +1,54 @@ + +CC=gcc +TOOLDIR=$(PWD)/../ytools_t +PERMDIR=$(PWD)/../ypermutation_t + +INCLUDE_PERMDIR=$(PERMDIR)/src +INCLUDE_TOOLDIR=$(TOOLDIR)/include +CFLAGS=-I$(INCLUDE_TOOLDIR) -I$(INCLUDE_PERMDIR) -I./src + +#SRC_DIR=$(ROOT_DIR)/src +#SRC=$(wildcard */*/*.c) +#HEADS=$(OBJS:.o=.h) + + + +DIMSRC=src/dimension_t/dimension_t.c +DIMSRC_O=$(DIMSRC:.c=.o) + +PERMSRC_O=$(PERMDIR)/src/permutation_t/permutation_t.o + +#TOOLSRC_O=$(TOOLDIR)/src/tools_t/tools_t.o +#TOOLSRC=$(TOOLDIR)/src/tools_t/tools_t.c +#TOOLSRC_O=$(TOOLSRC:.c=.o) + +#SRC=$(wildcard **/**/*.c) +#OBJ=$(SRC:.c=.o) #$(TOOLSRC_O) + +TOPTARGETS := all clean +DEP=$(PERMDIR) + +$(TOPTARGETS): $(DEP) + +all: $(DIMSRC_O) + + +$(DIMSRC_O) : $(DIMSRC) $(PERMSRC_O) + $(CC) -o $@ -c $< $(CFLAGS) + +$(DEP): + $(MAKE) -C $@ $(MAKECMDGOALS) + +#$(TOOLSRC_O): $(TOOLSRC) +# $(CC) -o $@ -c $< $(CFLAGS) + +.PHONY: clean mrproper + +clean: + rm -f $(OBJ) + +mrproper: clean + rm -f $(EXEC) + +run: $(EXEC) + $(EXEC) -h diff --git a/tensor_t/src/tensor_t/tensor_t.c b/tensor_t/src/tensor_t/tensor_t.c new file mode 100644 index 0000000..3739e0b --- /dev/null +++ b/tensor_t/src/tensor_t/tensor_t.c @@ -0,0 +1,3 @@ +#include "tensor_t/tensor_t.h" + + diff --git a/tensor_t/src/tensor_t/tensor_t.h b/tensor_t/src/tensor_t/tensor_t.h new file mode 100644 index 0000000..85163f4 --- /dev/null +++ b/tensor_t/src/tensor_t/tensor_t.h @@ -0,0 +1,8 @@ +#ifndef __TENSOR_T__H__ +#define __TENSOR_T__H__ + +#include "dimension_t/dimension_t.h" + + + +#endif /* __TENSOR_T__H__ */