Skip to content

Instantly share code, notes, and snippets.

View jacksonhorton's full-sized avatar

Jackson Horton jacksonhorton

View GitHub Profile
@jacksonhorton
jacksonhorton / makefile
Created October 12, 2022 02:39
Makefile for a main.cpp file with one class header/implementation dependency
# This makefile is for a main file with one external header and implementation file (.h/.cpp)
## Variables
# target is the name of the binary executable
TARGET=main
# class is the name of the class to include in the target.cpp file
CLASS=Vector
# compiler is g++
CC=g++
# compile with all warnings and extras
CFLAGS=-g -Wall -Wextra