how to tell more than one include folders to the compiler
Makefile :
CC = gcc
CFLAGS = -I../include
HVFUTILCFLAGS = -I/home/empress/HamVeriFeeder/hvfutil/include/
all: HVFE.o RdbMapping.o BUFR_Encoder.o
clean:
rm -f BUFR_Encoder.o HVFE.o RdbMapping.o ../lib/libhvfe.a *.bufr *.dat
BUFRENCODER_CFLAGS = $(CFLAGS) $(HVFUTILCFLAGS)
BUFR_Encoder: BUFR_Encoder.o
$(CC) -g -c BUFR_Encoder.c $(BUFRENCODER_CFLAGS)
HVFE: HVFE.o
$(CC) -g -c HVFE.c $(CFLAGS)
RdbMapping: RdbMapping.o
$(CC) -g -c RdbMapping.c $(CFLAGS)
when i make it says:
gcc -I../include -c -o BUFR_Encoder.o BUFR_Encoder.c
BUFR_Encoder.c:15:23: ArrayUtil.h: No such file or directory
make: *** [BUFR_Encoder.o] Error 1
BUFR_Encoder.c could not be compiled, because an included header(ArrayUtil.h) cannot be found.
why doesn't it see the HVFUTILCFLAGS?
thanx.