Hello guys,
I may have to read about Makefiles quite some more, but I would like at least at hint at what to read about the following behavior at my Makefile:
I have this as my Makefile:
PHP Code:
# Makefile for the SRC folder.
include ../makefile_set.inc
all: double
DOUBLE = \
c_mtk_double_crs_sparse_matrix_array_print.o \
c_mtk_double_crs_sparse_matrix_block_print.o \
c_mtk_double_crs_sparse_matrix_create_from_1d_array.o \
c_mtk_tool_manager_abort.o \
c_mtk_double_crs_sparse_matrix_free.o \
c_mtk_double_ccs_sparse_matrix_create_from_1d_array.o \
c_mtk_double_ccs_sparse_matrix_array_print.o \
c_mtk_double_ccs_sparse_matrix_free.o \
c_mtk_double_ccs_sparse_matrix_block_print.o
double: $(DOUBLE)
@echo -e '----- Compiling the types in double precision: Done!\n'
BUT, when I execute
make I get the following:
Code:
ejspeiro@citadel:~/Dropbox/Public/mtk/trunk/cmtk-v1.0/src$ make
cc -c -o c_mtk_double_crs_sparse_matrix_array_print.o c_mtk_double_crs_sparse_matrix_array_print.c
But HOW? How does my makefile knows that it should execute that particular method for compiling... my problem is that I'm trying to define my own, but I will keep doing that one!
Thanks in advanced!