[hackers] [farbfeld] Add PNG-LDFLAGS and JPG-LDFLAGS in config.mk || Laslo Hunhold

From: <git_AT_suckless.org>
Date: Fri, 14 Apr 2017 16:04:49 +0200 (CEST)

commit 3a701d548362812f9c9b21e960c7abe50989a33e
Author: Laslo Hunhold <dev_AT_frign.de>
AuthorDate: Fri Apr 14 16:04:14 2017 +0200
Commit: Laslo Hunhold <dev_AT_frign.de>
CommitDate: Fri Apr 14 16:04:14 2017 +0200

    Add PNG-LDFLAGS and JPG-LDFLAGS in config.mk
    
    instead of per-tool-settings.

diff --git a/Makefile b/Makefile
index 4752fb6..5bf9332 100644
--- a/Makefile
+++ b/Makefile
_AT_@ -11,6 +11,11 @@ SCR = 2ff
 MAN1 = 2ff.1 $(BIN:=.1)
 MAN5 = farbfeld.5
 
+png2ff-LDFLAGS = $(PNG-LDFLAGS)
+ff2png-LDFLAGS = $(PNG-LDFLAGS)
+jpg2ff-LDFLAGS = $(JPG-LDFLAGS)
+ff2jpg-LDFLAGS = $(JPG-LDFLAGS)
+
 all: $(BIN)
 
 $(BIN): $(REQ:=.o)
diff --git a/config.mk b/config.mk
index b6b0ce4..57e9eac 100644
--- a/config.mk
+++ b/config.mk
_AT_@ -11,11 +11,8 @@ MANPREFIX = ${PREFIX}/man
 CPPFLAGS = -D_DEFAULT_SOURCE
 CFLAGS = -std=c99 -pedantic -Wall -Wextra -Os
 LDFLAGS = -s
-
-png2ff-LDFLAGS = -lpng
-ff2png-LDFLAGS = -lpng
-jpg2ff-LDFLAGS = -ljpeg
-ff2jpg-LDFLAGS = -ljpeg
+PNG-LDFLAGS = -lpng
+JPG-LDFLAGS = -ljpeg
 
 # compiler and linker
 CC = cc
Received on Fri Apr 14 2017 - 16:04:49 CEST

This archive was generated by hypermail 2.3.0 : Fri Apr 14 2017 - 16:12:23 CEST