Makefile: simplify

This commit is contained in:
Hiltjo Posthuma 2017-11-18 12:28:30 +01:00
parent bb1e5569d0
commit 0fedff44e3
1 changed files with 13 additions and 18 deletions

View File

@ -2,29 +2,24 @@
VERSION = 1.7 VERSION = 1.7
# paths # paths
PREFIX = /usr/local PREFIX = /usr/local
BINDIR = ${PREFIX}/bin BINDIR = ${PREFIX}/bin
MANDIR = ${PREFIX}/share/man MANDIR = ${PREFIX}/share/man
MAN1DIR = ${MANDIR}/man1 MAN1DIR = ${MANDIR}/man1
DOCDIR = ${PREFIX}/share/doc/ii DOCDIR = ${PREFIX}/share/doc/ii
# Set the following to install to a different root
DESTDIR =
INCDIR = ${PREFIX}/include
LIBDIR = ${PREFIX}/lib
# includes and libs # includes and libs
INCLUDES = -I. -I${INCDIR} -I/usr/include INCLUDES = -I. -I/usr/include
LIBS = -L${LIBDIR} -L/usr/lib -lc LIBS =
# compiler # compiler
CC = cc CC = cc
# debug # debug
#CFLAGS = -g -O0 -pedantic -Wall ${INCLUDES} -DVERSION=\"${VERSION}\" -std=c99 -D_DEFAULT_SOURCE #CFLAGS = -g -O0 -pedantic -Wall ${INCLUDES} -DVERSION=\"${VERSION}\" \
#LDFLAGS = ${LIBS} # -std=c99 -D_DEFAULT_SOURCE
#LDFLAGS = ${LIBS}
# release # release
CFLAGS = -Os ${INCLUDES} -DVERSION=\"${VERSION}\" -std=c99 -D_DEFAULT_SOURCE CFLAGS = -Os ${INCLUDES} -DVERSION=\"${VERSION}\" -std=c99 -D_DEFAULT_SOURCE
LDFLAGS = -s LDFLAGS = -s ${LIBS}