2009-12-20 13:29:09 -05:00
|
|
|
all: libwpadbus.a
|
|
|
|
|
|
|
|
clean:
|
2013-11-24 12:16:12 -05:00
|
|
|
rm -f *~ *.o *.d *.gcno *.gcda *.gcov
|
2009-12-20 13:29:09 -05:00
|
|
|
rm -f libwpadbus.a
|
|
|
|
|
|
|
|
install:
|
|
|
|
@echo Nothing to be made.
|
|
|
|
|
|
|
|
ifndef CC
|
|
|
|
CC=gcc
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifndef CFLAGS
|
|
|
|
CFLAGS = -MMD -O2 -Wall -g
|
|
|
|
endif
|
|
|
|
|
2011-07-04 13:35:38 -04:00
|
|
|
PKG_CONFIG ?= pkg-config
|
2009-12-20 13:29:09 -05:00
|
|
|
CFLAGS += -I../../src -I../../src/utils
|
|
|
|
|
|
|
|
|
|
|
|
Q=@
|
|
|
|
E=echo
|
|
|
|
ifeq ($(V), 1)
|
|
|
|
Q=
|
|
|
|
E=true
|
|
|
|
endif
|
|
|
|
|
|
|
|
%.o: %.c
|
|
|
|
$(Q)$(CC) -c -o $@ $(CFLAGS) $<
|
|
|
|
@$(E) " CC " $<
|
|
|
|
|
|
|
|
|
2009-12-20 14:04:40 -05:00
|
|
|
ifdef CONFIG_WPS
|
|
|
|
CFLAGS += -DCONFIG_WPS
|
|
|
|
endif
|
|
|
|
|
2009-12-20 13:29:09 -05:00
|
|
|
CFLAGS += -DCONFIG_CTRL_IFACE_DBUS_NEW
|
|
|
|
|
|
|
|
ifndef DBUS_LIBS
|
2011-07-04 13:35:38 -04:00
|
|
|
DBUS_LIBS := $(shell $(PKG_CONFIG) --libs dbus-1)
|
2009-12-20 13:29:09 -05:00
|
|
|
endif
|
|
|
|
ifndef DBUS_INCLUDE
|
2011-07-04 13:35:38 -04:00
|
|
|
DBUS_INCLUDE := $(shell $(PKG_CONFIG) --cflags dbus-1)
|
2009-12-20 13:29:09 -05:00
|
|
|
endif
|
|
|
|
ifdef CONFIG_CTRL_IFACE_DBUS_INTRO
|
|
|
|
CFLAGS += -DCONFIG_CTRL_IFACE_DBUS_INTRO
|
|
|
|
DBUS_INCLUDE += $(shell xml2-config --cflags)
|
|
|
|
DBUS_LIBS += $(shell xml2-config --libs)
|
|
|
|
endif
|
|
|
|
|
|
|
|
CFLAGS += $(DBUS_INCLUDE)
|
|
|
|
|
|
|
|
LIB_OBJS= \
|
2009-12-31 14:55:32 -05:00
|
|
|
dbus_common.o \
|
2009-12-20 14:11:35 -05:00
|
|
|
dbus_new.o \
|
|
|
|
dbus_new_handlers.o \
|
|
|
|
dbus_new_helpers.o \
|
2010-01-01 07:03:00 -05:00
|
|
|
dbus_new_introspect.o \
|
2009-12-20 13:29:09 -05:00
|
|
|
dbus_dict_helpers.o
|
|
|
|
|
2009-12-20 14:04:40 -05:00
|
|
|
ifdef CONFIG_WPS
|
|
|
|
LIB_OBJS += dbus_new_handlers_wps.o
|
|
|
|
endif
|
|
|
|
|
2009-12-20 13:29:09 -05:00
|
|
|
libwpadbus.a: $(LIB_OBJS)
|
|
|
|
$(AR) crT $@ $?
|
|
|
|
|
|
|
|
-include $(OBJS:%.o=%.d)
|