summaryrefslogtreecommitdiff
blob: b5836696e9f4123c1f76ce17c4eade75f38db198 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
 Makefile |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/Makefile b/Makefile
index b3d741e..79022e9 100644
--- a/Makefile
+++ b/Makefile
@@ -1,6 +1,6 @@
-CFLAGS+=-std=c99 -g -Wall -Wextra -pedantic -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64
-LDFLAGS=-lm
-PREFIX=/usr/local
+CFLAGS+=-std=c99 -Wall -Wextra -pedantic -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64
+LIBS=-lm
+PREFIX?=/usr/local
 BINDIR=$(PREFIX)/bin
 MAN1DIR=$(PREFIX)/share/man/man1
 
@@ -30,7 +30,7 @@ install: $(BINS) $(MANS)
 	$(CC) $(CFLAGS) -DVERSION=\"${VERSION}\" -c -o $@ $^
 
 ioping: $(OBJS)
-	$(CC) -o $@ $^ $(CFLAGS) $(LDFLAGS)
+	$(CC) $(CFLAGS) $(LDFLAGS) -o $@ $^ $(LIBS)
 
 dist: $(DISTDIR).tar.gz