I'm having some trouble grasping the concept of a Makefile. I'm coding a project in C and I have two .c files that need to be compiled together in order to run the program. I went over some of the concepts with some other people but am still having trouble grasping the concept of Makefiles. This is what I have.
Makefile:
hs.c:
gcc -o hs hs_util.c hs.c
hs.c is dependent on hs_util.c's functions in order to accomplish tasks. I know this because the header file from hs_util is included...
in hs.c:
#include "hs_util.h"
#include "hs_config.h"
in hs_util.c
#include "hs_config.h"
#include "hs_util.h"
when I run the "make" command, it says "make: 'hs.c' is up to date." which is great, but the hs file isn't being created. What am I doing wrong?