blob: e2c14e6add71dd34e304c558b400a722a6298657 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
--- a/Makefile
+++ b/Makefile
@@ -1,9 +1,7 @@
# Makefile for IFStatus
# Gabriel Montenegro
-GCC = g++
-LDFLAGS = -lncurses
-CFLAGS = -O2 -Wall
+LDLIBS = $(shell $(PKG_CONFIG) --libs ncurses)
BIN = ifstatus
OBJ = BorderDecorator.o\
@@ -30,7 +28,7 @@
all : ifstatus printdone
ifstatus : $(OBJ)
- $(GCC) $(CFLAGS) $(LDFLAGS) $^ -o $@
+ $(LINK.cc) $^ $(LDLIBS) -o $@
printdone:
@if [ -e "./${BIN}" ]; then echo "Compiled.."; else echo "Error compiling!"; fi
|