Browse Source

make it clang buildable

master
squeaky otter 5 months ago
parent
commit
92cc7f5d5b
  1. 4
      Makefile
  2. 12
      README.md

4
Makefile

@ -17,10 +17,10 @@ INC_FLAGS := $(addprefix -I,$(INC_DIRS))
FLAGS_LIBSERIALPORT = $(shell pkg-config --cflags libserialport)
LIBS_LIBSERIALPORT = $(shell pkg-config --libs libserialport)
CPPFLAGS ?= $(INC_FLAGS) -MMD -MP $(FLAGS_LIBSERIALPORT) -DLOG_USE_COLOR -O0 -ggdb -fno-inline
CPPFLAGS ?= $(INC_FLAGS) -MMD -MP $(FLAGS_LIBSERIALPORT) -DLOG_USE_COLOR -O0 -ggdb -fno-inline
$(TARGET): $(OBJS)
$(CC) $(LDFLAGS) $(OBJS) -o $@ $(LOADLIBES) $(LDLIBS) $(LIBS_LIBSERIALPORT)
$(CC) $(LDFLAGS) $(OBJS) -o $@ -lstdc++ $(LOADLIBES) $(LDLIBS) $(LIBS_LIBSERIALPORT)
.PHONY: clean
clean:

12
README.md

@ -15,6 +15,18 @@ git submodule init
git submodule update
```
## Build
Using GCC:
```
make
```
Using Clang:
```
make CC=clang++ CXX=clang++
```
## Features
### Working

Loading…
Cancel
Save