Skip to content

Instantly share code, notes, and snippets.

@ixtli
Forked from mjc/Makefile
Created June 27, 2012 05:39
Show Gist options
  • Save ixtli/3001717 to your computer and use it in GitHub Desktop.
Save ixtli/3001717 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)
@ixtli
Copy link
Author

ixtli commented Jun 27, 2012

pi@raspberrypi:~/rpg$ make
make: *** No rule to make target "main.o', needed byrpg'. Stop.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment