Code:
hellomake: hellomake.c hellofunc.c hellomake.h
gcc -o hellomake hellomake.c hellofunc.c -I.
thats the makefile and here are the files
Code:
#include "hellomake.h"
#include<stdio.h>
void myPrintHelloMake(void) {
printf("Hello makefiles!\n");
return;
}
hellomake.h
Code:
/*
example include file
*/
void myPrintHelloMake(void);
Code:
#include <stdio.h>
int main() {
// call a function in another file
myPrintHelloMake();
return(0);
}
last one is hellomake.c
I am typing in make and it says no makefile found