From e076ef53d0af32c88deda0a63a6b58f9d5e04c0d Mon Sep 17 00:00:00 2001 From: David Date: Sat, 10 May 2014 21:46:39 +1200 Subject: Makefile clean-up --- Makefile | 27 ++++++++++++++------------- 1 file changed, 14 insertions(+), 13 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 8bdaf83..157ad5d 100644 --- a/Makefile +++ b/Makefile @@ -24,23 +24,21 @@ DEPS = bat_tray.h \ trayfreq_set_interface.h -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 \ +trayfreq_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-3 \ - -lgobject-2.0 + -I/usr/include/atk-1.0 \ + -I/usr/include/glib-2.0 \ + -I/usr/lib/glib-2.0/include \ + -Wall \ + -D_=gettext +trayfreq_LDFLAGS = -lgtk-3 \ + -lgobject-2.0 \ + -lglib-2.0 -trayfreq_CFLAGS = $(GTK_CFLAGS) $(GLIB_CFLAGS) -Wall -D_=gettext -trayfreq_LDFLAGS = $(GTK_LIBS) $(GLIB_LIBS) -lm trayfreq_SOURCES = freq_tray/getcore.c \ freq_tray/getfreq.c \ freq_tray/getgov.c \ @@ -53,8 +51,11 @@ trayfreq_SOURCES = freq_tray/getcore.c \ common.c \ reload.c -trayfreq_set_CFLAGS = $(GLIB_CFLAGS) -Wall -D_=gettext -trayfreq_set_LDFLAGS = $(GLIB_LIBS) -lm +trayfreq_set_CFLAGS = -Wall \ + -D_=gettext + +trayfreq_set_LDFLAGS = -lglib-2.0 + trayfreq_set_SOURCES = trayfreq_set/trayfreq_set.c \ freq_tray/getfreq.c \ freq_tray/getcore.c -- cgit v1.1