18 lines
376 B
Makefile
18 lines
376 B
Makefile
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
|