kopia lustrzana https://github.com/weetmuts/wmbusmeters
Merge pull request #1005 from bordeux/master
Add support to Makefile for Darwin/MacOS platformpull/1013/head
commit
765f38cdc4
5
Makefile
5
Makefile
|
@ -138,6 +138,11 @@ 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
|
||||
endif
|
||||
|
||||
$(BUILD)/%.o: src/%.cc $(wildcard src/%.h)
|
||||
$(CXX) $(CXXFLAGS) $< -c -E > $@.src
|
||||
$(CXX) $(CXXFLAGS) $< -MMD -c -o $@
|
||||
|
|
Ładowanie…
Reference in New Issue