1
0
mirror of https://github.com/wjwwood/serial.git synced 2026-01-22 11:44:53 +08:00
serial/serial.makefile
2012-01-07 15:24:30 -06:00

33 lines
527 B
Makefile

all: serial
install:
cd build && make install
uninstall:
cd build && make uninstall
serial:
@mkdir -p build
-mkdir -p bin
cd build && cmake $(CMAKE_FLAGS) ..
ifneq ($(MAKE),)
cd build && $(MAKE)
else
cd build && make
endif
clean:
-cd build && make clean
rm -rf build bin lib
.PHONY: test
test:
@mkdir -p build
@mkdir -p bin
cd build && cmake $(CMAKE_FLAGS) -DSERIAL_BUILD_TESTS=1 -DSERIAL_BUILD_EXAMPLES=1 ..
ifneq ($(MAKE),)
cd build && $(MAKE)
else
cd build && make
endif
cd bin && ./serial_listener_tests