diff options
author | David Phillips <dbphillipsnz@gmail.com> | 2016-08-25 22:20:53 +1200 |
---|---|---|
committer | David Phillips <dbphillipsnz@gmail.com> | 2016-08-25 22:20:53 +1200 |
commit | 6fbabda4ef139c2fd9e8a821168e175fad63b573 (patch) | |
tree | 821c29ef561bb10c025098b60010be90668d43d9 | |
parent | a020443f6d1d3e0fb847a3f04c983e1475f2d8de (diff) | |
download | paramano-6fbabda4ef139c2fd9e8a821168e175fad63b573.tar.xz |
Separate makefile variables into config.mk
-rw-r--r-- | Makefile | 59 | ||||
-rw-r--r-- | config.mk | 55 |
2 files changed, 56 insertions, 58 deletions
@@ -1,61 +1,4 @@ -# Directories -PREFIX=/usr -BINDIR=$(PREFIX)/bin -SYSCONFDIR=/etc -SHAREDIR=$(PREFIX)/share -LOCALEDIR=$(SHAREDIR)/locale -POWER_DIR="/sys/class/power_supply/" - -# External program/support programs -SUDO=$(BINDIR)/sudo -PARAMANO_SET=$(BINDIR)/paramano-set - -# Misc -PARAMANO=$(BINDIR)/paramano -PARAMANO_CONF=$(SYSCONFDIR)/paramano.conf -ROOT_UID=0 - - -DEFS += -DPREFIX=\"$(PREFIX)\" \ - -DBINDIR=\"$(BINDIR)\" \ - -DSUDO=\"$(SUDO)\" \ - -DPARAMANO_SET=\"$(PARAMANO_SET)\" \ - -DPARAMANO_CONF=\"$(PARAMANO_CONF)\" \ - -DLOCALEDIR=\"$(LOCALEDIR)\" \ - -DSHAREDIR=\"$(SHAREDIR)\" \ - -DPOWERDIR=\"$(POWER_DIR)\" \ - -DROOT_UID=$(ROOT_UID) \ - -D_GNU_SOURCE - - -DEPS += bat_tray.h \ - common.h \ - config_file.h \ - defaults.h \ - getcore.h \ - getfreq.h \ - getgov.h \ - paramano.h \ - tray.h \ - paramano_set_interface.h - -CFLAGS += -I/usr/include/gtk-2.0 \ - -I/usr/lib/gtk-2.0/include \ - -I/usr/include/pango-1.0 \ - -I/usr/include/cairo \ - -I/usr/include/gdk-pixbuf-2.0 \ - -I/usr/include/atk-1.0 \ - -I/usr/include/glib-2.0 \ - -I/usr/lib/glib-2.0/include \ - -Wall \ - -Werror \ - -D_=gettext - -LDFLAGS += -lgtk-x11-2.0 \ - -lgobject-2.0 \ - -lglib-2.0 - - +include config.mk ######################################################################## # Phony targets diff --git a/config.mk b/config.mk new file mode 100644 index 0000000..c3844c6 --- /dev/null +++ b/config.mk @@ -0,0 +1,55 @@ +# Directories +PREFIX=/usr +BINDIR=$(PREFIX)/bin +SYSCONFDIR=/etc +SHAREDIR=$(PREFIX)/share +LOCALEDIR=$(SHAREDIR)/locale +POWER_DIR="/sys/class/power_supply/" + +# External program/support programs +SUDO=$(BINDIR)/sudo +PARAMANO_SET=$(BINDIR)/paramano-set + +# Misc +PARAMANO=$(BINDIR)/paramano +PARAMANO_CONF=$(SYSCONFDIR)/paramano.conf +ROOT_UID=0 + + +DEFS += -DPREFIX=\"$(PREFIX)\" \ + -DBINDIR=\"$(BINDIR)\" \ + -DSUDO=\"$(SUDO)\" \ + -DPARAMANO_SET=\"$(PARAMANO_SET)\" \ + -DPARAMANO_CONF=\"$(PARAMANO_CONF)\" \ + -DLOCALEDIR=\"$(LOCALEDIR)\" \ + -DSHAREDIR=\"$(SHAREDIR)\" \ + -DPOWERDIR=\"$(POWER_DIR)\" \ + -DROOT_UID=$(ROOT_UID) \ + -D_GNU_SOURCE + + +DEPS += bat_tray.h \ + common.h \ + config_file.h \ + defaults.h \ + getcore.h \ + getfreq.h \ + getgov.h \ + paramano.h \ + tray.h \ + paramano_set_interface.h + +CFLAGS += -I/usr/include/gtk-2.0 \ + -I/usr/lib/gtk-2.0/include \ + -I/usr/include/pango-1.0 \ + -I/usr/include/cairo \ + -I/usr/include/gdk-pixbuf-2.0 \ + -I/usr/include/atk-1.0 \ + -I/usr/include/glib-2.0 \ + -I/usr/lib/glib-2.0/include \ + -Wall \ + -D_=gettext + +LDFLAGS += -lgtk-x11-2.0 \ + -lgobject-2.0 \ + -lglib-2.0 |