Skip to content

Instantly share code, notes, and snippets.

@JotaroS
Created September 3, 2016 11:40
Show Gist options
  • Save JotaroS/31f6974866a99a085ac7b12ca4d0c644 to your computer and use it in GitHub Desktop.
Save JotaroS/31f6974866a99a085ac7b12ca4d0c644 to your computer and use it in GitHub Desktop.
Makefile for competitive programming
CC=g++
CFLAGS=-Wall
.SUFFIXES = .cpp
objs:=$(wildcard *.cpp)
targets:=$(objs:.cpp= )
.PHONY:all
all: $(targets)
.cpp:
$(CC) $(CFLAGS) -std=c++11 -o $@ $<
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment