diff options
Diffstat (limited to 'package/network/utils/iwinfo/src/Makefile')
-rw-r--r-- | package/network/utils/iwinfo/src/Makefile | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/package/network/utils/iwinfo/src/Makefile b/package/network/utils/iwinfo/src/Makefile index 572bef9f97..60341f7c2b 100644 --- a/package/network/utils/iwinfo/src/Makefile +++ b/package/network/utils/iwinfo/src/Makefile @@ -1,5 +1,6 @@ IWINFO_BACKENDS = $(BACKENDS) IWINFO_CFLAGS = $(CFLAGS) -std=gnu99 -fstrict-aliasing -Iinclude +IWINFO_LDFLAGS = -luci IWINFO_LIB = libiwinfo.so IWINFO_LIB_LDFLAGS = $(LDFLAGS) -shared @@ -36,9 +37,9 @@ endif $(CC) $(IWINFO_CFLAGS) $(FPIC) -c -o $@ $< compile: clean $(IWINFO_LIB_OBJ) $(IWINFO_LUA_OBJ) $(IWINFO_CLI_OBJ) - $(CC) $(IWINFO_LIB_LDFLAGS) -o $(IWINFO_LIB) $(IWINFO_LIB_OBJ) - $(CC) $(IWINFO_LUA_LDFLAGS) -o $(IWINFO_LUA) $(IWINFO_LUA_OBJ) - $(CC) $(IWINFO_CLI_LDFLAGS) -o $(IWINFO_CLI) $(IWINFO_CLI_OBJ) + $(CC) $(IWINFO_LDFLAGS) $(IWINFO_LIB_LDFLAGS) -o $(IWINFO_LIB) $(IWINFO_LIB_OBJ) + $(CC) $(IWINFO_LDFLAGS) $(IWINFO_LUA_LDFLAGS) -o $(IWINFO_LUA) $(IWINFO_LUA_OBJ) + $(CC) $(IWINFO_LDFLAGS) $(IWINFO_CLI_LDFLAGS) -o $(IWINFO_CLI) $(IWINFO_CLI_OBJ) clean: rm -f *.o $(IWINFO_LIB) $(IWINFO_LUA) $(IWINFO_CLI) |