mirror of
https://github.com/varun-r-mallya/sysprof.git
synced 2025-12-31 20:36:25 +00:00
build: be a bit more flexible with configuration options
It would be nice if we can be a bit more flexible with where the sysprof-cli tool can run. Lets try to break out the system checks a bit more.
This commit is contained in:
@ -24,12 +24,12 @@ libutil_la_SOURCES = \
|
||||
$(NULL)
|
||||
libutil_la_CFLAGS = \
|
||||
-I$(srcdir)/util \
|
||||
$(SYSPROF_CFLAGS) \
|
||||
$(GIO_CFLAGS) \
|
||||
$(WARN_CFLAGS) \
|
||||
$(NULL)
|
||||
libutil_la_CXXFLAGS = \
|
||||
-I$(srcdir)/util \
|
||||
$(SYSPROF_CFLAGS) \
|
||||
$(GIO_CFLAGS) \
|
||||
$(WARN_CXXFLAGS) \
|
||||
$(NULL)
|
||||
|
||||
@ -94,20 +94,21 @@ libsysprof_@API_VERSION@_la_SOURCES = \
|
||||
|
||||
libsysprof_@API_VERSION@_la_CFLAGS = \
|
||||
-I$(srcdir)/util \
|
||||
$(SYSPROF_CFLAGS) \
|
||||
$(GIO_CFLAGS) \
|
||||
$(WARN_CFLAGS) \
|
||||
$(NULL)
|
||||
if ENABLE_SYSPROFD
|
||||
libsysprof_@API_VERSION@_la_CFLAGS += \
|
||||
-DENABLE_SYSPROFD
|
||||
endif
|
||||
|
||||
libsysprof_@API_VERSION@_la_LIBADD = \
|
||||
libutil.la \
|
||||
-lstdc++ \
|
||||
$(SYSPROF_LIBS) \
|
||||
$(GIO_LIBS) \
|
||||
$(NULL)
|
||||
|
||||
if ENABLE_SYSPROFD
|
||||
libsysprof_@API_VERSION@_la_LIBADD += $(POLKIT_LIBS)
|
||||
libsysprof_@API_VERSION@_la_CFLAGS += $(POLKIT_CFLAGS) -DENABLE_SYSPROFD
|
||||
endif
|
||||
|
||||
libsysprof_@API_VERSION@_la_LDFLAGS = \
|
||||
-avoid-version \
|
||||
-no-undefined \
|
||||
@ -156,14 +157,18 @@ libsysprof_ui_@API_VERSION@_la_SOURCES = \
|
||||
|
||||
libsysprof_ui_@API_VERSION@_la_CFLAGS = \
|
||||
-I$(srcdir)/util \
|
||||
$(SYSPROF_UI_CFLAGS) \
|
||||
$(GIO_CFLAGS) \
|
||||
$(GTK_CFLAGS) \
|
||||
$(POLKIT_CFLAGS) \
|
||||
$(WARN_CFLAGS) \
|
||||
$(NULL)
|
||||
|
||||
libsysprof_ui_@API_VERSION@_la_LIBADD = \
|
||||
libutil.la \
|
||||
libsysprof-@API_VERSION@.la \
|
||||
$(SYSPROF_UI_LIBS) \
|
||||
$(GIO_LIBS) \
|
||||
$(GTK_LIBS) \
|
||||
$(POLKIT_LIBS) \
|
||||
$(NULL)
|
||||
|
||||
libsysprof_ui_@API_VERSION@_la_LDFLAGS = \
|
||||
|
||||
Reference in New Issue
Block a user