summaryrefslogtreecommitdiff
path: root/netspeed/src/Makefile.am
blob: e91c1b34bde4ed822fb62ef40418aad9d84a416f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
NULL =

mate_netspeed_applet_libdir= $(pkglibdir)
mate_netspeed_applet_lib_LTLIBRARIES=libmate-netspeed-applet.la

AM_CPPFLAGS =			\
	-I$(top_srcdir)		\
	-I$(includedir)		\
	$(GIO_CFLAGS)		\
	$(GTOP_APPLETS_CFLAGS)	\
	$(MATE_APPLETS4_CFLAGS)	\
	-DNETSPEED_RESOURCE_PATH=\""/org/mate/mate-applets/netspeed/"\" \
	${WARN_CFLAGS}

if HAVE_NL
AM_CPPFLAGS += $(NL_CFLAGS)
endif

libmate_netspeed_applet_la_SOURCES =	\
	backend.h		\
	backend.c		\
	netspeed.c		\
	netspeed.h		\
	netspeed-preferences.c	\
	netspeed-preferences.h	\
	netspeed-resources.c   \
	netspeed-resources.h   \
	$(NULL)

if HAVE_NL
libmate_netspeed_applet_la_SOURCES +=	\
	nl80211.h		\
	ieee80211.h		\
	$(NULL)
endif

libmate_netspeed_applet_la_LIBADD = $(GIO_LIBS) $(GTOP_APPLETS_LIBS) \
       $(MATE_APPLETS4_LIBS) \
       $(INTLLIBS) -lm

if HAVE_IW
libmate_netspeed_applet_la_LIBADD += $(IW_LIBS)
endif
if HAVE_NL
libmate_netspeed_applet_la_LIBADD += $(NL_LIBS)
endif

netspeed-resources.c: $(srcdir)/../data/netspeed-resources.gresource.xml $(shell $(GLIB_COMPILE_RESOURCES) --sourcedir=$(srcdir)/../data --generate-dependencies $(srcdir)/../data/netspeed-resources.gresource.xml)
	$(AM_V_GEN)$(GLIB_COMPILE_RESOURCES) --target=$@ --sourcedir=$(srcdir)/../data --generate --c-name netspeed $<

netspeed-resources.h: $(srcdir)/../data/netspeed-resources.gresource.xml $(shell $(GLIB_COMPILE_RESOURCES) --sourcedir=$(srcdir)/../data --generate-dependencies $(srcdir)/../data/netspeed-resources.gresource.xml)
	$(AM_V_GEN)$(GLIB_COMPILE_RESOURCES) --target=$@ --sourcedir=$(srcdir)/../data --generate --c-name netspeed $<

CLEANFILES =			\
	$(NULL)

-include $(top_srcdir)/git.mk