8 @echo Nothing to be made.
15 CFLAGS
= -MMD
-O2
-Wall
-g
18 CFLAGS
+= -I..
/..
/src
-I..
/..
/src
/utils
29 $(Q
)$(CC
) -c
-o
$@
$(CFLAGS
) $<
34 CFLAGS
+= -DCONFIG_WPS
37 CFLAGS
+= -DCONFIG_CTRL_IFACE_DBUS_NEW
38 CFLAGS
+= -DCONFIG_CTRL_IFACE_DBUS
41 DBUS_LIBS
:= $(shell pkg-config
--libs dbus-1
)
44 DBUS_INCLUDE
:= $(shell pkg-config
--cflags dbus-1
)
46 ifdef CONFIG_CTRL_IFACE_DBUS_INTRO
47 CFLAGS
+= -DCONFIG_CTRL_IFACE_DBUS_INTRO
48 DBUS_INCLUDE
+= $(shell xml2-config
--cflags)
49 DBUS_LIBS
+= $(shell xml2-config
--libs
)
52 dbus_version
=$(subst .
, ,$(shell pkg-config
--modversion dbus-1
))
53 DBUS_VERSION_MAJOR
=$(word 1,$(dbus_version
))
54 DBUS_VERSION_MINOR
=$(word 2,$(dbus_version
))
55 ifeq ($(DBUS_VERSION_MAJOR
),)
58 ifeq ($(DBUS_VERSION_MINOR
),)
61 DBUS_INCLUDE
+= -DDBUS_VERSION_MAJOR
=$(DBUS_VERSION_MAJOR
)
62 DBUS_INCLUDE
+= -DDBUS_VERSION_MINOR
=$(DBUS_VERSION_MINOR
)
64 CFLAGS
+= $(DBUS_INCLUDE
)
73 dbus_new_introspect.o \
77 LIB_OBJS
+= dbus_old_handlers_wps.o
78 LIB_OBJS
+= dbus_new_handlers_wps.o
81 libwpadbus.a
: $(LIB_OBJS
)
84 -include $(OBJS
:%.o
=%.d
)