From 7813f13501bbec22af8fa2a863293c1bec3acd49 Mon Sep 17 00:00:00 2001 From: hasslesstech Date: Mon, 14 Oct 2024 14:12:36 +0300 Subject: [PATCH] add Makefile --- Makefile | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 Makefile diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..ca42fd8 --- /dev/null +++ b/Makefile @@ -0,0 +1,17 @@ +CPPCOMPILER = g++ +CPPFLAGS = -O3 -Wall +CPPFLAGS = -static +INCLUDE_DIRS = -I lib/ + +all: src/main.cpp + +src/main.cpp: lib/printer.cpp.o + $(CPPCOMPILER) $(INCLUDE_DIRS) $(CPPFLAGS) -o main src/main.cpp lib/printer.cpp.o + +lib/printer.cpp.o: lib/printer.cpp + $(CPPCOMPILER) $(INCLUDE_DIRS) $(CPPFLAGS) -c -o lib/printer.cpp.o lib/printer.cpp + +clean: + rm main **/*.o + +.PHONY : clean