summaryrefslogtreecommitdiff
path: root/netspeed/src/Makefile.am
blob: 26d5b854d9c26cd6260d7b3d11405dc5af4d65a7 (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
NULL =

builder_files =			\
	netspeed-preferences.ui	\
	$(NULL)

AM_CPPFLAGS =			\
	-I$(top_srcdir)		\
	-I$(includedir)		\
	$(GIO_CFLAGS)		\
	$(GTOP_APPLETS_CFLAGS)	\
	$(MATE_APPLETS4_CFLAGS)	\
	-DNETSPEED_MENU_UI_DIR=\""$(datadir)/mate/ui"\" \
	${WARN_CFLAGS}

libexec_PROGRAMS = mate-netspeed-applet

BUILT_SOURCES = netspeed-resources.c netspeed-resources.h
nodist_mate_netspeed_applet_SOURCES = $(BUILT_SOURCES)
mate_netspeed_applet_SOURCES =	\
	backend.h		\
	backend.c		\
	netspeed.c		\
	$(NULL)

mate_netspeed_applet_LDADD = $(GIO_LIBS) $(GTOP_APPLETS_LIBS) \
       $(MATE_APPLETS4_LIBS) \
       $(IWLIB) $(INTLLIBS) -lm

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

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

CLEANFILES =			\
	$(BUILT_SOURCES)	\
	$(NULL)

EXTRA_DIST =					\
	$(builder_files)			\
	netspeed-resources.gresource.xml	\
	$(NULL)

-include $(top_srcdir)/git.mk