add Makefile

This commit is contained in:
ІО-23 Шмуляр Олег 2024-10-14 14:12:36 +03:00
parent e89b1ff2a4
commit 7813f13501
Signed by: hasslesstech
GPG Key ID: 09745A46126DDD4C
1 changed files with 17 additions and 0 deletions

17
Makefile Normal file
View File

@ -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