Created
October 16, 2018 21:37
-
-
Save fxfactorial/a363c9cecacedf2bf249d8b8d3dd953a to your computer and use it in GitHub Desktop.
great makefile
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
CC := clang | |
CFLAGS := -Wall -ggdb | |
src = $(wildcard *.c) | |
obj = $(src:.c=.o) | |
LDFLAGS = -fsanitize=address | |
myprog: $(obj) | |
$(CC) -o $@ $^ $(LDFLAGS) | |
.PHONY: clean | |
clean: | |
rm -f $(obj) myprog |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment