Created
April 21, 2018 20:36
-
-
Save dtrugman/9847f77dd17eb339f2a8e6fd44dbdcb2 to your computer and use it in GitHub Desktop.
Simple all-around CPP Makefile
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
CXX = g++ | |
SRC = $(wildcard *.cpp) | |
OBJ = $(SRC:.cpp=.o) | |
CPPFLAGS = --std=c++14 | |
LDFLAGS = | |
app: $(OBJ) | |
$(CC) $(CPPFLAGS) -o $@ $^ $(LDFLAGS) | |
.PHONY: clean | |
clean: | |
rm -f $(OBJ) app |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment