Makefile:7: *** missing separator. Stop (HELP NEEDED)

24 views Asked by At

I am trying to make a Makefile but keep getting the "Makefile:7: *** missing separator. Stop" error & yes i did use tab instead of whitespaces .

My Makefile is below :

CC =gcc
CFLAGS = -I.
DEPS= prog3.h
OBJ= prog3.o

%.o: %.c $(DEPS)
    $(CC) -c -o $@ $< $(CFLAGS)

bucketsort: $(OBJ)
    $(CC) -o $@ $^
0

There are 0 answers