I have followed Solar's makefile tutorial on the wiki which was extremely useful (up to now, I had been adding each object file separately).
One question with the automation side though. How can I make it so that all my objects are compiled in a single directory? I'll show you the problem:
Code: Select all
OBJFILES := $(patsubst %.c,%.o,$(SRCFILES))
Code: Select all
OBJFILES := $(patsubst c/%.c,obj/%.o,$(SRCFILES))
Any help from anyone more familiar with makefiles is appreciated!
Cheers,
Adam