-
-
Save ixtli/3001717 to your computer and use it in GitHub Desktop.
Example Q&D makefile. untested.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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) |
Author
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
pi@raspberrypi:~/rpg$ make
make: *** No rule to make target
"main.o', needed byrpg'. Stop.