Skip to content

Instantly share code, notes, and snippets.

@spaghetti-
Created August 18, 2012 16:08
Show Gist options
  • Save spaghetti-/3388026 to your computer and use it in GitHub Desktop.
Save spaghetti-/3388026 to your computer and use it in GitHub Desktop.
simplest of makefiles
CC=gcc
CFLAGS=-Wall
BIN=alice
SRC=$(wildcard src/*.c)
all:
$(CC) $(CFLAGS) $(SRC) -o $(BIN)
clean:
rm $(BIN)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment