瀏覽代碼

Add option to have a custom lib path for output library

pull/57/head
devbharat 7 年之前
父節點
當前提交
28567e416f
共有 1 個檔案被更改,包括 2 行新增2 行删除
  1. +2
    -2
      wiringPi/Makefile

+ 2
- 2
wiringPi/Makefile 查看文件

@@ -32,7 +32,7 @@ Q ?= @
endif

STATIC=libwiringPi.a
DYNAMIC=libwiringPi.so.$(VERSION)
DYNAMIC=$(LIB_PATH)libwiringPi.so.$(VERSION)

#DEBUG = -g -O0
DEBUG = -O2
@@ -78,7 +78,7 @@ $(STATIC): $(OBJ)

$(DYNAMIC): $(OBJ)
$Q echo "[Link (Dynamic)]"
$Q $(CC) -shared -Wl,-soname,libwiringPi.so$(WIRINGPI_SONAME_SUFFIX) -o libwiringPi.so.$(VERSION) $(LIBS) $(OBJ)
$Q $(CC) -shared -Wl,-soname,libwiringPi.so$(WIRINGPI_SONAME_SUFFIX) -o $@ $(LIBS) $(OBJ)

.c.o:
$Q echo [Compile] $<


Loading…
取消
儲存