1d4f2939cSRui Pauloall: libwpadbus.a 2d4f2939cSRui Paulo 3d4f2939cSRui Pauloclean: 4*5b9c547cSRui Paulo rm -f *~ *.o *.d *.gcno *.gcda *.gcov 5d4f2939cSRui Paulo rm -f libwpadbus.a 6d4f2939cSRui Paulo 7d4f2939cSRui Pauloinstall: 8d4f2939cSRui Paulo @echo Nothing to be made. 9d4f2939cSRui Paulo 10d4f2939cSRui Pauloifndef CC 11d4f2939cSRui PauloCC=gcc 12d4f2939cSRui Pauloendif 13d4f2939cSRui Paulo 14d4f2939cSRui Pauloifndef CFLAGS 15d4f2939cSRui PauloCFLAGS = -MMD -O2 -Wall -g 16d4f2939cSRui Pauloendif 17d4f2939cSRui Paulo 18d4f2939cSRui PauloPKG_CONFIG ?= pkg-config 19d4f2939cSRui PauloCFLAGS += -I../../src -I../../src/utils 20d4f2939cSRui Paulo 21d4f2939cSRui Paulo 22d4f2939cSRui PauloQ=@ 23d4f2939cSRui PauloE=echo 24d4f2939cSRui Pauloifeq ($(V), 1) 25d4f2939cSRui PauloQ= 26d4f2939cSRui PauloE=true 27d4f2939cSRui Pauloendif 28d4f2939cSRui Paulo 29d4f2939cSRui Paulo%.o: %.c 30d4f2939cSRui Paulo $(Q)$(CC) -c -o $@ $(CFLAGS) $< 31d4f2939cSRui Paulo @$(E) " CC " $< 32d4f2939cSRui Paulo 33d4f2939cSRui Paulo 34d4f2939cSRui Pauloifdef CONFIG_WPS 35d4f2939cSRui PauloCFLAGS += -DCONFIG_WPS 36d4f2939cSRui Pauloendif 37d4f2939cSRui Paulo 38d4f2939cSRui PauloCFLAGS += -DCONFIG_CTRL_IFACE_DBUS_NEW 39d4f2939cSRui Paulo 40d4f2939cSRui Pauloifndef DBUS_LIBS 41d4f2939cSRui PauloDBUS_LIBS := $(shell $(PKG_CONFIG) --libs dbus-1) 42d4f2939cSRui Pauloendif 43d4f2939cSRui Pauloifndef DBUS_INCLUDE 44d4f2939cSRui PauloDBUS_INCLUDE := $(shell $(PKG_CONFIG) --cflags dbus-1) 45d4f2939cSRui Pauloendif 46d4f2939cSRui Pauloifdef CONFIG_CTRL_IFACE_DBUS_INTRO 47d4f2939cSRui PauloCFLAGS += -DCONFIG_CTRL_IFACE_DBUS_INTRO 48d4f2939cSRui PauloDBUS_INCLUDE += $(shell xml2-config --cflags) 49d4f2939cSRui PauloDBUS_LIBS += $(shell xml2-config --libs) 50d4f2939cSRui Pauloendif 51d4f2939cSRui Paulo 52d4f2939cSRui PauloCFLAGS += $(DBUS_INCLUDE) 53d4f2939cSRui Paulo 54d4f2939cSRui PauloLIB_OBJS= \ 55d4f2939cSRui Paulo dbus_common.o \ 56d4f2939cSRui Paulo dbus_new.o \ 57d4f2939cSRui Paulo dbus_new_handlers.o \ 58d4f2939cSRui Paulo dbus_new_helpers.o \ 59d4f2939cSRui Paulo dbus_new_introspect.o \ 60d4f2939cSRui Paulo dbus_dict_helpers.o 61d4f2939cSRui Paulo 62d4f2939cSRui Pauloifdef CONFIG_WPS 63d4f2939cSRui PauloLIB_OBJS += dbus_new_handlers_wps.o 64d4f2939cSRui Pauloendif 65d4f2939cSRui Paulo 66d4f2939cSRui Paulolibwpadbus.a: $(LIB_OBJS) 67d4f2939cSRui Paulo $(AR) crT $@ $? 68d4f2939cSRui Paulo 69d4f2939cSRui Paulo-include $(OBJS:%.o=%.d) 70