Commit 3a701d54 authored by Laslo Hunhold's avatar Laslo Hunhold

Add PNG-LDFLAGS and JPG-LDFLAGS in config.mk

instead of per-tool-settings.
parent 17f09e2c
......@@ -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)
......
......@@ -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
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment