Skip to content

Instantly share code, notes, and snippets.



Created Dec 20, 2015
What would you like to do?
.PHONY: depend clean
all: $(MAIN)
@echo Polymorph binary has been compiled
$(MAIN): $(OBJS)
# this is a suffix replacement rule for building .o's from .c's
# it uses automatic variables $<: the name of the prerequisite of
# the rule(a .c file) and $@: the name of the target of the rule (a .o file)
# (see the gnu make manual section about automatic variables)
$(CXX) $(CXXFALGS) $(INCLUDES) -c $< -o $@
$(RM) *.o *~ $(MAIN)
depend: $(SRCS)
makedepend $(INCLUDES) $^
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.