Skip to content

Instantly share code, notes, and snippets.

@dtrugman
Created April 21, 2018 20:36
Show Gist options
  • Save dtrugman/9847f77dd17eb339f2a8e6fd44dbdcb2 to your computer and use it in GitHub Desktop.
Save dtrugman/9847f77dd17eb339f2a8e6fd44dbdcb2 to your computer and use it in GitHub Desktop.
Simple all-around CPP Makefile
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