Skip to content

Instantly share code, notes, and snippets.

@surinoel
Created July 14, 2019 13:16
Show Gist options
  • Save surinoel/0f0f3b90fd3dd81a72b8782a738512b3 to your computer and use it in GitHub Desktop.
Save surinoel/0f0f3b90fd3dd81a72b8782a738512b3 to your computer and use it in GitHub Desktop.
.PHONY: all clean
SRCS = $(wildcard *.c)
PROGS = $(patsubst %.c,%,$(SRCS))
CFLAGS = -Wall -Werror -pthread
all: $(PROGS)
%: %.c
$(CC) $(CFLAGS) -o $@ $< -lrt
clean:
rm -f $(PROGS)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment