Introduction
Introduction Statistics Contact Development Disclaimer Help
Makefile: simplify Makefile, rm config.mk, use system cflags/ldflags - tscrape …
git clone git://git.codemadness.org/tscrape
Log
Files
Refs
README
LICENSE
---
commit e24125d0f7679e0612c7ed69d79f07654f10637d
parent 5df58d27f557292778cdc5dee306f18db8c980f7
Author: Hiltjo Posthuma <[email protected]>
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(-)
---
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
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
You are viewing proxied material from codemadness.org. The copyright of proxied material belongs to its original authors. Any comments or complaints in relation to proxied material should be directed to the original authors of the content concerned. Please see the disclaimer for more details.