Created
August 13, 2019 00:55
-
-
Save surinoel/b3d7996488a3e860f93f5bf42ee822e8 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
| .PHONY: all clean | |
| CFLAGS = -Wall -Werror -pthread | |
| TARGET = exeFile | |
| SRC = $(wildcard *.cpp) | |
| OBJ = $(SRC:.cpp=.o) | |
| all : $(TARGET) | |
| $(TARGET) : $(OBJ) | |
| $(CC) $(CFLAGS) -o $@ $^ -lrt -lstdc++ | |
| clean: | |
| rm -f *.o $(TARGET) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment