CC/communication/cpp_linux_serial/Makefile

11 lines
181 B
Makefile

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