I keep getting this error while I try to run the code on my raspberry pi, I dont know what has caused this:
CC = gcc
CFLAGS = -Wall -O0 -std=gnu99 -I/usr/local/include -g
LDFLAGS = -L/usr/local/lib -pthread -lm -lwiringPi
FUSEFLAGS = `pkg-config fuse --cflags --libs`
SOURCES = $(wildcard *.c)
PROGS = $(patsubst %.c,%,$(SOURCES))
BINS = $(SOURCES:.c=)
all: $(PROGS)
%: %.c
$(CC) $< $(CFLAGS) $(LDFLAGS) -o $@ $(FUSEFLAGS)
clean:
$(RM) *.o *.a $(BINS)
this gives the following error:
Makefile:14: *** missing separator. Stop.
when I use make
to run my code. my make was working before I am not sure what has caused this happend all the sudden!