CFLAGS=-O3 all: main main: isEven.o main.o @clang++ main.o isEven.o -lstdc++ --output main ${CFLAGS} isEven.s: isEven.cpp @clang++ $< -S -masm=intel ${CFLAGS} .PHONY: run run: main ./main .PHONY: build-assembly build-assembly: isEven.s main.o: isEven.h %.o: %.cpp @clang++ -o $@ -c $< ${CFLAGS} .PHONY: clean clean: @rm -rf *.s *.o main