Skip to content

Instantly share code, notes, and snippets.


jiripospisil/Makefile Secret

Created Mar 16, 2014
What would you like to do?
CC = clang
CFLAGS = -Weverything
SRC = hello.c
OBJ = $(SRC:.c=.o)
hello: $(OBJ)
$(CC) -o $@ $^
%.o: %.c
$(CC) $(CFLAGS) -c $< -o $@
all: hello
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.