My project is organised in a folder
myproj/
src/
main.c
inc/
main.h
makefile
I have in my C files
#include <main.h>
and in my makefile i have
INCLUDE = /inc
SOURCE = src/
compile:
$(CC) -I$(INCLUDE) $(CFLAGS) $(SRCPATH)main.c -o myapp $(LIBS)
myapp:
$(CC) -I$(INCLUDE) $(FLG_LIB) -o myapp main.c
but i get - fatal error: No such file or directory.
i also tried "main.h", but of no use.