I have the makefile code
CC = gcc
CFLAGS = -I. -g -pthread -w
DEPS = main.h
OBJ = main.o
%.o: %.c $(DEPS)
$(CC) -c -o $@ $< $(CFLAGS)
main: $(OBJ)
$(CC) -o $@ $^ $(CFLAGS)
This is for an assignment on multithreading; I have one main function in a main.c file and one main function in a randomgen.c file. I also have a main.h file and a .txt file that it can read from if any of that matters. I tried looking up what to do earlier and read about it being particular to spaces/tabs. I've tried what seems like every iteration of tabs and/or spaces and I keep getting the same problem. I also don't have a great understanding of makefiles, as it's something our professor never really explained, just kinda incorporated into assignments. Thanks for any help