Skip to content

Instantly share code, notes, and snippets.

@mjc
Created June 27, 2012 03:56
Show Gist options
  • Save mjc/3001304 to your computer and use it in GitHub Desktop.
Save mjc/3001304 to your computer and use it in GitHub Desktop.
Example Q&D makefile. untested.
CFLAGS="-g -Wall"
DEPS="foo.o bar.o baz.o"
TARGET=progname
.PHONY: clean all
$(TARGET): $(DEPS)
$(CXX) -o $(TARGET) $(CFLAGS) $(CXXFLAGS) $(DEPS)
clean:
rm $(TARGET) $(DEPS)
all: $(TARGET)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment