tUse $(LIBS) in makefile - pm - barely a pack manager
HTML git clone git://z3bra.org/pm
DIR Log
DIR Files
DIR Refs
DIR README
DIR LICENSE
---
DIR commit eb8831e065464bf61242657779cde4f6318ee4f7
DIR parent 1b21dc8ab5636c08e05308d6c09827f875cea1d3
HTML Author: z3bra <willyatmailoodotorg>
Date: Sat, 23 Jan 2016 00:16:05 +0100
Use $(LIBS) in makefile
Diffstat:
M config.mk | 3 ++-
M makefile | 2 +-
2 files changed, 3 insertions(+), 2 deletions(-)
---
DIR diff --git a/config.mk b/config.mk
t@@ -5,4 +5,5 @@ PREFIX = /usr/local
MANPREFIX = $(PREFIX)/share/man
CFLAGS = -Wall -Wextra -g
-LDFLAGS = -larchive -lbz2 -lz
+LDFLAGS = -static
+LIBS = -larchive -lbz2 -lz
DIR diff --git a/makefile b/makefile
t@@ -5,7 +5,7 @@ BIN = pm
all: $(BIN)
.c:
- $(CC) $(CFLAGS) $< $(LDFLAGS) -o $@
+ $(CC) $(CFLAGS) $< $(LDFLAGS) $(LIBS) -o $@
clean:
rm -f $(BIN)