Skip to content

Instantly share code, notes, and snippets.

@damienstanton
Created October 1, 2018 19:06
Show Gist options
  • Select an option

  • Save damienstanton/53d61140e91fd0f775548df2080033e1 to your computer and use it in GitHub Desktop.

Select an option

Save damienstanton/53d61140e91fd0f775548df2080033e1 to your computer and use it in GitHub Desktop.
dsa makefile
name := $(shell basename $(CURDIR))
default: build
build:
@echo "Compiling..."
@g++ -pipe -O2 -std=c++14 *.cpp -lm -o $(name)
@echo "Done. Executable: $(name)"
clean:
@echo "Deleting $(name)"
@rm $(name)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment