Menu

[PATCH] 1.2 Makfile CPPFLAGS, CFLAGS, LDFLAGS support

Main Forum
Jari Aalto
2013-06-01
2013-06-03
  • Jari Aalto

    Jari Aalto - 2013-06-01

    Hi,

    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.

    Thanks,
    Jari

    From 6f1341f3501f5b3ac84c8ca6864c7b1484218e6f Mon Sep 17 00:00:00 2001
    From: Jari Aalto <jari.aalto@cante.net>
    Date: Sat, 1 Jun 2013 14:23:31 +0300
    Subject: [PATCH] Add CPPFLAGS, CFLAGS, LDFLAGS etc
    Organization: Private
    Content-Type: text/plain; charset="utf-8"
    Content-Transfer-Encoding: 8bit
    
    Signed-off-by: Jari Aalto <jari.aalto@cante.net>
    ---
     Makefile |    8 +++++++-
     1 file changed, 7 insertions(+), 1 deletion(-)
    
    diff --git a/Makefile b/Makefile
    index a284c30..26921d4 100644
    --- a/Makefile
    +++ b/Makefile
    @@ -1,2 +1,8 @@
    ++PACKAGE   = apngopt
    +LIBS       = -lz
    +CFLAGS_OPT = -O2
    +CFLAGS     = -std=c99 -Wall -pedantic
    +
     all:
    -       gcc -std=c99 -Wall -pedantic -O2 -o apngopt apngopt.c -lz
    +       $(CC) $(CPPFLAGS) $(CFLAGS) $(CFLAGS_OPT) $(LDFLAGS) \
    +               -o $(PACKAGE) $(PACKAGE).c $(LIBS)
    --
    1.7.10.4
    
     

    Last edit: Jari Aalto 2013-06-01
  • Jari Aalto

    Jari Aalto - 2013-06-01

    Here is same in attachment (apngopt 1.2). Apply with:

    patch -p1 < *.patch
    
     

    Last edit: Jari Aalto 2013-06-01
  • Max Stepin

    Max Stepin - 2013-06-03

    Thanks, I'll do this for next updates.

     

Log in to post a comment.