PROGRAM = serial_test CC = g++ -O2 HEADER = -I./3rdparty/CppLinuxSerial/include all: $(PROGRAM) $(PROGRAM): cc $(HEADER) main.cpp SerialPort.o -o $@ -lstdc++ .PHONY: $(PROGRAM)