all: libcppbuild.a SRC = \ libcppbuild.cc \ task_cc.cc \ task_ld.cc \ execute.cc \ OBJ = $(patsubst %.cc,%.o,$(SRC)) CXXFLAGS = -s -O3 -std=c++17 %.o: %.cc g++ $(CXXFLAGS) -c $< -o $@ libcppbuild.a: $(OBJ) ar rcs $@ $(OBJ) clean: rm -f libcppbuild.a $(OBJ)