|
|
@@ -42,6 +42,7 @@ DEFS = -D_GNU_SOURCE |
|
|
|
CFLAGS = $(DEBUG) $(DEFS) -Wformat=2 -Wall -Wextra -Winline $(INCLUDE) -pipe -fPIC $(EXTRA_CFLAGS) |
|
|
|
#CFLAGS = $(DEBUG) $(DEFS) -Wformat=2 -Wall -Wextra -Wconversion -Winline $(INCLUDE) -pipe -fPIC |
|
|
|
|
|
|
|
LDFLAGS ?= -L/usr/local/lib |
|
|
|
LIBS = -lm -lpthread -lrt -lcrypt |
|
|
|
|
|
|
|
############################################################################### |
|
|
@@ -75,7 +76,7 @@ static: |
|
|
|
|
|
|
|
$(DYNAMIC): $(OBJ) |
|
|
|
$Q echo "[Link (Dynamic)]" |
|
|
|
$Q $(CC) -shared -Wl,-soname,libwiringPi.so$(WIRINGPI_SONAME_SUFFIX) -o libwiringPi.so.$(VERSION) $(OBJ) $(LIBS) |
|
|
|
$Q $(CC) -shared -Wl,-soname,libwiringPi.so$(WIRINGPI_SONAME_SUFFIX) -o libwiringPi.so.$(VERSION) $(OBJ) $(LDFLAGS) $(LIBS) |
|
|
|
|
|
|
|
.c.o: |
|
|
|
$Q echo [Compile] $< |
|
|
|