Created
July 3, 2019 16:16
-
-
Save Utshaw/ef70b2772f9d62cd9eafd6a529d09284 to your computer and use it in GitHub Desktop.
makefile for cpp
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
CC=g++ | |
CFLAGS=-Wall -std=c++14 | |
make: make.cpp | |
$(CC) $(CFLAGS) make.cpp -o make.o && ./make.o | |
1.o: 1.cpp | |
$(CC) $(CFLAGS) 1.cpp -o 1.o && ./1.o | |
2.o: 2.cpp | |
$(CC) $(CFLAGS) 2.cpp -o 2.o && ./2.o | |
3.o: 3.cpp | |
$(CC) $(CFLAGS) 3.cpp -o 3.o && ./3.o | |
4.o: 4.cpp | |
$(CC) $(CFLAGS) 4.cpp -o 4.o && ./4.o | |
5.o: 5.cpp | |
$(CC) $(CFLAGS) 5.cpp -o 5.o && ./5.o && rm -rf main *.o test | |
6.o: 6.cpp | |
$(CC) $(CFLAGS) 6.cpp -o 6.o && ./6.o && rm -rf main *.o test | |
7.o: 7.cpp | |
$(CC) $(CFLAGS) 7.cpp -o 7.o && ./7.o && rm -rf main *.o test | |
8.o: 8.cpp | |
$(CC) $(CFLAGS) 8.cpp -o 8.o && ./8.o && rm -rf main *.o test | |
clear: | |
rm -rf main *.o test |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment