Skip to content

Instantly share code, notes, and snippets.

@surinoel
Created July 18, 2019 03:17
Show Gist options
  • Save surinoel/f00b345a8b8e91f80ac7b2084c4b4d90 to your computer and use it in GitHub Desktop.
Save surinoel/f00b345a8b8e91f80ac7b2084c4b4d90 to your computer and use it in GitHub Desktop.
.PHONY: all clean
CFLAGS = -Wall -Werror -pthread
TARGET = exeFile
SRC = $(wildcard *.c)
OBJ = $(SRC:.c=.o)
all : $(TARGET)
$(TARGET) : $(OBJ)
$(CC) $(CFLAGS) -o $@ $^
clean:
rm -f *.o $(TARGET)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment