This repository has been archived on 2021-11-25. You can view files and clone it, but cannot push or open issues or pull requests.
ConsoleUI/makefile
2017-05-14 17:47:33 +08:00

13 lines
347 B
Makefile

CXXFLAGS = -Wall -O2 -std=c++14
lib:
mkdir obj
$(CXX) $(CXXFLAGS) -c ConsoleUI/CUI.cpp -o obj/CUI.o
$(CXX) $(CXXFLAGS) -c ConsoleUI/ColorUI.cpp -o obj/ColorUI.o
test: lib
$(CXX) $(CXXFLAGS) -c example.cpp -o obj/example.o
mkdir bin
$(CXX) $(CXXFLAGS) -o bin/test.exe obj/CUI.o obj/ColorUI.o obj/example.o -s
clean:
rm -rf obj
rm -rf bin