what's wrong with my makefile?
CC = gcc OBJS = main.o map.o extended_map.o election.o utilities.o EXEC = election DEBUG_FLAG = -DNDEBUG COMP_FLAG = -std=c99 -Wall -pedantic-errors -Werror $(EXEC) : $(OBJS) $(CC) $(DEBUG_FLAG) $(OBJS) -o $@ main.o: main.c map.h election.h test_utilities.h $(CC) -c $(DEBUG_FLAG) $(COMP_FLAG) $*.c map.o: map.c map.h utilities.h $(CC) -c $(DEBUG_FLAG) $(COMP_FLAG) $*.c extended_map.o: extended_map.c extended_map.h map.h utilities.h $(CC) -c $(DEBUG_FLAG) $(COMP_FLAG) $*.c election.o: election.c election.h map.h extended_map.h utilities.h $(CC) -c $(DEBUG_FLAG) $(COMP_FLAG) $*.c utilities.o: utilities.c utilities.h $(CC) -c $(DEBUG_FLAG) $(COMP_FLAG) $*.c clean: rm -f $(OBJS) $(EXEC) I am running the following command on linux:
-bash-4.2$ ls election.c extended_map.c main.c makefile mtm_map utilities.c election.h extended_map.h main.o map.h test_utilities.h utilities.h -bash-4.2$ make make: *** No rule to make target `map.c', needed by `map.o'. Stop. -bash-4.2$ map.c exists inside a folder named mtm_map inside the current folder
map.cto be in the current folder, not a subdirectory.