Browse Source

make it clang buildable

master
squeaky otter 2 months ago
parent
commit
92cc7f5d5b
2 changed files with 14 additions and 2 deletions
  1. +2
    -2
      Makefile
  2. +12
    -0
      README.md

+ 2
- 2
Makefile View File

@ -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
- 0
README.md View File

@ -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