Skip to content

Instantly share code, notes, and snippets.

@pgeorgan
Created November 5, 2015 02:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pgeorgan/7001d89e45600ffbfaef to your computer and use it in GitHub Desktop.
Save pgeorgan/7001d89e45600ffbfaef to your computer and use it in GitHub Desktop.
all:hf_compiler
CPPFLAGS+=-std=c++11 -Wall -pedantic
CPPFLAGS+=-g -O2
CPPFLAGS+=-pthread
%.o:%.cpp
$(CXX) $(CPPFLAGS) $< -c -o $@
hf_compiler: $(patsubst %.cpp,%.o,$(wildcard *.cpp))
$(CXX) $(CPPFLAGS) $^ -o $@ $(LDFLAGS)
-include .depends
.depends: $(wildcard *.cpp)
$(CXX) $(CPPFLAGS) -M $^ > $@
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment