Makefile: simplify Makefile, rm config.mk, use system cflags/ldflags - tscrape - twitter scraper
 (HTM) git clone git://git.codemadness.org/tscrape
 (DIR) Log
 (DIR) Files
 (DIR) Refs
 (DIR) README
 (DIR) LICENSE
       ---
 (DIR) commit e24125d0f7679e0612c7ed69d79f07654f10637d
 (DIR) parent 5df58d27f557292778cdc5dee306f18db8c980f7
 (HTM) Author: Hiltjo Posthuma <hiltjo@codemadness.org>
       Date:   Sat,  1 Feb 2020 15:03:00 +0100
       
       Makefile: simplify Makefile, rm config.mk, use system cflags/ldflags
       
       Diffstat:
         M Makefile                            |      18 ++++++++++++++----
         D config.mk                           |      28 ----------------------------
       
       2 files changed, 14 insertions(+), 32 deletions(-)
       ---
 (DIR) diff --git a/Makefile b/Makefile
       @@ -1,10 +1,20 @@
        .POSIX:
        
       -include config.mk
       -
        NAME = tscrape
        VERSION = 0.3
        
       +# paths
       +PREFIX = /usr/local
       +MANPREFIX = ${PREFIX}/man
       +DOCPREFIX = ${PREFIX}/share/doc/tscrape
       +
       +RANLIB = ranlib
       +
       +# use system flags.
       +TSCRAPE_CFLAGS = ${CFLAGS}
       +TSCRAPE_LDFLAGS = ${LDFLAGS}
       +TSCRAPE_CPPFLAGS = -D_DEFAULT_SOURCE
       +
        BIN = \
                tscrape\
                tscrape_html\
       @@ -51,7 +61,7 @@ ${BIN}: ${LIB} ${@:=.o}
        
        OBJ = ${SRC:.c=.o} ${LIBXMLOBJ} ${LIBUTILOBJ} ${COMPATOBJ}
        
       -${OBJ}: config.mk ${HDR}
       +${OBJ}: ${HDR}
        
        .o:
                ${CC} ${TSCRAPE_LDFLAGS} -o $@ $< ${LIB}
       @@ -72,7 +82,7 @@ dist:
                mkdir -p "${NAME}-${VERSION}"
                cp -f ${MAN1} ${MAN5} ${DOC} ${HDR} \
                        ${SRC} ${LIBXMLSRC} ${LIBUTILSRC} ${COMPATSRC} ${SCRIPTS} \
       -                Makefile config.mk \
       +                Makefile \
                        tscraperc.example style.css \
                        "${NAME}-${VERSION}"
                # make tarball
 (DIR) diff --git a/config.mk b/config.mk
       @@ -1,28 +0,0 @@
       -# customize below to fit your system
       -
       -# paths
       -PREFIX = /usr/local
       -MANPREFIX = ${PREFIX}/man
       -DOCPREFIX = ${PREFIX}/share/doc/tscrape
       -
       -# compiler and linker
       -CC = cc
       -AR = ar
       -RANLIB = ranlib
       -
       -# use system flags.
       -TSCRAPE_CFLAGS = ${CFLAGS}
       -TSCRAPE_LDFLAGS = ${LDFLAGS}
       -TSCRAPE_CPPFLAGS = -D_DEFAULT_SOURCE
       -
       -# debug
       -#TSCRAPE_CFLAGS = -fstack-protector-all -O0 -g -std=c99 -Wall -Wextra -pedantic
       -#TSCRAPE_LDFLAGS =
       -
       -# optimized
       -#TSCRAPE_CFLAGS = -O2 -std=c99
       -#TSCRAPE_LDFLAGS = -s
       -
       -# optimized static
       -#TSCRAPE_CFLAGS = -static -O2 -std=c99
       -#TSCRAPE_LDFLAGS = -static -s