kopia lustrzana https://github.com/weetmuts/wmbusmeters
Add support to Makefile for Darwin/MacOS platform
rodzic
217f0a25fe
commit
f7b70e4c64
6
Makefile
6
Makefile
|
@ -138,6 +138,12 @@ ifeq ($(shell uname -s),FreeBSD)
|
|||
USBLIB = -lusb
|
||||
endif
|
||||
|
||||
ifeq ($(shell uname -s),Darwin)
|
||||
CXXFLAGS += -I$(shell brew --prefix)/include
|
||||
LDFLAGS += -L$(shell brew --prefix)/lib
|
||||
USBLIB = -lusb-1.0
|
||||
endif
|
||||
|
||||
$(BUILD)/%.o: src/%.cc $(wildcard src/%.h)
|
||||
$(CXX) $(CXXFLAGS) $< -c -E > $@.src
|
||||
$(CXX) $(CXXFLAGS) $< -MMD -c -o $@
|
||||
|
|
Ładowanie…
Reference in New Issue