LIB = ../qce++/lib H = $(LIB)/qce.h words.h pgm.h A = $(LIB)/qce.a CXX = g++ -I$(LIB) -std=c++17 -pedantic -Wall -O2 # -g SRC = main.cc words.cc pgm.cc OBJ = $(SRC:.cc=.o) main: $(OBJ) Makefile $(CXX) $(OBJ) -o main $(A) -lm %.o: %.cc $(H) Makefile $(CXX) -c $< clean: rm -f a.out core $(OBJ) main TMP/* dist: clean rm -f wordle.zip cd .. && zip -rq wordle.zip wordle -x wordle/NEW mv ../wordle.zip .