donstranding

Don Stranding
git clone git://git.kocotian.pl/donstranding.git
Log | Files | Refs | Submodules | README | LICENSE

commit 1a70811539b736f05f50e58573aed7caffd63bee
parent 201472d73358d8c22a923344c8e51c359f6c329a
Author: kocotian <kocotian@kocotian.pl>
Date:   Sun,  2 May 2021 11:49:38 +0200

Makefile, config.mk

Diffstat:
MMakefile | 16++++++++++++++++
Aconfig.mk | 10++++++++++
2 files changed, 26 insertions(+), 0 deletions(-)

diff --git a/Makefile b/Makefile @@ -0,0 +1,16 @@ +VERSION = 0.1 + +# including a Makefile configuration file - edit only config.mk, +# avoid editions of this file. +include config.mk + +all: options donstranding + +options: + @echo "donstranding build options:" + @echo "CC = ${CC}" + @echo "CFLAGS = ${CFLAGS}" + @echo "CPPFLAGS = ${CPPFLAGS}" + @echo "LDFLAGS = ${LDFLAGS}" + +.PHONY: all options diff --git a/config.mk b/config.mk @@ -0,0 +1,10 @@ +# includes +INC = -Itermbox/src/ + +# flags +CFLAGS = -Wall -Wextra -Wconversion -std=c99 -pedantic ${INC} +CPPFLAGS = -D_XOPEN_SOURCE=700 -DVERSION=\"${VERSION}\" +LDFLAGS = -static + +# compiler +CC = gcc