aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorDavid <dbphillipsnz@gmail.com>2014-03-30 11:50:03 +1300
committerDavid <dbphillipsnz@gmail.com>2014-03-30 11:55:04 +1300
commit1b7114310f135ca81dfdc228c1c188c731a2d6e6 (patch)
tree11263c755b3cd98254dfebff0fd38c6a85d8d7b7 /Makefile
parent6532d80ed657c0cbd8c56d2e875ea093dcfadacd (diff)
downloadparamano-1b7114310f135ca81dfdc228c1c188c731a2d6e6.tar.xz
Moved src/* to ./
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile71
1 files changed, 67 insertions, 4 deletions
diff --git a/Makefile b/Makefile
index 9a7873f..1b222da 100644
--- a/Makefile
+++ b/Makefile
@@ -1,16 +1,79 @@
+# Tabsize: 4
+
+MAKE = make
+CC = gcc
INSTALL_PATH=/
-all:
- make all --directory=./src/
+GLIB_CFLAGS = -I/usr/include/glib-2.0 \
+ -I/usr/lib/glib-2.0/include
+GLIB_LIBS = -lglib-2.0
+
+GTK_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
+
+GTK_LIBS = -lgtk-x11-2.0 \
+ -lgobject-2.0
+
+
+trayfreq_CFLAGS = $(GTK_CFLAGS) $(GLIB_CFLAGS) -Wall
+trayfreq_LDFLAGS = $(GTK_LIBS) $(GLIB_LIBS) -lm
+trayfreq_SOURCES = freq_tray/getcore.c \
+ freq_tray/getfreq.c \
+ freq_tray/getgov.c \
+ tray.c \
+ trayfreq.c \
+ widget_manager.c \
+ trayfreq_set/trayfreq_set_interface.c \
+ config_file.c \
+ defaults.c \
+ bat_tray/bat_tray.c \
+ common.c
+
+trayfreq_set_CFLAGS = $(GTK_CFLAGS) $(GLIB_CFLAGS) -Wall
+trayfreq_set_LDFLAGS = $(GTK_LIBS) $(GLIB_LIBS) -lm
+trayfreq_set_SOURCES = trayfreq_set/trayfreq_set.c \
+ freq_tray/getfreq.c \
+ freq_tray/getcore.c
+
+
+########################################################################
+# Make entire suite
+all: trayfreq trayfreq-set
+########################################################################
+
+########################################################################
+# Make trayfreq-set program for setting governors
+trayfreq-set:
+ $(CC) -o trayfreq-set $(trayfreq_set_SOURCES) $(trayfreq_set_CFLAGS) $(trayfreq_set_LDFLAGS)
+########################################################################
+
+
+########################################################################
+# Make main trayfreq system tray program
+trayfreq:
+ $(CC) -o trayfreq $(trayfreq_SOURCES) $(trayfreq_CFLAGS) $(trayfreq_LDFLAGS)
+########################################################################
+
+
+########################################################################
+# Remove generated files
clean:
- make clean --directory=./src/
+ rm -f trayfreq trayfreq-set
+########################################################################
+
+########################################################################
+# Install entire suite
install:
mkdir -p $(INSTALL_PATH)/usr/share/trayfreq/
cp data/*.png $(INSTALL_PATH)/usr/share/trayfreq/
install -D data/trayfreq.config $(INSTALL_PATH)/usr/share/trayfreq/trayfreq.config
install -D data/trayfreq.desktop $(INSTALL_PATH)/etc/xdg/autostart/trayfreq.desktop
-
install -Dm 755 src/trayfreq $(INSTALL_PATH)/usr/bin/trayfreq
install -Dm 755 src/trayfreq-set $(INSTALL_PATH)/usr/bin/trayfreq-set
+######################################################################## \ No newline at end of file