Please consider adding new Makefiles based on this patch to new release of : apngdis, apngopt, apngasm etc. so that external calls can modify the build as needed.
You only need to adjust variables PACKAGE and LIBS for each utility.
From 6f1341f3501f5b3ac84c8ca6864c7b1484218e6f Mon Sep 17 00:00:00 2001
From: Jari Aalto <email@example.com>
Date: Sat, 1 Jun 2013 14:23:31 +0300
Subject: [PATCH] Add CPPFLAGS, CFLAGS, LDFLAGS etc
Content-Type: text/plain; charset="utf-8"
Signed-off-by: Jari Aalto <firstname.lastname@example.org>
Makefile | 8 +++++++-
1 file changed, 7 insertions(+), 1 deletion(-)
diff --git a/Makefile b/Makefile
index a284c30..26921d4 100644
@@ -1,2 +1,8 @@
++PACKAGE = apngopt
+LIBS = -lz
+CFLAGS_OPT = -O2
+CFLAGS = -std=c99 -Wall -pedantic
- gcc -std=c99 -Wall -pedantic -O2 -o apngopt apngopt.c -lz
+ $(CC) $(CPPFLAGS) $(CFLAGS) $(CFLAGS_OPT) $(LDFLAGS) \
+ -o $(PACKAGE) $(PACKAGE).c $(LIBS)
Here is same in attachment (apngopt 1.2). Apply with:
patch -p1 < *.patch
Thanks, I'll do this for next updates.
Log in to post a comment.
Sign up for the SourceForge newsletter:
You seem to have CSS turned off.
Please don't fill out this field.