summaryrefslogtreecommitdiff
path: root/cpufreq/src/Makefile.am
diff options
context:
space:
mode:
authorlukefromdc <[email protected]>2023-06-11 17:24:31 -0400
committerraveit65 <[email protected]>2023-07-17 02:47:16 +0200
commit84498251fab3fdbd4031478eea4dfe4eb8c0c28b (patch)
treef8b7e88c32fe4fdb15a65c83e5522d45c1854eda /cpufreq/src/Makefile.am
parent22d571466674641a3a767e577373a3c5f78ab157 (diff)
downloadmate-applets-84498251fab3fdbd4031478eea4dfe4eb8c0c28b.tar.bz2
mate-applets-84498251fab3fdbd4031478eea4dfe4eb8c0c28b.tar.xz
cpufreq: port to in-process for wayland compatablity
Diffstat (limited to 'cpufreq/src/Makefile.am')
-rw-r--r--cpufreq/src/Makefile.am78
1 files changed, 52 insertions, 26 deletions
diff --git a/cpufreq/src/Makefile.am b/cpufreq/src/Makefile.am
index 86b18674..8324fe9e 100644
--- a/cpufreq/src/Makefile.am
+++ b/cpufreq/src/Makefile.am
@@ -5,45 +5,69 @@ endif
SUBDIRS = $(selector_SUBDIR)
AM_CPPFLAGS = \
- -DCPUFREQ_RESOURCE_PATH=\""/org/mate/mate-applets/cpufreq/"\" \
$(MATE_APPLETS4_CFLAGS)
-libexec_PROGRAMS = mate-cpufreq-applet
+cpufreq_libdir= $(pkglibdir)
+cpufreq_lib_LTLIBRARIES=libmatecpufreqapplet.la
+
+libmatecpufreqapplet_la_CPPFLAGS = \
+ -I$(top_builddir) \
+ -I$(top_srcdir) \
+ -DGTK_BUILDERDIR=\""$(pkgdatadir)/builder"\" \
+ -DCPUFREQ_RESOURCE_PATH=\""/org/mate/mate-applets/cpufreq/"\" \
+ $(NULL)
+
+libmatecpufreqapplet_la_CFLAGS = \
+ $(MATE_APPLETS4_CFLAGS) \
+ $(GIO_CFLAGS) \
+ $(WARN_CFLAGS) \
+ $(AM_CFLAGS) \
+ $(NULL)
-BUILT_SOURCES = \
- cpufreq-resources.c cpufreq-resources.h
+libmatecpufreqapplet_la_SOURCES = \
+ cpufreq-applet.c \
+ cpufreq-applet.h \
+ cpufreq-utils.c \
+ cpufreq-utils.h \
+ cpufreq-prefs.c \
+ cpufreq-prefs.h \
+ cpufreq-selector.c \
+ cpufreq-selector.h \
+ cpufreq-popup.c \
+ cpufreq-popup.h \
+ cpufreq-monitor.c \
+ cpufreq-monitor.h \
+ cpufreq-monitor-factory.c \
+ cpufreq-monitor-factory.h \
+ cpufreq-resources.c \
+ cpufreq-resources.h \
+ $(NULL)
-nodist_mate_cpufreq_applet_SOURCES = \
- $(BUILT_SOURCES)
+libmatecpufreqapplet_la_LDFLAGS = \
+ -module -avoid-version \
+ $(WARN_LDFLAGS) \
+ $(AM_LDFLAGS) \
+ $(NULL)
-mate_cpufreq_applet_SOURCES = \
- cpufreq-applet.c cpufreq-applet.h \
- cpufreq-utils.c cpufreq-utils.h \
- cpufreq-prefs.c cpufreq-prefs.h \
- cpufreq-selector.c cpufreq-selector.h \
- cpufreq-popup.c cpufreq-popup.h \
- cpufreq-monitor.c cpufreq-monitor.h \
- cpufreq-monitor-factory.c cpufreq-monitor-factory.h
+libmatecpufreqapplet_la_LIBADD = \
+ $(MATE_APPLETS4_LIBS) \
+ $(LIBCPUFREQ_LIBS) \
+ $(NULL)
if HAVE_LIBCPUFREQ
-mate_cpufreq_applet_SOURCES += \
+libmatecpufreqapplet_la_SOURCES += \
cpufreq-monitor-libcpufreq.c \
- cpufreq-monitor-libcpufreq.h
+ cpufreq-monitor-libcpufreq.h \
+ $(NULL)
else
-mate_cpufreq_applet_SOURCES += \
+libmatecpufreqapplet_la_SOURCES += \
cpufreq-monitor-cpuinfo.c \
cpufreq-monitor-cpuinfo.h \
cpufreq-monitor-sysfs.c \
- cpufreq-monitor-sysfs.h
+ cpufreq-monitor-sysfs.h \
+ $(NULL)
endif
-mate_cpufreq_applet_CFLAGS = \
- ${WARN_CFLAGS}
-
-mate_cpufreq_applet_LDADD = \
- $(MATE_APPLETS4_LIBS) \
- $(LIBCPUFREQ_LIBS)
-
cpufreq-resources.c: $(top_srcdir)/cpufreq/data/cpufreq-resources.gresource.xml $(shell $(GLIB_COMPILE_RESOURCES) --sourcedir=$(top_srcdir)/cpufreq/data --generate-dependencies $(top_srcdir)/cpufreq/data/cpufreq-resources.gresource.xml)
$(AM_V_GEN)$(GLIB_COMPILE_RESOURCES) --target=$@ --sourcedir=$(top_srcdir)/cpufreq/data --generate --c-name cpufreq $<
@@ -51,6 +75,8 @@ cpufreq-resources.h: $(top_srcdir)/cpufreq/data/cpufreq-resources.gresource.xml
$(AM_V_GEN)$(GLIB_COMPILE_RESOURCES) --target=$@ --sourcedir=$(top_srcdir)/cpufreq/data --generate --c-name cpufreq $<
CLEANFILES = \
- $(BUILT_SOURCES)
+ cpufreq-resources.c \
+ cpufreq-resources.h \
+ $(NULL)
-include $(top_srcdir)/git.mk