Creating my own makefile [Error 255]
问题 I have been enjoying the luxury of coding with an IDE that writes my makefile's for me, Iv decided that I have been 'short cutting' for far to long, so I have read a few manuals and watched a few videos on makefiles and have a makefile semi-done, the only trouble that I'm having is I'm not sure how to link libraries. CPPS := $(shell ls src/*cpp) TEMP := $(subst src/,obj/,$(CPPS)) OBJS := $(subst .cpp,.o,$(TEMP)) HEADERS := $(shell ls inc/*.h) EXEC := bin/testfile all: $(EXEC) $(EXEC) : $(OBJS