blob: 0cf217fa0b022086a23683085f84d3bb88083731 [file] [log] [blame]
Patrick Williamsc124f4f2015-09-15 14:41:29 -05001diff --git a/Makefile.orig b/Makefile
2index 16a2369..fa797a2 100644
3--- a/Makefile.orig
4+++ b/Makefile
5@@ -1,10 +1,11 @@
6-# FIXME: Use autoconf ?
7-HAS_GTK_GUI = 1
8+# Upstream-Status: Inappropriate [configuration]
9+# Signed-off-by: Jack Mitchell <jack.mitchell@dbbroadcast.co.uk>
10
11 DESTDIR =
12 SBINDIR = /usr/sbin
13 XCFLAGS = -W -g `pkg-config --cflags glib-2.0` -D_FORTIFY_SOURCE=2 -Wno-sign-compare
14-LDF = -Wl,--as-needed `pkg-config --libs glib-2.0` -lncursesw
15+LDF = -Wl,--as-needed `pkg-config --libs glib-2.0` -lncurses
16+CC ?= gcc
17
18 OBJS= latencytop.o text_display.o translate.o fsync.o
19
20@@ -26,16 +27,17 @@ endif
21
22 # We write explicity this "implicit rule"
23 %.o : %.c
24- gcc -c $(CFLAGS) $(XCFLAGS) $< -o $@
25+ $(CC) -c $(CFLAGS) $(XCFLAGS) $< -o $@
26
27 latencytop: $(OBJS) latencytop.h Makefile
28- gcc $(CFLAGS) $(OBJS) $(LDF) -o latencytop
29+ $(CC) $(CFLAGS) $(OBJS) $(LDF) -o latencytop
30
31 clean:
32 rm -f *~ latencytop DEADJOE *.o
33
34 install: latencytop
35 mkdir -p $(DESTDIR)/usr/share/latencytop
36+ mkdir -p $(DESTDIR)/$(SBINDIR)
37 install -m 0644 latencytop.trans $(DESTDIR)/usr/share/latencytop/latencytop.trans
38 install -m 0644 *.png $(DESTDIR)/usr/share/latencytop/
39 install -m 0755 latencytop $(DESTDIR)$(SBINDIR)/