[hackers] [ii] Makefile: simplify || Hiltjo Posthuma

From: <git_AT_suckless.org>
Date: Sat, 18 Nov 2017 12:50:57 +0100 (CET)

commit 0fedff44e3cf7d1f1edfb15f160320dcc6746bd8
Author: Hiltjo Posthuma <hiltjo_AT_codemadness.org>
AuthorDate: Sat Nov 18 12:28:30 2017 +0100
Commit: Hiltjo Posthuma <hiltjo_AT_codemadness.org>
CommitDate: Sat Nov 18 12:28:30 2017 +0100

    Makefile: simplify

diff --git a/config.mk b/config.mk
index 821e8f3..0e0f9ba 100644
--- a/config.mk
+++ b/config.mk
_AT_@ -2,29 +2,24 @@
 VERSION = 1.7
 
 # paths
-PREFIX = /usr/local
-BINDIR = ${PREFIX}/bin
-MANDIR = ${PREFIX}/share/man
-MAN1DIR = ${MANDIR}/man1
-DOCDIR = ${PREFIX}/share/doc/ii
-
-# Set the following to install to a different root
-DESTDIR =
-
-INCDIR = ${PREFIX}/include
-LIBDIR = ${PREFIX}/lib
+PREFIX = /usr/local
+BINDIR = ${PREFIX}/bin
+MANDIR = ${PREFIX}/share/man
+MAN1DIR = ${MANDIR}/man1
+DOCDIR = ${PREFIX}/share/doc/ii
 
 # includes and libs
-INCLUDES = -I. -I${INCDIR} -I/usr/include
-LIBS = -L${LIBDIR} -L/usr/lib -lc
+INCLUDES = -I. -I/usr/include
+LIBS =
 
 # compiler
-CC = cc
+CC = cc
 
 # debug
-#CFLAGS = -g -O0 -pedantic -Wall ${INCLUDES} -DVERSION=\"${VERSION}\" -std=c99 -D_DEFAULT_SOURCE
-#LDFLAGS = ${LIBS}
+#CFLAGS = -g -O0 -pedantic -Wall ${INCLUDES} -DVERSION=\"${VERSION}\" \
+# -std=c99 -D_DEFAULT_SOURCE
+#LDFLAGS = ${LIBS}
 
 # release
-CFLAGS = -Os ${INCLUDES} -DVERSION=\"${VERSION}\" -std=c99 -D_DEFAULT_SOURCE
-LDFLAGS = -s
+CFLAGS = -Os ${INCLUDES} -DVERSION=\"${VERSION}\" -std=c99 -D_DEFAULT_SOURCE
+LDFLAGS = -s ${LIBS}
Received on Sat Nov 18 2017 - 12:50:57 CET

This archive was generated by hypermail 2.3.0 : Sat Nov 18 2017 - 13:00:32 CET