Skip to content

Instantly share code, notes, and snippets.

@epidemicz
Created August 23, 2022 03:32
Show Gist options
  • Save epidemicz/7c41ee3a320273e7bb44bb86452f65bf to your computer and use it in GitHub Desktop.
Save epidemicz/7c41ee3a320273e7bb44bb86452f65bf to your computer and use it in GitHub Desktop.
A dead simple makefile that just works
CC = gcc
CFLAGS = -Wall -Og
RM = rm -f
ARGS = myfile.txt
default: all
all: main
main: main.c
$(CC) $(CFLAGS) -o main main.c
main.exe $(ARGS)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment