| #------------------------------------------------ |
| # Copyright (c) 2012 Qualcomm Atheros, Inc.. |
| # All Rights Reserved. |
| # Qualcomm Atheros Confidential and Proprietary. |
| #------------------------------------------------ |
| -include .config
|
|
|
| LDFLAGS += $(shell pkg-config --cflags --libs glib-2.0)
|
|
|
| CC :=$(ATH_CROSS_COMPILE_TYPE)gcc
|
| APP=wmiconfig
|
|
|
| NLLIBNAME = libnl-1
|
| LIBTCMD_DIR := ../libtcmd
|
| |
| PREFIX ?= /usr |
| SBINDIR ?= $(PREFIX)/sbin |
| INSTALL ?= install |
| |
|
|
| override LDFLAGS += -ltcmd $(shell pkg-config --libs $(NLLIBNAME)) -lrt |
| override CFLAGS += $(shell pkg-config --cflags $(NLLIBNAME)) -I$(LIBTCMD_DIR) -L$(LIBTCMD_DIR)
|
| all:
|
| $(CC) -Wall -DUSER_KEYS -g -I$(KERNEL_SRC)/include -Iinclude wmiconfig.c -o $(APP) $(CFLAGS) $(LDFLAGS) |
| |
| install: wmiconfig |
| install -m 755 wmiconfig $(DESTDIR)$(SBINDIR) |
| |
|
|
| clean:
|
| $(RM) $(APP)
|