# # sample Makefile for gcc, g++ # # usage examples: # "make hello" to compile "hello.c" to "hello", "hello.cpp" to "hello" # OPT = -O CC = gcc CFLAGS = -Wall -pedantic -std=c99 $(OPT) CXX = g++ CXXFLAGS = -Wall -pedantic -std=c++11 $(OPT)